/* Italian Corporate Design System - Premium, Elegant, Trust-Focused */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Italian Corporate Color Palette */
  --primary-color: #1C2331;       /* Deep Navy */
  --secondary-color: #6B7280;     /* Warm Grey */
  --accent-color: #1F4FD8;        /* Italian Blue */
  --gold-accent: #C9A24D;         /* Subtle Gold for lines/icons */
  --background: #FFFFFF;          /* Pure White */
  --surface: #F9FAFB;             /* Off-white */
  --border: #E5E7EB;              /* Light Border */
  --text-primary: #1C2331;        /* Dark Text */
  --text-secondary: #6B7280;      /* Grey Text */
  --text-light: #9CA3AF;          /* Light Grey Text */
  
  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  
  /* Spacing - Scaled down to 80% */
  --spacing-xs: 0.4rem;
  --spacing-sm: 0.6rem;
  --spacing-md: 1.2rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3.2rem;
  --spacing-2xl: 4.8rem;
  --spacing-3xl: 6.4rem;
  
  /* Layout */
  --max-width: 1400px;
  --content-width: 1200px;
  --header-height: 75px; /* Scaled to 85% */
  
  /* Shadows - Subtle Italian elegance */
  --shadow-sm: 0 1px 2px rgba(28, 35, 49, 0.04);
  --shadow-md: 0 2px 8px rgba(28, 35, 49, 0.08);
  --shadow-lg: 0 6px 20px rgba(28, 35, 49, 0.12);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 15px; /* Scaled to ~85% */
}

body {
  font-family: var(--font-body);
  font-weight: var(--font-weight-normal);
  color: var(--text-primary);
  background-color: var(--background);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography - Italian Elegance */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-medium);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: 3rem; /* Scaled to 85% */
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-lg);
}

h2 {
  font-size: 2.35rem; /* Scaled to 85% */
  margin-bottom: var(--spacing-lg);
}

h3 {
  font-size: 1.7rem; /* Scaled to 85% */
  margin-bottom: var(--spacing-md);
}

h4 {
  font-size: 1.3rem; /* Scaled to 85% */
}

h5 {
  font-size: 1.1rem; /* Scaled to 85% */
}

h6 {
  font-size: 1.125rem;
}

p {
  margin-bottom: 1.25rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-size: 1rem; /* Scaled to 85% */
}

.lead-text {
  font-size: 1.2rem; /* Scaled to 85% */
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 400;
}

.small-text {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Layout Components */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
}

.container-narrow {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
}

.section {
  padding: var(--spacing-3xl) 0;
}

.section-lg {
  padding: calc(var(--spacing-3xl) * 1.5) 0;
}

.section-surface {
  background-color: var(--surface);
}

/* Header - Italian Professional Style */
.header {
  background: var(--background);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.85rem; /* Scaled to 85% */
  font-weight: var(--font-weight-semibold);
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo::after {
  content: '';
  width: 3px;
  height: 20px;
  background: linear-gradient(to bottom, var(--accent-color), var(--gold-accent));
  display: inline-block;
  margin-left: 12px;
  vertical-align: middle;
}

/* Navigation - Clean Italian Style */
.nav {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  font-size: 0.925rem;
  letter-spacing: 0.015em;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.75rem 0;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-accent);
  transition: width 0.3s ease;
}

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

/* Add subtle vertical separators between nav items */
.nav-link:not(:last-child)::before {
  content: '';
  position: absolute;
  right: -0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 16px;
  background: rgba(28, 35, 49, 0.1);
  opacity: 0.6;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  padding: var(--spacing-sm);
}

.mobile-menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--primary-color);
  transition: 0.3s ease;
}

/* Hero Section - Italian Elegance */
.hero {
  padding: var(--header-height) 0 var(--spacing-3xl);
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #fafbfc 0%, #ffffff 50%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 150%;
  background: radial-gradient(circle, rgba(31, 79, 216, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

/* Hero Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-badges {
  animation: slideInLeft 0.6s ease-out;
}

.hero-text p {
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-text .btn-group {
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-visual {
  animation: fadeIn 1s ease-out 0.3s backwards;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 500px;
  position: relative;
}

.hero-text h1 {
  font-size: 3.8rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out;
  color: var(--primary-color);
}

.hero-text .accent-line {
  color: var(--accent-color);
  font-weight: var(--font-weight-semibold);
}

.hero-image {
  height: 500px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(28, 35, 49, 0.15);
  transition: transform 0.3s ease;
}

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

.hero-image:hover {
  transform: scale(1.02);
}

/* Buttons - Italian Professional Style */
.btn {
  display: inline-block;
  padding: 0.9rem 2.3rem; /* Scaled to 85% */
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.925rem; /* Scaled to 85% */
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.04em;
  border-radius: 3px;
  text-transform: uppercase;
}

.btn-primary {
  background-color: var(--accent-color);
  color: white;
  border: 1px solid var(--accent-color);
  box-shadow: 0 2px 10px rgba(31, 79, 216, 0.25);
}

.btn-primary:hover {
  background-color: #1a44c2;
  border-color: #1a44c2;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(31, 79, 216, 0.35);
}

.btn-secondary {
  background-color: white;
  color: var(--primary-color);
  border: 1px solid rgba(28, 35, 49, 0.2);
  box-shadow: 0 2px 8px rgba(28, 35, 49, 0.08);
}

.btn-secondary:hover {
  background-color: var(--surface);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(28, 35, 49, 0.15);
}

.btn-outline {
  background-color: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
  padding: 0.9rem 2.3rem;
  font-size: 0.925rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: var(--accent-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(31, 79, 216, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
}

.btn-outline:hover {
  background-color: var(--accent-color);
  color: white;
}

.btn-group {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

/* Grid Layouts - European Structure */
.grid {
  display: grid;
  gap: var(--spacing-xl);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Contact Section Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

/* Cards - Elegant Italian Style */
.card {
  background-color: var(--background);
  padding: 2.15rem; /* Scaled to 85% */
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 2px;
}

.card-border {
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(28, 35, 49, 0.05);
  transition: all 0.3s ease;
}

.card-border:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 12px rgba(28, 35, 49, 0.08);
}

.card-shadow {
  box-shadow: 0 2px 8px rgba(28, 35, 49, 0.08);
  border: 1px solid rgba(28, 35, 49, 0.05);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--spacing-lg);
  color: var(--gold-accent);
  stroke-width: 1;
}

.card h3 {
  margin-bottom: var(--spacing-md);
  font-size: 1.5rem;
}

.card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Services Section */
.service-card {
  background-color: var(--background);
  padding: 2.75rem 2.25rem; /* Scaled to 85% */
  text-align: center;
  transition: all 0.3s ease;
  border-radius: 2px;
  min-height: 300px; /* Scaled to 85% */
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(28, 35, 49, 0.08);
  border: 1px solid rgba(28, 35, 49, 0.06);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(28, 35, 49, 0.12);
  border-color: rgba(28, 35, 49, 0.1);
}

.service-icon {
  width: 44px; /* Scaled to 85% */
  height: 44px; /* Scaled to 85% */
  margin: 0 auto 1.25rem;
  color: var(--accent-color);
  stroke-width: 1.5;
  opacity: 0.9;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.925rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 320px;
  margin: 0 auto;
}

/* Trust Section */
.trust-section {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.trust-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 1px solid rgba(28, 35, 49, 0.08);
  border-bottom: 1px solid rgba(28, 35, 49, 0.08);
}

.stat-item {
  text-align: center;
  padding: 0.5rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.4rem; /* Scaled to 85% */
  font-weight: var(--font-weight-semibold);
  color: var(--primary-color);
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: var(--font-weight-medium);
}

/* Forms - Italian Professional Style */
.form-group {
  margin-bottom: 1.75rem;
}

.form-label {
  display: block;
  font-weight: var(--font-weight-medium);
  margin-bottom: 0.5rem;
  font-size: 0.925rem;
  color: var(--text-primary);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  background-color: var(--background);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border-radius: 2px;
  box-shadow: inset 0 1px 2px rgba(28, 35, 49, 0.02);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(51, 102, 204, 0.08);
  background-color: #fafbfc;
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

/* Footer - Professional Italian */
.footer {
  background: linear-gradient(180deg, #1C2331 0%, #161b27 100%);
  color: white;
  padding: 4rem 0 2rem;
  margin-top: 5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-section h4 {
  color: white;
  font-size: 1.125rem;
  margin-bottom: var(--spacing-md);
  font-weight: var(--font-weight-medium);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

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

.footer-links li {
  margin-bottom: var(--spacing-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
  letter-spacing: 0.01em;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 2rem;
  text-align: center;
  font-size: 0.825rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

/* Page Headers */
.page-header {
  background-color: var(--surface);
  padding: calc(var(--header-height) + var(--spacing-2xl)) 0 var(--spacing-2xl);
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

.page-header .lead-text {
  max-width: 600px;
  margin: 0 auto;
}

/* Content Sections */
.content-section {
  max-width: 900px;
  margin: 0 auto;
}

.content-section h2 {
  margin-top: var(--spacing-2xl);
  margin-bottom: var(--spacing-lg);
}

.content-section h3 {
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
}

.content-section ul {
  margin-bottom: var(--spacing-lg);
  padding-left: var(--spacing-lg);
}

.content-section li {
  margin-bottom: var(--spacing-sm);
  line-height: 1.7;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

/* Gold Accent Elements */
.gold-line {
  width: 60px;
  height: 3px;
  background: var(--gold-accent);
  margin: var(--spacing-lg) auto;
}

.gold-line-left {
  margin: var(--spacing-lg) 0;
}

/* Fade Animation - Optional and Minimal */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design - Mobile First */
@media (max-width: 1024px) {
  :root {
    --spacing-xl: 2.4rem;
    --spacing-2xl: 3.2rem;
    --spacing-3xl: 4rem;
  }
  
  /* Adjust navigation for medium screens */
  .nav {
    gap: 1.4rem;
  }
  
  .nav-link {
    font-size: 0.875rem;
    padding: 0.6rem 0;
  }
  
  .container,
  .container-narrow {
    padding: 0 var(--spacing-lg);
  }
  
  h1 {
    font-size: 2.4rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero-text h1 {
    font-size: 2.6rem;
  }
  
  .hero-badges {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  /* Fix grid layouts for tablets */
  .grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
  
  /* Fix specific grid layouts with inline styles */
  .grid[style*="2fr 1fr"],
  .grid[style*="1fr 2fr"] {
    grid-template-columns: 1fr !important;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-badges {
    justify-content: center;
  }
  
  .hero-text h1 {
    font-size: 3rem;
  }
  
  .hero-visual {
    order: -1;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .hero-image {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 850px) {
  /* Extra compact navigation for smaller screens */
  .nav {
    gap: 1.2rem;
  }
  
  .nav-link {
    font-size: 0.85rem;
    padding: 0.5rem 0;
  }
}

@media (max-width: 680px) {
  html {
    font-size: 16px;
  }
  
  :root {
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
  }
  
  /* Fix container padding for mobile */
  .container,
  .container-narrow {
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* Ensure body has no margins */
  body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
  }
  
  /* Main content full width */
  main {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
  }
  
  /* Header full width on mobile */
  .header {
    width: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
  }
  
  .header-container {
    padding: 0 1rem;
    width: 100%;
    margin: 0;
  }
  
  /* Navigation */
  .nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--background);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 0;
    gap: 0;
    box-shadow: 0 4px 20px rgba(28, 35, 49, 0.1);
  }
  
  .nav.active {
    display: flex;
  }
  
  .nav-link {
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--border-light);
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  /* Hero section */
  .hero {
    padding: calc(var(--header-height) + 0.5rem) 0 var(--spacing-2xl);
    min-height: auto;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--spacing-xl);
    width: 100%;
  }
  
  .hero-text {
    width: 100%;
    padding: 0;
  }
  
  .hero-text h1 {
    font-size: 2rem; /* Further reduced */
    line-height: 1.2;
  }
  
  .hero-text h1 span {
    font-size: 2rem; /* Further reduced */
  }
  
  .hero-image {
    height: 350px;
    width: 100%;
  }
  
  /* Sections */
  .section {
    padding: var(--spacing-2xl) 0;
    width: 100%;
    margin: 0;
  }
  
  .section-surface {
    width: 100%;
    margin: 0;
  }
  
  /* Typography */
  h2 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-md);
  }
  
  h3 {
    font-size: 1.35rem;
  }
  
  h4 {
    font-size: 1.15rem;
  }
  
  .lead-text {
    font-size: 1rem;
  }
  
  /* Grid layouts */
  .grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  /* Service cards */
  .service-card {
    min-height: 250px;
  }
  
  /* Cards */
  .card {
    padding: var(--spacing-lg);
  }
  
  .card-border {
    padding: var(--spacing-lg);
  }
  
  /* Trust stats */
  .trust-stats {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .stat-card {
    padding: var(--spacing-lg);
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  /* Images */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Specific image heights on mobile */
  div[style*="height: 400px"] {
    height: 300px !important;
  }
  
  div[style*="height: 350px"] {
    height: 250px !important;
  }
  
  div[style*="height: 300px"] {
    height: 250px !important;
  }
  
  div[style*="height: 280px"] {
    height: 200px !important;
  }
  
  div[style*="height: 250px"] {
    height: 200px !important;
  }
  
  div[style*="height: 200px"] {
    height: 180px !important;
  }
  
  /* Forms */
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px; /* Prevents zoom on iOS */
    width: 100%;
    box-sizing: border-box;
  }
  
  .form-group {
    margin-bottom: var(--spacing-md);
  }
  
  /* Contact section mobile optimization */
  #contact .container {
    padding-left: 1rem;
    padding-right: 2rem;
  }
  
  #contact h3 {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    text-align: left;
  }
  
  #contact .grid > div:first-child h3 {
    margin-top: 0;
  }
  
  /* Gold line alignment on mobile */
  .gold-line-left {
    margin-left: 0;
    margin-right: auto;
  }
  
  /* Form alignment */
  #contact form {
    width: 100%;
    padding: 0;
    margin: 0;
  }
  
  #contact p {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    text-align: center;
  }
  
  .footer-section {
    text-align: center;
  }
  
  .footer-links {
    text-align: center;
  }
  
  /* Buttons */
  .btn-group {
    flex-direction: column;
    align-items: stretch;
    gap: var(--spacing-md);
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  
  .btn {
    width: 100%;
    text-align: center;
    margin: 0;
  }
}

@media (max-width: 480px) {
  /* Further spacing reduction */
  .container,
  .container-narrow {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .section {
    padding: var(--spacing-xl) 0;
  }
  
  /* Typography */
  .hero-text h1 {
    font-size: 1.875rem;
    margin-bottom: var(--spacing-md);
  }
  
  .hero-text h1 span {
    font-size: 1.875rem;
  }
  
  h2 {
    font-size: 1.625rem;
  }
  
  h3 {
    font-size: 1.35rem;
  }
  
  h4 {
    font-size: 1.15rem;
  }
  
  .lead-text {
    font-size: 1rem;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  /* Hero adjustments */
  .hero {
    padding: calc(var(--header-height) + 0.25rem) 0 var(--spacing-xl);
  }
  
  .hero-image {
    height: 250px;
  }
  
  /* Stats */
  .stat-number {
    font-size: 2rem;
  }
  
  /* Cards */
  .card {
    padding: var(--spacing-md);
  }
  
  .service-card {
    min-height: 220px;
    padding: var(--spacing-lg);
  }
  
  /* Buttons */
  .btn {
    font-size: 0.95rem;
    padding: var(--spacing-sm) var(--spacing-md);
  }
  
  /* Logo */
  .logo {
    font-size: 1.1rem;
  }
  
  /* Gold line */
  .gold-line {
    width: 40px;
  }
  
  /* Images on small mobile */
  div[style*="height: 300px"] {
    height: 200px !important;
  }
  
  div[style*="height: 250px"] {
    height: 180px !important;
  }
  
  div[style*="height: 200px"] {
    height: 150px !important;
  }
  
  div[style*="height: 180px"] {
    height: 140px !important;
  }
}

/* Very small devices */
@media (max-width: 360px) {
  .hero-text h1 {
    font-size: 1.625rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .container,
  .container-narrow {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .btn {
    font-size: 0.875rem;
  }
}