/* ============================================
   STUDIO MORTGAGE - Main Stylesheet
   Colors: Navy #1a1f3d | Gold #c9a96e
   ============================================ */

/* --- Reset & Variables --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #1a1f3d;
  --navy-light: #252b4f;
  --navy-dark: #12162b;
  --gold: #c9a96e;
  --gold-light: #d4b77e;
  --gold-dark: #b8935d;
  --white: #ffffff;
  --off-white: #f8f7f4;
  --gray-50: #fafaf9;
  --gray-100: #f5f4f2;
  --gray-200: #e8e6e3;
  --gray-300: #d4d1cc;
  --gray-400: #a8a49e;
  --gray-500: #7a756e;
  --gray-600: #5c5850;
  --font-headline: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', 'Segoe UI', sans-serif;
  --shadow-sm: 0 2px 8px rgba(26, 31, 61, 0.06);
  --shadow-md: 0 4px 20px rgba(26, 31, 61, 0.1);
  --shadow-lg: 0 12px 40px rgba(26, 31, 61, 0.14);
  --shadow-gold: 0 8px 24px rgba(201, 169, 110, 0.25);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  color: var(--navy);
  line-height: 1.7;
  font-size: 19px;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(3rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
h3 { font-size: clamp(1.5rem, 2.8vw, 1.9rem); }
h4 { font-size: 1.35rem; }

p {
  color: var(--gray-600);
  max-width: 680px;
}

.text-center { text-align: center; }
.text-center p { margin-left: auto; margin-right: auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.btn:hover::after {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--navy);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}

.btn-secondary:hover {
  background: rgba(201, 169, 110, 0.1);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--white);
}

.btn-outline-white:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 169, 110, 0.1);
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 1px 20px rgba(26, 31, 61, 0.08);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logos {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo {
  height: 72px;
  width: auto;
  transition: opacity var(--transition);
}

.logo:hover { opacity: 0.85; }

.logo-light { display: block; }
.logo-dark { display: none; }

.header.scrolled .logo-light { display: none; }
.header.scrolled .logo-dark { display: block; }

.header-logo-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.4);
  transition: background var(--transition);
}

.header.scrolled .header-logo-divider {
  background: rgba(26, 31, 61, 0.2);
}

.header-tango-logo {
  height: 40px;
  width: auto;
  transition: opacity var(--transition);
}

.header-tango-logo:hover { opacity: 0.85; }

.nav { display: flex; align-items: center; gap: 40px; }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 17px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  position: relative;
  padding: 4px 0;
  letter-spacing: 0.02em;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after { width: 100%; }

.header.scrolled .nav-links a {
  color: var(--navy);
}

.header.scrolled .nav-links a:hover { color: var(--gold); }

.nav-cta .btn {
  padding: 12px 28px;
  font-size: 16px;
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
  position: relative;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
  border-radius: 2px;
  display: block;
}

.header.scrolled .menu-toggle span {
  background: var(--navy);
}

/* When menu is open, always show white bars (X) regardless of scroll state */
.menu-toggle.active span {
  background: var(--white) !important;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 50%, var(--navy) 100%);
  overflow: hidden;
  padding: 140px 0 100px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.08) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.05) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

/* Subtle grid pattern overlay */
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 169, 110, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 169, 110, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(201, 169, 110, 0.12);
  border: 1px solid rgba(201, 169, 110, 0.2);
  padding: 10px 24px;
  border-radius: 50px;
  color: var(--gold);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-subtitle {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 40px;
  max-width: 520px;
  line-height: 1.8;
}

.hero .btn-group { margin-bottom: 48px; }

.hero-credentials {
  display: flex;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-credential {
  display: flex;
  flex-direction: column;
}

.hero-credential-value {
  font-family: var(--font-headline);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--gold);
}

.hero-credential-label {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}

/* --- Section Styles --- */
.section {
  padding: 110px 0;
}

.section-label {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--gray-500);
  margin-bottom: 60px;
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-dark .section-title { color: var(--white); }
.section-dark .section-subtitle { color: rgba(255,255,255,0.65); }
.section-dark p { color: rgba(255,255,255,0.65); }

.section-cream {
  background: var(--off-white);
}

/* --- Value Props / Cards --- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 40px 36px;
  transition: all var(--transition);
  position: relative;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  opacity: 0;
  transition: opacity var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.value-card:hover::before { opacity: 1; }

.value-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(201, 169, 110, 0.1), rgba(201, 169, 110, 0.2));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.value-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-card h3 {
  margin-bottom: 12px;
  color: var(--navy);
}

.value-card p {
  font-size: 18px;
  line-height: 1.7;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 169, 110, 0.3);
}

.service-number {
  font-family: var(--font-headline);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.4;
  line-height: 1;
  flex-shrink: 0;
  width: 40px;
}

.service-card h4 {
  font-family: var(--font-headline);
  margin-bottom: 8px;
  color: var(--navy);
}

.service-card p {
  font-size: 17px;
  line-height: 1.65;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--gold-dark);
}

.service-link:hover { gap: 10px; }

.service-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* --- Trust / Lender Logos --- */
.trust-section {
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.lender-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 20px 0;
}

.lender-logo {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  color: var(--gray-400);
  opacity: 0.6;
  transition: opacity var(--transition);
  letter-spacing: 0.04em;
}

.lender-logo:hover { opacity: 1; }

.lender-logo-img {
  width: 150px;
  height: 48px;
  object-fit: contain;
  opacity: 0.55;
  transition: opacity var(--transition);
}

.lender-logo-img:hover {
  opacity: 0.9;
}

/* --- Process / How We Work --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  opacity: 0.2;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-number {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(201, 169, 110, 0.1), rgba(201, 169, 110, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  position: relative;
  z-index: 1;
}

.process-step h4 {
  margin-bottom: 10px;
}

.process-step p {
  font-size: 17px;
  margin: 0 auto;
  max-width: 240px;
}

/* --- Testimonial --- */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px 60px;
  box-shadow: var(--shadow-md);
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-headline);
  font-size: 120px;
  color: var(--gold);
  opacity: 0.15;
  position: absolute;
  top: 10px;
  left: 40px;
  line-height: 1;
}

.testimonial-text {
  font-family: var(--font-headline);
  font-size: 1.45rem;
  line-height: 1.7;
  color: var(--navy);
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
  font-style: italic;
  max-width: 100%;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headline);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}

.testimonial-name {
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
}

.testimonial-detail {
  font-size: 16px;
  color: var(--gray-500);
}

/* --- CTA Banner --- */
.cta-banner {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.1) 0%, transparent 65%);
  border-radius: 50%;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  font-size: 1.25rem;
}

.cta-banner .btn-group {
  justify-content: center;
}

/* --- About Page Sections --- */
.about-hero {
  padding-top: 180px;
  padding-bottom: 100px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.08) 0%, transparent 65%);
  border-radius: 50%;
}

.about-hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.about-hero p {
  font-size: 1.35rem;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
}

.story-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.story-text h2 { margin-bottom: 20px; }

.story-text p {
  margin-bottom: 20px;
  font-size: 19px;
}

.story-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  background: var(--gray-100);
}

.story-image-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.approach-card {
  padding: 36px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.approach-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 169, 110, 0.3);
}

.approach-card h4 {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.approach-card h4 .approach-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(201, 169, 110, 0.1), rgba(201, 169, 110, 0.18));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.approach-card h4 .approach-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2;
}

.approach-card p {
  font-size: 18px;
  line-height: 1.7;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.team-card {
  text-align: center;
  padding: 40px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
}

.team-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 0 auto 24px;
  display: block;
  object-fit: cover;
  object-position: center 15%;
  border: 3px solid var(--gold);
}

.team-card h4 {
  font-family: var(--font-headline);
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.team-card .team-role {
  font-size: 16px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.team-card .team-license {
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.team-card p { font-size: 17px; margin: 0 auto; }

/* Local */
.local-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.local-text h2 { margin-bottom: 16px; }
.local-text p { margin-bottom: 16px; }

.local-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-100);
}

.local-map-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 14px;
}

/* --- Services Page --- */
.services-hero {
  padding-top: 180px;
  padding-bottom: 100px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
}

.services-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.08) 0%, transparent 65%);
  border-radius: 50%;
}

.services-hero h1 { color: var(--white); margin-bottom: 20px; }
.services-hero p { color: rgba(255,255,255,0.7); font-size: 1.35rem; max-width: 560px; }

.service-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.service-detail-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 40px 36px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-detail-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-detail-card:hover::before { transform: scaleX(1); }

.service-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-detail-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--navy);
}

.service-detail-card p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-detail-card .service-features {
  list-style: none;
  padding: 0;
}

.service-detail-card .service-features li {
  padding: 6px 0;
  font-size: 17px;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-detail-card .service-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* --- Thank You Page --- */
.thankyou-hero {
  padding-top: 180px;
  padding-bottom: 100px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
}
.thankyou-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.08) 0%, transparent 65%);
  border-radius: 50%;
}
.thankyou-icon {
  color: var(--gold);
  margin-bottom: 24px;
}
.thankyou-hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}
.thankyou-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.35rem;
  max-width: 560px;
  margin: 0 auto 12px;
}
.thankyou-detail {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

/* --- Contact Page --- */
.contact-hero {
  padding-top: 180px;
  padding-bottom: 100px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
}

.contact-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.08) 0%, transparent 65%);
  border-radius: 50%;
}

.contact-hero h1 { color: var(--white); margin-bottom: 20px; }
.contact-hero p { color: rgba(255,255,255,0.7); font-size: 1.35rem; max-width: 560px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-info-card {
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: 40px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-200);
}

.contact-info-item:last-child { border-bottom: none; }

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(201, 169, 110, 0.1), rgba(201, 169, 110, 0.18));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2;
}

.contact-info-item h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 4px;
  color: var(--navy);
}

.contact-info-item p {
  font-size: 17px;
  color: var(--gray-500);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 44px;
}

.contact-form h3 {
  margin-bottom: 8px;
}

.contact-form > p {
  margin-bottom: 32px;
  font-size: 17px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--navy);
  transition: all var(--transition);
  background: var(--white);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

.contact-form .btn {
  width: 100%;
  justify-content: center;
  padding: 16px;
}

.form-note {
  text-align: center;
  font-size: 15px;
  color: var(--gray-400);
  margin-top: 16px;
}

/* --- Footer --- */
.footer {
  background: var(--navy-dark);
  padding: 80px 0 40px;
  color: rgba(255,255,255,0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand p {
  font-size: 17px;
  color: rgba(255,255,255,0.5);
  margin-top: 20px;
  max-width: 300px;
}

.footer-brand .logo { height: 56px; margin-bottom: 4px; }

.footer h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  font-size: 17px;
  color: rgba(255,255,255,0.5);
  padding: 6px 0;
  transition: all var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer-licensing {
  padding: 0 0 24px;
  margin-bottom: 20px;
}

.footer-licensing-card {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,169,110,0.15);
  border-radius: 10px;
}

.footer-tango-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.footer-powered-by {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.footer-tango-logo {
  height: 36px;
  width: auto;
  opacity: 0.7;
  flex-shrink: 0;
}

.footer-licensing-divider {
  width: 1px;
  height: 32px;
  background: rgba(201,169,110,0.2);
  flex-shrink: 0;
}

.footer-licensing-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.footer-licensing-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}

.footer-licensing-detail {
  font-size: 11.5px;
  color: rgba(255,255,255,0.3);
  line-height: 1.4;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 16px;
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
}

.footer-bottom a:hover { color: var(--gold); }

/* --- Scroll Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .value-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .process-grid::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .story-content { gap: 40px; }
  .local-content { gap: 40px; }
  .contact-grid { gap: 40px; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }

  .nav-links, .nav-cta { display: none; }

  .nav-links.active,
  .nav-cta.active {
    display: flex;
  }

  .menu-toggle { display: flex; }

  /* When menu is open, header becomes the full-screen overlay */
  .header.menu-open {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navy) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    padding: 20px 0 !important;
  }

  .header.menu-open .container {
    height: 100%;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
  }

  .header.menu-open .logo-light { display: block !important; }
  .header.menu-open .logo-dark { display: none !important; }
  .header.menu-open .header-logo-divider { background: rgba(255, 255, 255, 0.4) !important; }

  /* Pin the toggle to top-right when menu is open */
  .header.menu-open .menu-toggle {
    position: absolute;
    top: 8px;
    right: 0;
  }

  /* Nav takes over the remaining space */
  .nav {
    position: static;
  }

  .header.menu-open .nav {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .nav-links {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links.active a,
  .header.scrolled .nav-links.active a {
    color: var(--white) !important;
    font-size: 22px;
  }

  .nav-links.active a:hover,
  .header.scrolled .nav-links.active a:hover {
    color: var(--gold) !important;
  }

  .nav-cta.active {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 40px;
  }

  .hero {
    min-height: auto;
    padding: 140px 0 80px;
  }

  .hero-credentials { flex-direction: column; gap: 16px; }

  .value-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; gap: 28px; }
  .approach-grid { grid-template-columns: 1fr; }

  .story-content { grid-template-columns: 1fr; }
  .story-image { order: -1; }
  .local-content { grid-template-columns: 1fr; }
  .local-map { order: -1; }

  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-licensing { text-align: center; }
  .footer-licensing-card { flex-direction: column; text-align: center; gap: 12px; }
  .footer-licensing-divider { width: 32px; height: 1px; }
  .footer-licensing-text { align-items: center; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .btn-group { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }

  .testimonial-card { padding: 36px 28px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding: 120px 0 60px; }
  .section { padding: 64px 0; }
  .value-card { padding: 28px 24px; }
  .service-card { flex-direction: column; }
}
