/* Base: align with your existing Projects.css / Landing.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  scrollbar-width: none;
}

body {
  background-color: #ffffff;
  color: #4b4b4b;
}
/* Base hamburger: hidden on desktop so it only appears at mobile sizes */
.hamburger {
  display: none;
  border: none;
  background: transparent;
  padding: 0;
}


/* Top nav (matches Projects.css visual) */
.stickynav {
  position: relative;
  top: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 1em 0;
  align-items: center;
  flex-direction: column;
  background-color: black;
}
.stickynav img {
  width: 5vw;
  height: auto;
  filter: brightness(0) invert(1);
}
.imgc {
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  z-index: 2;
}
.imgc h1 {
  color: white;
  margin-left: 0.5em;
}
.imgc h1 p {
  font-size: 0.6em;
  margin-top: -0.25em;
  font-weight: normal;
}

.stickynav ul {
  display: flex;
  padding: 10px 0;
  list-style: none;
}
.stickynav li {
  margin: 0 20px;
}
.stickynav a {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
}
.stickynav a:hover {
  color: #004aad;
  text-decoration: underline;
  transition: all 0.3s ease-in-out;
}

.divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: white;
  z-index: 1001;
}

/* Hero with subtle overlay to echo Landing hero vibe */
.contact-hero {
  position: relative;
  width: 100%;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url(./Media/image_17.png);
  background-size: cover;
  background-position: center;
}
.overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
}
.hero-text {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
  padding: 2rem;
  width: min(900px, 92%);
  background: rgba(0, 0, 0, 0.25);
}
.hero-text h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}
.hero-text p {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
}

/* Main section */
.contact-section {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 3rem 1rem 4rem;
}
.contact-card {
  width: min(1200px, 95%);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

/* Left info panel */
.info {
  background: #f7f7f7;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 2rem;
}
.info h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #222;
}
.info p {
  color: #6b6b6b;
  margin-bottom: 1.25rem;
}
.info-list {
  list-style: none;
  display: grid;
  gap: 1rem;
}
.info-list a {
  color: #004aad;
  text-decoration: none;
}
.info-list a:hover {
  text-decoration: underline;
}
.badges {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.badges span {
  background: #074cab;
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

/* Form */
.form {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  padding: 2rem;
}
.form h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #222;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field-full {
  grid-column: 1 / -1;
}
.field span {
  font-size: 0.95rem;
  color: #333;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}
textarea {
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #004aad;
  box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.15);
}
.check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.check input {
  width: 1.1rem;
  height: 1.1rem;
}

.error {
  min-height: 1em;
  color: #b00020;
  font-size: 0.85rem;
}
.form-note {
  margin-top: 0.75rem;
  color: #6b6b6b;
  font-size: 0.9rem;
}

.btn-primary {
  margin-top: 0.5rem;
  background-color: #004aad;
  color: white;
  border: none;
  padding: 0.9rem 1.25rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.btn-primary:hover {
  background-color: #00307f;
}

/* Success banner */
.form-success {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: #e8f1ff;
  color: #00307f;
  border: 1px solid #c9dcff;
}

/* CTA band (echoes .textc3 blue area) */
.cta-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 2.5rem 1rem;
  background-color: #074cab;
  color: #fff;
}
.cta-band h2 {
  font-size: 2rem;
}
.cta-band p {
  font-size: 1.2rem;
}
.btn-outline {
  display: inline-block;
  margin-top: 0.25rem;
  background-color: transparent;
  color: white;
  border: 2px solid white;
  padding: 0.7rem 1.25rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-outline:hover {
  background-color: white;
  color: black;
}

/* Footer (matches site) */
footer {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  width: 100%;
  background-color: white;
  color: black;
  font-size: 1.5rem;
  z-index: 2;
  padding: 2em 0;
}
footer p {
  margin: 0;
  padding: 1em;
  text-align: center;
}
footer ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}
footer a {
  color: black;
  text-decoration: none;
}
footer a:hover {
  color: #00f;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 950px) {
  .contact-card {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .stickynav img {
    width: 18vw;
  }
}

/* === Fixes: Full-Screen Hamburger Across All Pages + White Text Issue === */

/* Force full-screen overlay menu for all pages */
@media (max-width: 900px) {
  .stickynav > ul {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.25rem !important;
    padding: 2rem 1rem !important;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 3000 !important;
  }
  .stickynav.nav-open > ul {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0);
  }
  .stickynav > ul li a {
    font-size: clamp(1.2rem, 5vw, 2rem) !important;
    color: #000000 !important; /* Ensure black text, not white */
  }
  .stickynav.nav-open {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3100 !important;
  }
}

/* Prevent white text issue on home page when at top */
.stickynav.nav-open a,
.stickynav.nav-open li,
.stickynav.nav-open ul {
  color: #000000 !important;
  fill: #000000 !important;
}

/* === Fix: Force full-screen overlay menu on mobile for both <ul> and .nav-links === */
@media (max-width: 900px) {
  /* Cover viewport whether your list is a direct child or has .nav-links */
  .stickynav > ul,
  .stickynav .nav-links {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1rem !important;
    padding: 2rem 1.25rem !important;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 2000;
  }
  .stickynav.nav-open > ul,
  .stickynav.nav-open .nav-links,
  .stickynav.open > ul,
  .stickynav.open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .stickynav > ul li a,
  .stickynav .nav-links li a {
    font-size: clamp(1.15rem, 5vw, 1.75rem) !important;
    color: #222 !important;
  }
  .stickynav.nav-open .hamburger span,
  .stickynav.open .hamburger span {
    background: #222 !important;
  }

  /* Keep header above overlay */
  .stickynav.nav-open,
  .stickynav.open {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2100;
  }

  /* Lock background scroll while open */
  html:has(.stickynav.nav-open),
  body:has(.stickynav.nav-open),
  html:has(.stickynav.open),
  body:has(.stickynav.open) {
    overflow: hidden !important;
  }
}

/* === Fix: Consistent logo sizing across pages === */
@media (max-width: 1024px) {
  .imgc img {
    width: clamp(56px, 10vw, 96px) !important;
    height: auto !important;
  }
}
@media (max-width: 900px) {
  .imgc img {
    width: clamp(64px, 14vw, 120px) !important;
    height: auto !important;
  }
}

/* === Add-on: Ensure hamburger is visible on mobile (Contact/Projects) === */
@media (max-width: 900px) {
  .stickynav {
    justify-content: space-between;
  }

  /* Make sure the button actually shows and sits above content */
  .stickynav .hamburger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid currentColor !important;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    z-index: 3300; /* above overlay UL when closed */
    color: #222; /* default dark icon on light pages */
  }
  .stickynav .hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor !important;
    margin: 3px 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  /* When the full-screen menu is open on a white background, ensure dark icon */
  .stickynav.nav-open .hamburger,
  .stickynav.open .hamburger {
    color: #222 !important;
  }
  .stickynav.nav-open .hamburger span,
  .stickynav.open .hamburger span {
    background: #222 !important;
  }
}
