/* ==========================================================================
   CityPulse UK Property Investments - Custom Design System
   Cloudflare Pages Ready | Modern CSS3 & HSL Design Tokens
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables & Theme Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette - Standard Light Mode */
  --primary-navy: #0b192c;
  --primary-navy-light: #1e293b;
  --gold-accent: #d4af37;
  --gold-accent-hover: #b89628;
  --emerald-green: #10b981;
  --emerald-green-dark: #059669;
  
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-dark-accent: #0f172a;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #f8fafc;

  --border-color: #e2e8f0;
  --border-focus: #d4af37;

  /* Elevation & Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(11, 25, 44, 0.08);
  --shadow-lg: 0 12px 32px rgba(11, 25, 44, 0.12);
  --shadow-gold: 0 8px 24px rgba(212, 175, 55, 0.25);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Layout Spacing */
  --container-max: 1280px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Tokens */
[data-theme="dark"] {
  --bg-main: #090d16;
  --bg-surface: #0f172a;
  --bg-surface-elevated: #1e293b;
  --bg-dark-accent: #020617;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #ffffff;

  --border-color: #334155;
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.6);
}

/* --------------------------------------------------------------------------
   2. Global Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.serif-heading {
  font-family: var(--font-serif);
}

.text-gold {
  color: var(--gold-accent);
}

.text-emerald {
  color: var(--emerald-green);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-full);
  color: var(--gold-accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* --------------------------------------------------------------------------
   3. Buttons & Component UI
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold-accent);
  color: #0b192c;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  background: var(--gold-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.35);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--gold-accent);
  color: var(--gold-accent);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.btn-outline-white:hover {
  background: #ffffff;
  color: var(--primary-navy);
}

.btn-lg {
  padding: 1.1rem 2.25rem;
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   4. Header & Navigation Bar
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  padding: 0.85rem 0;
  background: rgba(11, 25, 44, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.logo span {
  font-weight: 300;
  color: var(--gold-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-accent);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold-accent);
  transition: width var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(15deg);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   5. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
  background: linear-gradient(135deg, rgba(11, 25, 44, 0.92) 0%, rgba(15, 23, 42, 0.85) 100%),
              url('../images/hero.jpg') center/cover no-repeat;
  color: #ffffff;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.1rem;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-full);
  color: var(--gold-accent);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 2.25rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item h3 {
  font-size: 2rem;
  color: var(--gold-accent);
  font-weight: 800;
}

.stat-item p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0;
}

/* Quick ROI Preview Card in Hero */
.hero-calculator-preview {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.calculator-preview-header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

.calculator-preview-header h3 {
  font-size: 1.3rem;
  color: #ffffff;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.4rem;
}

.input-with-icon {
  position: relative;
}

.input-with-icon input, .input-with-icon select {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: #ffffff;
  outline: none;
  transition: border-color var(--transition-fast);
}

.input-with-icon input:focus, .input-with-icon select:focus {
  border-color: var(--gold-accent);
  background: rgba(255, 255, 255, 0.12);
}

.input-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-accent);
  font-size: 1rem;
}

.preview-result-box {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(16, 185, 129, 0.15) 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.result-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.result-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold-accent);
}

/* --------------------------------------------------------------------------
   6. Core Services Section
   -------------------------------------------------------------------------- */
.services-section {
  padding: 7rem 0;
  background: var(--bg-main);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-accent), var(--emerald-green));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212, 175, 55, 0.3);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  color: var(--gold-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  transition: all var(--transition-fast);
}

.service-card:hover .service-icon {
  background: var(--primary-navy);
  color: var(--gold-accent);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.975rem;
  margin-bottom: 1.5rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-accent);
  font-weight: 600;
  font-size: 0.9rem;
}

.service-link:hover {
  gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   7. Interactive UK Property ROI Calculator
   -------------------------------------------------------------------------- */
.calculator-section {
  padding: 7rem 0;
  background: var(--bg-dark-accent);
  color: #ffffff;
  position: relative;
}

.calculator-wrapper {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  overflow: hidden;
}

.calculator-inputs {
  padding: 3rem;
}

.calculator-inputs h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.calculator-inputs p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.range-slider-group {
  margin-bottom: 1.5rem;
}

.range-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.range-slider {
  width: 100%;
  height: 8px;
  background: var(--bg-surface-elevated);
  border-radius: 4px;
  outline: none;
  accent-color: var(--gold-accent);
  cursor: pointer;
}

.calculator-results {
  background: var(--primary-navy);
  color: #ffffff;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.result-card-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.result-card-item span {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.25rem;
}

.result-card-item h4 {
  font-size: 1.8rem;
  color: var(--gold-accent);
  font-weight: 800;
}

.calculator-results p.disclaimer {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   8. Portfolio Showcase Section
   -------------------------------------------------------------------------- */
.portfolio-section {
  padding: 7rem 0;
  background: var(--bg-main);
}

.portfolio-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn.active, .tab-btn:hover {
  background: var(--primary-navy);
  color: var(--gold-accent);
  border-color: var(--primary-navy);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.portfolio-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.portfolio-image {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.08);
}

.portfolio-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(11, 25, 44, 0.85);
  backdrop-filter: blur(8px);
  color: var(--gold-accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
}

.portfolio-content {
  padding: 1.75rem;
}

.portfolio-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.portfolio-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.portfolio-stats-mini {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.stat-mini strong {
  display: block;
  font-size: 1.1rem;
  color: var(--emerald-green);
}

.stat-mini span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   9. About Us & Leadership Team
   -------------------------------------------------------------------------- */
.about-section {
  padding: 7rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.4rem;
  margin-bottom: 1.25rem;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
  margin-bottom: 2rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-list i {
  color: var(--emerald-green);
  font-size: 1.2rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
}

.team-card {
  background: var(--bg-main);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-normal);
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-accent);
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-full);
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, var(--gold-accent), var(--primary-navy));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 2.2rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.team-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.team-card p.title {
  color: var(--gold-accent);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.team-card p.bio {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   10. Testimonials & FAQ Section
   -------------------------------------------------------------------------- */
.testimonials-section {
  padding: 7rem 0;
  background: var(--bg-main);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.stars {
  color: #f59e0b;
  margin-bottom: 1rem;
}

.testimonial-card p {
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.client-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--primary-navy);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.client-details h5 {
  font-size: 1rem;
}

.client-details span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq-section {
  padding: 6rem 0;
  background: var(--bg-surface);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-header {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: var(--bg-main);
  border: none;
  text-align: left;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-header i {
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-header i {
  transform: rotate(180deg);
}

.faq-body {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-item.active .faq-body {
  padding: 1.25rem 1.5rem;
  max-height: 300px;
}

/* --------------------------------------------------------------------------
   11. Contact & Quote Modal
   -------------------------------------------------------------------------- */
.contact-section {
  padding: 7rem 0;
  background: var(--primary-navy);
  color: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}

.contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-info p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.contact-form-box {
  background: #ffffff;
  color: var(--text-main);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .contact-form-box {
  background: var(--bg-surface);
}

.contact-form-box h3 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-control {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-main);
  color: var(--text-main);
  outline: none;
  margin-bottom: 1.25rem;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  border-color: var(--gold-accent);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Modal Window */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 25, 44, 0.8);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  padding: 2.5rem;
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: #060e19;
  color: rgba(255, 255, 255, 0.7);
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a:hover {
  color: var(--gold-accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   13. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .calculator-wrapper {
    grid-template-columns: 1fr;
  }
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: 280px;
    background: var(--primary-navy);
    flex-direction: column;
    padding: 6rem 2rem;
    align-items: flex-start;
    transition: right var(--transition-normal);
  }
  .nav-links.active {
    right: 0;
  }
  .mobile-menu-btn {
    display: block;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
