/*
 * Philippines Wood - Global Wood Export
 *
 * DESIGN SYSTEM & CORE STYLESHEET
 * Version: 1.3 (2025) - Tighter Spacing & Fixed Nav Height
 * Designer/Dev: Harvard/Award-Winning (Per-Prompt)
 *
 * NOTES:
 * This is a mobile-first, modern stylesheet using CSS variables,
 * fluid typography, and modern layout properties (Grid, Flexbox).
 */

/* ---------------------------------- */
/* :ROOT - THE DESIGN SYSTEM
/* ---------------------------------- */
:root {
  /* COLORS
   -----------------------------------*/
  /* Primary Palette (Earthy, Trusted) */
  --color-primary-dark: #2a3d3a;   /* Deep, rich forest green */
  --color-primary: #3b5550;       /* A slightly lighter, more visible green */
  --color-primary-light: #5f807a;   /* For hover states, lighter accents */

  /* Accent Palette (Premium, Quality) */
  --color-accent-gold: #b08d57;   /* A sophisticated, brushed gold/brass */
  --color-accent-gold-dark: #9a7945; /* Gold for hover states */

  /* Neutral Palette (Clean, Modern) */
  --color-text-primary: #1a1a1a;   /* Near-black for maximum readability */
  --color-text-secondary: #555555;   /* Medium grey for body copy */
  --color-text-light: #767676;     /* Lighter grey for subtitles, meta */
  --color-text-inverted: #ffffff;   /* For text on dark backgrounds */
  
  --color-bg-primary: #ffffff;     /* Clean white primary background */
  --color-bg-secondary: #fdfcf9; /* A very light, warm beige for contrast */
  
  --color-border: #e0e0e0;       /* Subtle borders and dividers */
  --color-border-focus: var(--color-accent-gold);

  /* TYPOGRAPHY
   -----------------------------------*/
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Fluid Typography - Scales with viewport */
  --font-size-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem); /* 16px -> 18px */
  --line-height-base: 1.6; /* Slightly tighter line height */

  /* Typographic Scale (Majestic Third: 1.333) */
  --font-size-h1: clamp(2.2rem, 1.8rem + 2vw, 3.5rem); /* Slightly smaller max for tighter feel */
  --font-size-h2: clamp(1.8rem, 1.6rem + 1.5vw, 2.5rem);
  --font-size-h3: clamp(1.4rem, 1.3rem + 0.75vw, 2rem);
  --font-size-h4: clamp(1.1rem, 1rem + 0.5vw, 1.5rem);
  --font-size-sm: 0.9rem;
  --font-size-xs: 0.8rem;

  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  --font-weight-black: 800;

  /* LAYOUT & SPACING (TIGHTER)
   -----------------------------------*/
  --container-max-width: 1360px;
  --container-padding: 16px; /* Was 20px, then 18px */
  --container-padding-sm: 10px;

  /* Much tighter section padding for denser layout */
  --section-padding-y: clamp(2rem, 4vw, 4rem); 
  
  --nav-height: 64px; /* Fixed: Increased from 48px so it's not "too short" */
  
  /* BORDERS & SHADOWS
   -----------------------------------*/
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;

  /* Subtle, modern shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);

  /* TRANSITIONS
   -----------------------------------*/
  --transition-fast: 0.2s ease-out;
  --transition-smooth: 0.3s ease-in-out;

  /* Z-INDEX
   -----------------------------------*/
  --z-index-dropdown: 1000;
  --z-index-navbar: 1001;
  --z-index-modal: 1002;
  --z-index-mobile-menu: 1003;
}


/* ---------------------------------- */
/* BASE & RESET
/* ---------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-secondary);
  background-color: var(--color-bg-primary);
  overflow-x: hidden;
}

/* Removes overflow:hidden from menu */
.body-menu-open {
  overflow: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
}

/* ---------------------------------- */
/* TYPOGRAPHY
/* ---------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  line-height: 1.15;
  margin-bottom: 0.5em; /* Tighter heading margins */
  letter-spacing: -0.02em;
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }
h4 { font-size: var(--font-size-h4); }

p {
  margin-bottom: 1rem; /* Tighter paragraph margins */
  max-width: 65ch; /* Readable line length */
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

strong {
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
}

/* ---------------------------------- */
/* LAYOUT & CONTAINERS
/* ---------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

/* Section with alternate background color */
.section-alt {
  background-color: var(--color-bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 2.5rem; /* Significantly tighter (was 3.5rem+) */
}

.section-header h2 {
  margin-bottom: 0.35em;
}

.section-header p {
  font-size: var(--font-size-base);
  color: var(--color-text-light);
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------------------------------- */
/* BUTTONS
/* ---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  
  font-size: 0.95rem; /* Slightly smaller base button size */
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.01em;
  text-decoration: none;
  
  padding: 0.75em 1.5em; /* Tighter button padding */
  border-radius: var(--border-radius-sm);
  border: 2px solid transparent;
  
  transition: background-color var(--transition-fast),
              border-color var(--transition-fast),
              color var(--transition-fast),
              transform var(--transition-fast),
              box-shadow var(--transition-fast);
}

/* Primary Button (Main CTA) */
.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text-inverted);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-text-inverted);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Secondary Button (Outline) */
.btn-secondary {
  background-color: transparent;
  color: var(--color-text-primary);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background-color: var(--color-bg-secondary);
  border-color: var(--color-text-primary);
  color: var(--color-text-primary);
  text-decoration: none;
  transform: translateY(-2px);
}

/* Accent Button (Gold) */
.btn-accent {
  background-color: var(--color-accent-gold);
  color: var(--color-text-inverted);
  border-color: var(--color-accent-gold);
}

.btn-accent:hover {
  background-color: var(--color-accent-gold-dark);
  border-color: var(--color-accent-gold-dark);
  color: var(--color-text-inverted);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ---------------------------------- */
/* HEADER & NAVIGATION
/* ---------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-index-navbar);
  height: var(--nav-height);
  padding-top: max(0px, env(safe-area-inset-top)); /* Removed extra 12px top padding for a tighter fit */
  background-color: rgba(255, 255, 255, 0.95); /* Increased opacity slightly */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--transition-fast);
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text-primary);
  font-weight: var(--font-weight-bold);
  font-size: 1.2rem;
}

.nav-logo img {
  height: 32px; /* Slightly smaller logo for tighter header */
  width: auto;
}

.nav-logo:hover {
  text-decoration: none;
}

.nav-links,
.nav-actions {
  display: none; /* Hidden on mobile by default */
}

/* Desktop Navigation - BREAKPOINT MOVED TO 1200px */
@media (min-width: 1200px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem; /* Tighter gap between links */
  }

  .nav-links a {
    font-size: 0.9rem; /* Smaller, tighter font */
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
  }
  
  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent-gold);
    transition: width var(--transition-smooth);
  }

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

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

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

  .nav-actions .btn {
    font-size: 0.85rem;
    padding: 0.5em 1em; /* Compact header buttons */
  }
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  z-index: var(--z-index-mobile-menu);
  color: var(--color-text-primary);
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
}

.nav-toggle .icon-close { display: none; }
.nav-toggle .icon-burger { display: block; }

.body-menu-open .nav-toggle .icon-close { display: block; }
.body-menu-open .nav-toggle .icon-burger { display: none; }

/* Mobile Navigation Menu */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-index-navbar) - 1);
  background-color: var(--color-bg-primary);
  
  padding: calc(var(--nav-height) + 1.5rem) var(--container-padding) 2rem;
  padding-top: max(calc(var(--nav-height) + 1.5rem), env(safe-area-inset-top));

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem; /* Tighter mobile menu spacing */
  
  opacity: 0;
  visibility: hidden;
  transform: translateY(-1rem);
  transition: opacity var(--transition-fast), visibility var(--transition-fast), transform var(--transition-fast);
}

.body-menu-open .mobile-nav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav a {
  font-size: 1.35rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  padding: 0.5rem;
}

.mobile-nav .btn {
  width: 100%;
  margin-top: 0.75rem;
  font-size: 1.1rem;
  padding: 0.85em;
}

@media (min-width: 1200px) {
  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }
}

/* ---------------------------------- */
/* HERO SECTION (HOMEPAGE)
/* ---------------------------------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 550px; /* Slightly shorter minimum */
  padding-top: 2rem;
  padding-bottom: 2rem;
  color: var(--color-text-inverted);
  background-color: var(--color-primary-dark);
  background-size: cover;
  background-position: center center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(42, 61, 58, 0.7);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  max-width: 850px; /* Tighter max-width for hero text */
  text-align: center;
}

.hero h1 {
  color: var(--color-text-inverted);
  margin-bottom: 0.35em;
  font-weight: var(--font-weight-black);
}

.hero .subtitle {
  font-size: 1.1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  max-width: 55ch;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.hero .btn-primary {
  background-color: var(--color-accent-gold);
  border-color: var(--color-accent-gold);
  color: var(--color-text-inverted);
}

.hero .btn-primary:hover {
  background-color: var(--color-accent-gold-dark);
  border-color: var(--color-accent-gold-dark);
}

.hero .btn-secondary {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--color-text-inverted);
}

.hero .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--color-text-inverted);
  transform: translateY(-2px);
}

@media (min-width: 768px) {
  .hero { min-height: 650px; }
  .hero-actions {
    flex-direction: row;
    gap: 1rem;
  }
}

/* ---------------------------------- */
/* FEATURE GRIDS (Reusable)
/* ---------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem; /* Tighter grid gap */
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background-color: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 1.5rem; /* Tighter card padding */
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent-gold);
}

.feature-card .icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; /* Slightly smaller icons */
  height: 46px;
  border-radius: 50%;
  background-color: rgba(59, 85, 80, 0.1);
  color: var(--color-primary);
  margin-bottom: 1.25rem;
}

.feature-card .icon-wrapper svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 0; /* Remove bottom margin in cards */
}

/* ---------------------------------- */
/* PRODUCT GRIDS (Homepage)
/* ---------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* Slightly smaller min-width */
  gap: 1.5rem; /* Tighter gap */
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transition: all var(--transition-smooth);
}

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

.product-card:hover .product-card-image::after { opacity: 1; }

.product-card-image {
  position: relative;
  width: 100%;
  height: 300px; /* Slightly shorter images */
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hover overlay */
.product-card-image::after {
  content: 'View Details →';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(42, 61, 58, 0.7);
  color: var(--color-text-inverted);
  font-weight: var(--font-weight-bold);
  font-size: 1rem;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.product-card-content {
  padding: 1.25rem; /* Tighter content padding */
  background-color: var(--color-bg-primary);
}

.product-card-content h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--color-text-primary);
}

.product-card-content p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-top: 0.25rem;
  margin-bottom: 0;
}

/* ---------------------------------- */
/* 2-COLUMN FEATURE SECTION (Reusable)
/* ---------------------------------- */
.feature-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 992px) {
  .feature-split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem; /* Tighter split gap */
  }
  
  .feature-split-reverse {
    grid-template-areas: "content image";
  }
  .feature-split-reverse .feature-split-image { grid-area: image; }
  .feature-split-reverse .feature-split-content { grid-area: content; }
}

.feature-split-image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative; 
}

.feature-split-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1; 
  object-fit: cover;
  display: block;
}

.feature-split-content .subtitle {
  display: block;
  font-size: 0.9rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.feature-split-content h2 {
  margin-bottom: 1.25rem;
}

.feature-split-content .btn {
  margin-top: 1.5rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  margin-bottom: 0.75rem;
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
  font-size: 1.1rem;
}

/* ---------------------------------- */
/* CTA SECTION (Reusable)
/* ---------------------------------- */
.cta-section {
  background-color: var(--color-primary-dark);
  color: var(--color-text-inverted);
  text-align: center;
  padding: 3rem 1.5rem; /* Fixed, tighter padding for CTA */
  border-radius: var(--border-radius-lg);
}

.cta-section h2 {
  color: var(--color-text-inverted);
  max-width: 25ch;
  margin: 0 auto 1rem auto;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 55ch;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

/* ---------------------------------- */
/* FOOTER
/* ---------------------------------- */
.footer {
  background-color: var(--color-bg-secondary);
  color: var(--color-text-secondary);
  border-top: 1px solid var(--color-border);
  padding-top: 3rem; /* Tighter top padding */
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
  }
}

.footer-about .nav-logo {
  margin-bottom: 1rem;
}

.footer-about p {
  font-size: 0.9rem;
  max-width: 40ch;
}

.footer-column h4 {
  font-size: 1rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: 1.25rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 0.65rem;
}

.footer-column a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-column a:hover {
  color: var(--color-text-primary);
  text-decoration: underline;
}

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.footer-bottom p {
  margin: 0;
}

.footer-legal-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.footer-legal-links a {
  margin: 0;
  color: var(--color-text-light);
  text-decoration: none;
}

.footer-legal-links a:hover {
  color: var(--color-text-primary);
  text-decoration: underline;
}

@media (min-width: 768px) {
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .footer-legal-links {
    flex-direction: row;
    gap: 0;
    margin-top: 0;
  }
  .footer-legal-links a {
    margin: 0 0.75rem;
  }
}

/* ---------------------------------- */
/* FORM ELEMENTS
/* ---------------------------------- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  margin-bottom: 0.4rem;
}

.input,
.textarea {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem; /* Tighter internal padding */
  font-size: 1rem;
  line-height: inherit;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--color-accent-gold);
  box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.2);
}

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

/* ---------------------------------- */
/* UTILITY CLASSES
/* ---------------------------------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.margin-bottom-0 { margin-bottom: 0 !important; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------------------------------- */
/* MOBILE FIXES
/* ---------------------------------- */
.body-menu-open .navbar {
  background-color: var(--color-bg-primary);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@media (max-width: 360px) {
  .mobile-nav a { font-size: 1.2rem; }
}

/* ---------------------------------- */
/* DESKTOP DROPDOWN NAVIGATION
/* ---------------------------------- */
@media (min-width: 1200px) {
  .nav-item.has-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
  }

  .nav-link-dropdown {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    height: 100%;
  }

  .nav-link-dropdown::after {
    content: '▼';
    display: inline-block;
    font-size: 0.6rem;
    margin-top: 1px;
    transition: transform var(--transition-fast);
  }

  .dropdown-menu {
    position: absolute;
    top: calc(100% - 1px); /* Flush with bottom of navbar */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 220px; /* Slightly tighter dropdown width */
    background-color: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    z-index: var(--z-index-dropdown);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), visibility var(--transition-fast), transform var(--transition-fast);
  }

  .dropdown-menu a {
    display: block;
    white-space: nowrap;
    padding: 0.6rem 1.2rem; /* Tighter dropdown links */
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    font-size: 0.9rem;
  }

  .dropdown-menu a::after { display: none; }
  
  .dropdown-menu a:hover {
    background-color: var(--color-bg-secondary);
    color: var(--color-text-primary);
    text-decoration: none;
  }

  .nav-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .nav-item.has-dropdown:hover .nav-link-dropdown::after {
    transform: rotate(180deg);
  }
}

/* ---------------------------------- */
/* MOBILE DROPDOWN NAVIGATION
/* ---------------------------------- */
.mobile-dropdown { text-align: center; }

.mobile-nav-link-dropdown {
  font-size: 1.35rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  padding: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-nav-link-dropdown::after {
  content: '▼';
  display: inline-block;
  font-size: 0.8rem;
  margin-top: 3px;
}

.mobile-dropdown-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.mobile-dropdown-content a {
  font-size: 1.1rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  padding: 0.25rem;
}

.mobile-dropdown-content a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* ---------------------------------- */
/* CONTACT PAGE REFINEMENTS
/* ---------------------------------- */
.icon-mail { -webkit-mask: url('/media/icon-mail.svg') no-repeat center / contain; mask: url('/media/icon-mail.svg') no-repeat center / contain; }
.icon-phone { -webkit-mask: url('/media/icon-phone.svg') no-repeat center / contain; mask: url('/media/icon-phone.svg') no-repeat center / contain; }
.icon-address { -webkit-mask: url('/media/icon-house-hand-mortgage.svg') no-repeat center / contain; mask: url('/media/icon-house-hand-mortgage.svg') no-repeat center / contain; }

.contact-layout-grid { gap: 1.25rem; }
@media (min-width: 992px) {
  .contact-layout-grid {
    grid-template-columns: 1.7fr 1fr;
    gap: 1.5rem; /* Tighter gutter */
  }
}

.contact-form-card { padding: 1.5rem; }
.contact-info-panel { padding: 1.5rem; }

.contact-list {
  margin-top: 0.5rem;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  display: grid;
}
.contact-item {
  grid-template-columns: 20px 1fr;
  align-items: start;
  column-gap: 0.75rem;
  padding: 0.35rem 0;
  display: grid;
  color: var(--color-text-secondary);
}
.contact-item + .contact-item {
  border-top: 1px solid var(--color-border);
  padding-top: 0.75rem;
}

.icon {
  width: 20px; height: 20px; opacity: 0.85; margin-top: 0.1rem;
  background-color: currentColor;
}

.contact-item strong {
  display: block;
  margin: 0 0 0.15rem 0;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--color-text-primary);
}
.contact-item a, .contact-item div, .contact-address { line-height: 1.45; }

.contact-info-panel h3 { margin-bottom: 0.75rem; }
.contact-info-panel a { font-weight: var(--font-weight-regular); }