:root {
  --accent1: #00d1c7;
  --accent2: #3b82f6;
  --accent3: #6d28d9;
  --muted: #6b7280;
  --nav-text: #111827;
  --glass: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(17, 24, 39, 0.06);
  --radius: 14px;
  --maxw: 1200px;
  --nav-height: 90px; /* adjust this if your nav is taller/shorter */
}

/* Reset-ish */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  font-family: "Alegreya", serif;
  color: var(--nav-text);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* HERO */
.hero {
  position: relative;
  width: 100%;
  padding: calc(var(--nav-height) + 40px) 20px 80px; /* respects nav height */
  background: linear-gradient(
    135deg,
    rgba(0, 209, 199, 0.06),
    rgba(109, 40, 217, 0.04)
  );
  overflow: hidden;
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
}
.hero-left {
  flex: 1;
  min-width: 260px;
  z-index: 2;
}
.hero-logo {
  height: 48px;
  margin-bottom: 14px;
  display: block;
}
.hero-left h1 {
  font-size: clamp(26px, 4.2vw, 40px);
  margin: 0 0 12px;
  line-height: 1.05;
  font-weight: 700;
  background: linear-gradient(
    90deg,
    var(--accent1),
    var(--accent2),
    var(--accent3)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-left p {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 680px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn.primary {
  background: linear-gradient(
    90deg,
    var(--accent1),
    var(--accent2),
    var(--accent3)
  );
  color: #fff;
  box-shadow: 0 12px 36px rgba(13, 47, 75, 0.08);
}
.btn.ghost {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--nav-text);
}
.hero-right {
  width: 320px;
  z-index: 2;
}
.hero-card {
  background: linear-gradient(180deg, #fff, #fbfdff);
  border-radius: 14px;
  padding: 18px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 18px 48px rgba(11, 22, 49, 0.06);
}
.card-top {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 10px;
}
.mini-stat {
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(9, 20, 40, 0.04);
  text-align: center;
  min-width: 108px;
}
.mini-stat .num {
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mini-stat .label {
  font-size: 13px;
  color: var(--muted);
}

/* watermark */
/* .hero-watermark {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;
  font-weight: 900;
  font-size: clamp(80px, 16vw, 160px);
  color: rgba(7, 16, 34, 0.03); /* faint */
/* letter-spacing: 10px;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  white-space: nowrap; */

/* MAIN: contact area */
.contact-wrap {
  padding: 56px 20px 100px;
}
.contact-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 30px;
  align-items: start;
}

/* Glass card (form) */
.form-column .glass-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.95)
  );
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 28px 64px rgba(7, 18, 40, 0.06);
}
.form-column h2 {
  margin: 0 0 6px;
  font-size: 20px;
}
.muted {
  color: var(--muted);
  margin-bottom: 14px;
}

/* form layout */
.form-column form .row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.form-column input[type="text"],
.form-column input[type="email"],
.form-column input[type="tel"],
.form-column select,
.form-column textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e8eef6;
  background: #fff;
  font-size: 15px;
  color: var(--nav-text);
  transition: box-shadow 0.12s ease, border-color 0.12s ease;
}
.form-column select {
  appearance: none;
  background-image: linear-gradient(
      45deg,
      transparent 50%,
      rgba(0, 0, 0, 0.06) 50%
    ),
    linear-gradient(135deg, rgba(0, 0, 0, 0.06) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(1em + 2px),
    calc(100% - 13px) calc(1em + 2px);
  background-size: 8px 8px, 8px 8px;
  background-repeat: no-repeat;
}
.form-column input:focus,
.form-column textarea:focus,
.form-column select:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 8px 22px rgba(59, 130, 246, 0.06);
}
.form-column textarea {
  min-height: 120px;
  resize: vertical;
}

/* Add watermark inside form column */
.form-column {
  position: relative;
  z-index: 1; /* form stays above watermark */
}

.form-column::before {
  content: "CONTACT";
  position: absolute;
  top: 00%;
  left: -460px; /* adjust as needed */
  transform: translateY(-50%) rotate(-90deg);
  font-size: clamp(80px, 16vw, 160px);
  font-weight: 900;
  color: rgba(7, 16, 34, 0.03);
  letter-spacing: 12px;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* file label */
.file-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
  color: var(--muted);
  font-size: 14px;
}
.file-btn {
  background: transparent;
  border: 1px dashed rgba(0, 0, 0, 0.06);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.file-label input[type="file"] {
  display: none;
}
.file-name {
  font-size: 13px;
  color: var(--muted);
}

/* actions */
.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}
.btn.outline {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
}
.form-note {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

/* Info column */
.info-card {
  background: linear-gradient(180deg, #fff, #fbfdff);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 50px rgba(6, 12, 30, 0.04);
}
.info-card h3 {
  margin: 0 0 10px;
}
.info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.info-list li {
  display: flex;
  gap: 10px;
  align-items: center;
}
.info-list li strong {
  min-width: 80px;
  font-weight: 700;
  color: var(--nav-text);
}
.info-list a {
  color: var(--accent2);
  text-decoration: none;
}
.info-list a:hover {
  text-decoration: underline;
}

/* map card */
.map-card {
  margin-top: 6px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 18px 40px rgba(6, 12, 30, 0.05);
}

/* quick-contact floating */
.quick-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}
.qc-item {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  box-shadow: 0 12px 36px rgba(6, 30, 60, 0.12);
}
.qc-item.whatsapp {
  background: linear-gradient(90deg, #25d366, #128c7e);
}
.qc-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(6, 30, 60, 0.18);
}

/* responsive */
@media (max-width: 1100px) {
  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .hero-right {
    width: 100%;
  }
  .hero-card {
    width: 100%;
  }
  .hero-watermark {
    display: none;
  }
}
@media (max-width: 900px) {
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .form-column .glass-card {
    padding: 18px;
  }
  .map-card iframe {
    height: 220px;
  }
  .quick-contact {
    right: 12px;
    bottom: 12px;
    flex-direction: row;
  }
}
@media (max-width: 560px) {
  .hero {
    padding: 36px 14px;
  }
  .hero-left h1 {
    font-size: 20px;
  }
  .form-column textarea {
    min-height: 100px;
  }
  .qc-item {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  .file-name {
    display: block;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 70px;
  }
}

/* visually-hidden */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ======= Mobile fixes for Contact page (append to end) ======= */

/* 1) Safer hero spacing under fixed nav (with safe-area for iOS) */
@media (max-width: 768px) {
  :root {
    --nav-height: 78px;
  } /* a touch taller for small screens */
  .hero {
    padding-top: calc(var(--nav-height) + 20px + env(safe-area-inset-top));
    padding-bottom: 56px;
  }
}

/* 2) Prevent watermark from breaking layout on mobile */
@media (max-width: 920px) {
  .form-column::before {
    left: -9999px; /* move it off-canvas instead of showing */
    content: none; /* or simply hide: none */
  }
}

/* 3) Ensure the mobile sheet overlays everything cleanly */
.mobile-sheet {
  z-index: 2000; /* above nav + page content */
}
.mobile-sheet.open {
  transform: translateY(-100vh); /* keep your opening animation intact */
}

/* 4) Make form rows wrap gracefully and inputs span full width */
@media (max-width: 640px) {
  .form-column form .row {
    flex-wrap: wrap;
  }
  .form-column form .row > * {
    flex: 1 1 100%;
  }
  .form-column input[type="text"],
  .form-column input[type="email"],
  .form-column input[type="tel"],
  .form-column select {
    min-width: 0; /* prevent overflow inside flex */
  }
}

/* 5) Responsive map sizing on mobile (avoid overflow & scroll) */
@media (max-width: 640px) {
  .map-card iframe {
    width: 100% !important;
    height: 240px !important;
  }
}

/* 6) Tighten hero card / stats on small screens to avoid squeeze */
@media (max-width: 1100px) {
  .hero-right {
    width: 100%;
  }
  .hero-card {
    width: 100%;
  }
}
@media (max-width: 560px) {
  .mini-stat {
    min-width: auto;
    flex: 1;
  }
  .card-top {
    gap: 8px;
  }
}

/* 7) Avoid duplicate buttons in mobile drawer causing layout jumps */
@media (max-width: 768px) {
  .mobile-sheet .nav-actions .hamburger {
    display: none;
  } /* already open */
  .mobile-sheet .nav-actions .cta {
    width: 100%;
  }
}
