/* ==========================================================================
   Andrade Immigration — site stylesheet
   ========================================================================== */

:root {
  --teal: #1C3841;
  --teal-hover: #28414B;
  --teal-mid-1: #40555E;
  --teal-mid-2: #344C56;
  --teal-mid-3: #28414B;
  --ink: #1C2B30;
  --muted: #55636B;
  --muted-light: #8A9598;
  --soft-bg: #F6F9F8;
  --white: #FFFFFF;
  --gold: #F1AD4D;
  --border-soft: rgba(28, 56, 65, 0.12);
  --border-soft-2: rgba(28, 56, 65, 0.1);
  --placeholder-bg: #E7ECEB;
  --placeholder-bg-2: #EDEEEC;
  --pad-x: clamp(24px, 6vw, 64px);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-script: 'Alex Brush', cursive;
  --font-sans: 'Work Sans', Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; }

a {
  color: var(--teal);
  text-decoration: none;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
a:hover { color: var(--teal-hover); }

.plain-link { color: inherit; text-decoration: none; }
.plain-link:hover { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.container { max-width: 1360px; width: 100%; margin: 0 auto; }

/* ---------------------------------- Header ---------------------------------- */
.site-header {
  background: var(--teal);
  padding: 26px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.logo-link { display: flex; align-items: center; }
.logo-link img { height: 60px; width: auto; display: block; }
.main-nav { display: flex; align-items: center; gap: clamp(24px, 3vw, 44px); flex-wrap: wrap; }
.nav-link {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  padding-bottom: 6px;
  border-bottom: 1.5px solid transparent;
}
.nav-link:hover { color: var(--white); }
.nav-link.is-active { color: var(--white); border-bottom-color: var(--white); }

/* ---------------------------------- Buttons & text links ---------------------------------- */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 32px;
  border: 1.5px solid var(--white);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.btn-outline:hover { background: var(--white); color: var(--teal); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1.5px solid var(--teal);
  padding-bottom: 3px;
}
.text-link:hover { color: var(--teal-hover); border-color: var(--teal-hover); }

.text-link-invert {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.5);
  width: fit-content;
}
.text-link-invert:hover { color: var(--white); border-color: var(--white); }

/* ---------------------------------- Section shells ---------------------------------- */
.section {
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  display: flex;
  justify-content: center;
}
.section--dark { background: var(--teal); }
.section--soft { background: var(--soft-bg); }
.section--white { background: var(--white); }

/* ---------------------------------- Hero (home) ---------------------------------- */
.hero { padding-top: clamp(80px, 12vw, 130px); padding-bottom: 150px; }
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(38px, 5.5vw, 64px);
  line-height: 1.15;
  color: var(--white);
  max-width: 780px;
  margin: 0 0 44px;
}

/* ---------------------------------- Services panel ---------------------------------- */
.services-card-panel {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(28, 56, 65, 0.14);
  margin-top: -70px;
  padding: 56px clamp(28px, 5vw, 56px);
  position: relative;
  z-index: 2;
}
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px; }
.service-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--teal);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.service-title { font-weight: 600; font-size: 19px; color: var(--ink); margin-bottom: 10px; }
.service-desc { font-size: 15px; color: var(--muted); line-height: 1.6; }

/* ---------------------------------- Bio split rows ---------------------------------- */
.bio-row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 72px;
  align-items: start;
  padding-top: 60px;
  padding-bottom: 40px;
}
.bio-row--first { padding-top: 130px; }
.bio-row--last { padding-bottom: 130px; }
.bio-photo { width: 100%; aspect-ratio: 4 / 5; border-radius: 4px; }
img.bio-photo { display: block; height: auto; object-fit: cover; object-position: center top; background: var(--placeholder-bg); }
.bio-row h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 22px;
}
.bio-desc { font-size: 16px; color: var(--muted); line-height: 1.7; max-width: 480px; margin: 0 0 22px; }
.bio-desc--tight { margin: 0 0 34px; }
.bio-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--ink);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 0 18px;
}
.bio-signature { font-family: var(--font-script); font-size: 38px; color: #3A4A50; margin-bottom: 4px; }
.bio-name { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.bio-link { margin-bottom: 34px; }

/* ---------------------------------- Split CTA banner ---------------------------------- */
.cta-banner-split {
  width: 100%;
  background: var(--teal);
  border-radius: 20px;
  padding: 56px clamp(32px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}
.cta-banner-split h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 32px);
  color: var(--white);
  margin: 0;
  max-width: 560px;
}

/* ---------------------------------- Section title ---------------------------------- */
.section-title {
  width: 100%;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 40px);
  color: var(--ink);
  margin: 0;
}

/* ---------------------------------- Steps grid ---------------------------------- */
.steps-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: 20px;
  overflow: hidden;
}
.step-card { padding: 52px 40px; min-height: 280px; }
.step-num { color: rgba(255, 255, 255, 0.55); font-size: 14px; margin-bottom: 26px; }
.step-title { font-family: var(--font-serif); font-weight: 600; font-size: 22px; color: var(--white); margin-bottom: 16px; line-height: 1.3; }
.step-desc { font-size: 14.5px; color: rgba(255, 255, 255, 0.75); line-height: 1.6; }
.step-card--1 { background: var(--teal-mid-1); }
.step-card--2 { background: var(--teal-mid-2); }
.step-card--3 { background: var(--teal-mid-3); }
.step-card--4 {
  background: var(--teal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.step-mark { position: absolute; top: 20px; right: 20px; height: 70px; width: auto; filter: brightness(0) invert(1); opacity: 0.18; }
.step-card--4 .step-title { position: relative; }

/* ---------------------------------- Testimonial ---------------------------------- */
.testimonial-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 64px;
  align-items: center;
}
.testimonial-mark { font-family: var(--font-serif); font-weight: 700; font-size: 72px; color: var(--teal); line-height: 1; margin-bottom: 8px; }
.testimonial-grid h2 { font-family: var(--font-serif); font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.3; color: var(--ink); margin: 0 0 24px; }
.testimonial-rule { width: 40px; height: 2px; background: var(--teal); margin-bottom: 24px; }
.testimonial-lead { font-size: 16px; color: var(--muted); line-height: 1.7; max-width: 460px; margin: 0; }
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(28, 56, 65, 0.08);
}
.stars { color: var(--gold); font-size: 20px; letter-spacing: 3px; margin-bottom: 20px; }
.testimonial-quote { font-size: 16.5px; color: var(--ink); line-height: 1.7; margin: 0 0 22px; }
.testimonial-name { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ---------------------------------- Placeholders ---------------------------------- */
.placeholder {
  background: var(--placeholder-bg);
  background-image: repeating-linear-gradient(135deg, rgba(28, 56, 65, 0.07) 0px, rgba(28, 56, 65, 0.07) 1px, transparent 1px, transparent 13px);
  display: flex; align-items: center; justify-content: center;
}
.placeholder--gallery {
  background: var(--placeholder-bg-2);
  background-image: repeating-linear-gradient(135deg, rgba(28, 56, 65, 0.06) 0px, rgba(28, 56, 65, 0.06) 1px, transparent 1px, transparent 13px);
}
.placeholder--dark {
  background: #12242A;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0px, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 13px);
}
.placeholder-label {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--muted);
  background: var(--white);
  padding: 7px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 3px;
}

/* ---------------------------------- Gallery ---------------------------------- */
.gallery-grid { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.gallery-item { aspect-ratio: 1 / 1; }
img.gallery-item { width: 100%; height: auto; display: block; object-fit: cover; object-position: center; background: var(--placeholder-bg); }

/* ---------------------------------- Final CTA ---------------------------------- */
.final-cta {
  width: 100%;
  background: var(--teal);
  border-radius: 20px;
  padding: 80px clamp(32px, 6vw, 64px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.final-cta h2 { font-family: var(--font-serif); font-weight: 700; font-size: clamp(28px, 3.6vw, 40px); color: var(--white); margin: 0 0 20px; }
.final-cta p { font-size: 16px; color: rgba(255, 255, 255, 0.8); max-width: 520px; margin: 0 0 36px; line-height: 1.6; }

/* ---------------------------------- Footer ---------------------------------- */
.site-footer {
  background: var(--white);
  padding: 48px var(--pad-x);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--border-soft-2);
}
.copyright { font-size: 14px; color: var(--muted); }
.footer-mark { height: 64px; width: auto; }
.social-icons { display: flex; gap: 18px; }
.social-icon { color: var(--teal); display: flex; }
.social-icon:hover { color: var(--teal-hover); }

/* ---------------------------------- About page ---------------------------------- */
.page-hero-simple { padding: 80px var(--pad-x); text-align: center; }
.page-hero-simple h1 { font-family: var(--font-serif); font-weight: 700; font-size: clamp(38px, 5vw, 56px); color: var(--white); margin: 0; }

.prose-block { max-width: 820px; width: 100%; text-align: center; padding: 110px 0 70px; }
.prose-block h2 { font-family: var(--font-serif); font-weight: 700; font-size: clamp(28px, 3.4vw, 38px); color: var(--ink); margin: 0 0 30px; }
.prose-block > p { font-size: 16px; color: var(--muted); line-height: 1.8; margin: 0; }

.video-embed { max-width: 640px; margin: 52px auto 0; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 50px rgba(28, 56, 65, 0.14); background: #0F1E23; }
.video-embed iframe { width: 100%; height: 100%; border: none; display: block; }
.video-caption { max-width: 640px; margin: 16px auto 0; font-size: 13.5px; color: var(--muted-light); letter-spacing: 0.02em; }

.backgrounds-block { max-width: 820px; width: 100%; text-align: center; padding: 100px 0; }
.backgrounds-block h2 { font-family: var(--font-serif); font-weight: 700; font-size: clamp(28px, 3.4vw, 38px); color: var(--ink); margin: 0 0 40px; }
.backgrounds-block p { font-size: 16px; color: var(--muted); line-height: 1.8; margin: 0 0 28px; text-align: left; }
.backgrounds-block p:last-child { margin-bottom: 0; }
.backgrounds-block strong { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.feed-section { width: 100%; padding: 100px 0; }
.feed-section > h2 { font-family: var(--font-serif); font-weight: 700; font-size: clamp(28px, 3.4vw, 38px); color: var(--ink); margin: 0 0 50px; text-align: center; }
.feed-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.feed-card { background: var(--white); border: 1px solid var(--border-soft-2); border-radius: 12px; overflow: hidden; }
a.feed-card { display: block; color: inherit; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
a.feed-card:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: 0 16px 36px rgba(28, 56, 65, 0.10); }
.feed-thumb { aspect-ratio: 16 / 10; }
img.feed-thumb { width: 100%; height: auto; display: block; object-fit: cover; object-position: center; background: var(--placeholder-bg); }
.feed-body { padding: 26px 24px; }
.feed-body h3 { font-family: var(--font-serif); font-weight: 700; font-size: 18px; color: var(--ink); text-align: center; margin: 0 0 14px; line-height: 1.4; }
.feed-body p { font-size: 14px; color: var(--muted); line-height: 1.6; text-align: center; margin: 0; }

/* ---------------------------------- Contact page ---------------------------------- */
.contact-hero { width: 100%; padding: 100px 0 110px; }
.contact-hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 64px; }
.contact-hero h1 { font-family: var(--font-serif); font-weight: 700; font-size: clamp(38px, 4.6vw, 54px); color: var(--white); margin: 0 0 26px; }
.contact-hero-lead { font-family: var(--font-serif); font-size: clamp(20px, 2.2vw, 26px); color: var(--white); line-height: 1.5; max-width: 460px; margin: 0 0 48px; }
.eyebrow { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); margin-bottom: 22px; }
.contact-hero h2 { font-family: var(--font-serif); font-weight: 700; font-size: clamp(24px, 2.6vw, 30px); color: var(--white); margin: 0 0 40px; }

.social-link-list { display: flex; gap: 56px; flex-wrap: wrap; }
.social-link { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; color: var(--white); }
.social-link:hover { color: rgba(255, 255, 255, 0.8); }
.icon-circle { width: 44px; height: 44px; border-radius: 999px; background: var(--white); display: flex; align-items: center; justify-content: center; }
.social-link-label { font-family: var(--font-serif); font-size: 17px; }

.contact-detail { display: flex; align-items: center; gap: 20px; }
.icon-circle-lg { width: 52px; height: 52px; border-radius: 999px; background: var(--white); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-detail-label { font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); margin-bottom: 6px; }
.contact-detail-value { font-size: 17px; color: var(--white); }

.contact-info-grid { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; padding: 70px 0; }
.info-item { display: flex; align-items: flex-start; gap: 20px; }
.icon-circle-soft { width: 52px; height: 52px; border-radius: 999px; background: #EEF1F0; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-item-label { font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 8px; }
.info-item-value { font-size: 16px; color: var(--ink); line-height: 1.6; }
.info-item-value.constrained { max-width: 340px; }

/* ---------------------------------- Vertical spacing utilities (fluid) ---------------------------------- */
.sp-pt-0    { padding-top: 0; }
.sp-pb-0    { padding-bottom: 0; }
.sp-pt-title { padding-top: clamp(16px, 3vw, 20px); }
.sp-pt-steps { padding-top: clamp(36px, 6vw, 56px); }
.sp-pb-xl   { padding-bottom: clamp(76px, 11vw, 130px); }
.sp-pb-lg   { padding-bottom: clamp(64px, 9vw, 100px); }

/* ---------------------------------- Responsive ---------------------------------- */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .contact-info-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .feed-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ---- Phone tuning: tighten rhythm & resize components ---- */
@media (max-width: 640px) {
  /* Header */
  .site-header { padding-top: 20px; padding-bottom: 20px; gap: 14px; }
  .logo-link img { height: 46px; }
  .main-nav { gap: 22px; }
  .nav-link { font-size: 15px; }

  /* Buttons */
  .btn-outline { padding: 15px 26px; }

  /* Hero */
  .hero { padding-bottom: clamp(96px, 26vw, 130px); }
  .hero h1 { margin-bottom: 32px; }

  /* Services panel */
  .services-card-panel { margin-top: -48px; padding: 34px 22px; border-radius: 16px; }
  .services-grid { gap: 30px; }

  /* Bio rows */
  .bio-row { gap: 34px; padding-top: 44px; padding-bottom: 28px; }
  .bio-row--first { padding-top: 64px; }
  .bio-row--last { padding-bottom: 64px; }
  .bio-quote { font-size: 18px; }

  /* Split CTA banner */
  .cta-banner-split { padding: 34px 26px; gap: 22px; }

  /* Steps */
  .step-card { min-height: 0; padding: 38px 30px; }
  .step-num { margin-bottom: 16px; }
  .step-mark { height: 54px; top: 16px; right: 16px; }

  /* Testimonial */
  .testimonial-grid { gap: 38px; }
  .testimonial-card { padding: 30px 26px; }
  .testimonial-mark { font-size: 56px; }

  /* Final CTA */
  .final-cta { padding: 54px 26px; border-radius: 16px; }

  /* Footer */
  .site-footer {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 18px;
    padding-top: 34px;
    padding-bottom: 34px;
  }
  .footer-mark { height: 50px; order: -1; }

  /* About page */
  .page-hero-simple { padding-top: 56px; padding-bottom: 56px; }
  .prose-block { padding: 60px 0 48px; }
  .video-embed { margin-top: 36px; }
  .backgrounds-block { padding: 56px 0; }
  .backgrounds-block h2 { margin-bottom: 28px; }
  .feed-section { padding: 56px 0; }
  .feed-section > h2 { margin-bottom: 32px; }

  /* Contact page */
  .contact-hero { padding: 60px 0 68px; }
  .contact-hero-grid { gap: 40px; }
  .social-link-list { gap: 34px; }
  .contact-info-grid { padding: 44px 0; gap: 30px; }
}
