/* ==========================================================================
   Rydell Tailors - Main Stylesheet
   Kansas City's Trusted Tailor Since 1977
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Primary Colors */
  --navy: #1B2D4F;
  --navy-light: #2A4066;
  --navy-dark: #0F1A2E;

  /* Accent Colors */
  --gold: #C9A227;
  --gold-light: #D4B54A;
  --gold-muted: #B8975A;

  /* Neutrals */
  --cream: #FAF8F5;
  --cream-dark: #F0EBE3;
  --white: #FFFFFF;
  --gray-600: #6B7280;
  --gray-400: #9CA3AF;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Font Sizes - Mobile First */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */
  --text-6xl: 3.5rem;    /* 56px */

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;

  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(27, 45, 79, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(27, 45, 79, 0.07), 0 2px 4px -1px rgba(27, 45, 79, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(27, 45, 79, 0.08), 0 4px 6px -2px rgba(27, 45, 79, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(27, 45, 79, 0.1), 0 10px 10px -5px rgba(27, 45, 79, 0.04);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--gray-600);
  background-color: var(--cream);
  min-height: 100vh;
}

/* Subtle linen texture background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%23C9A227' fill-opacity='0.03' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
}

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

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

a:hover {
  color: var(--gold);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: var(--text-4xl);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-3xl);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

p {
  margin-bottom: var(--space-4);
}

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

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

.text-navy {
  color: var(--navy);
}

.text-muted {
  color: var(--gray-400);
}

.text-small {
  font-size: var(--text-sm);
}

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

/* Decorative gold underline for headings */
.heading-decorated {
  position: relative;
  display: inline-block;
  padding-bottom: var(--space-4);
}

.heading-decorated::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Section titles */
.section-subtitle {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: var(--space-3);
}

/* Larger subtitle for hero */
.hero .section-subtitle {
  font-size: var(--text-base);
  letter-spacing: 0.15em;
  margin-bottom: var(--space-4);
}

/* --------------------------------------------------------------------------
   Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.section {
  padding: var(--space-12) 0;
}

.section-lg {
  padding: var(--space-16) 0;
}

.section-alt {
  background-color: var(--cream-dark);
}

.section-dark {
  background-color: var(--navy-dark);
  color: var(--cream);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

.grid-4 {
  grid-template-columns: 1fr;
}

.flex {
  display: flex;
}

.flex-center {
  align-items: center;
  justify-content: center;
}

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

.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--gold);
  color: var(--navy);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--gold-light);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-secondary:hover {
  background-color: var(--navy);
  color: var(--white);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

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

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

/* Button group */
.btn-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.card-cream {
  background-color: var(--cream-dark);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--cream);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  color: var(--gold);
}

.card-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.card-text {
  color: var(--gray-600);
  font-size: var(--text-base);
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: var(--cream);
  z-index: 1000;
  transition: box-shadow var(--transition-base), background-color var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  background-color: rgba(250, 248, 245, 0.98);
  backdrop-filter: blur(8px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 69px;
  width: auto;
}

@media (min-width: 768px) {
  .logo img {
    height: 80px;
  }
}

.nav {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--navy);
  position: relative;
  padding: var(--space-2) 0;
}

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

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

.nav-link:hover {
  color: var(--navy);
}

.header-phone {
  display: none;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--navy);
}

.header-phone svg {
  color: var(--gold);
}

/* Mobile menu button */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--navy);
  transition: all var(--transition-base);
}

.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);
}

/* Mobile navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--cream);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-link {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--navy);
  padding: var(--space-2);
}

.mobile-nav-link:hover {
  color: var(--gold);
}

.mobile-nav-phone {
  margin-top: var(--space-6);
  font-size: var(--text-lg);
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   Hero Sections
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 85vh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding: calc(var(--header-height) + var(--space-8)) var(--space-5) var(--space-8);
  overflow: hidden;
  background-color: var(--cream);
}

/* Herringbone texture pattern */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../assets/images/pattern.png');
  background-size: 400px 400px;
  background-repeat: repeat;
  opacity: 0.5;
  pointer-events: none;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero h1 {
  color: var(--navy);
  font-size: var(--text-4xl);
  margin-bottom: var(--space-6);
  line-height: 1.1;
}

.hero-subtitle {
  color: var(--gray-600);
  font-size: var(--text-xl);
  margin-bottom: var(--space-8);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero .btn-group {
  justify-content: center;
}

.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-xl);
}

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

.hero-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 300px;
  background: linear-gradient(135deg, var(--cream-dark) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-style: italic;
  opacity: 0.7;
}

/* Page hero (smaller, elegant) */
.hero-page {
  min-height: auto;
  padding: calc(var(--header-height) + var(--space-16)) var(--space-5) var(--space-16);
  background: linear-gradient(180deg, var(--cream-dark) 0%, var(--cream) 100%);
  text-align: center;
}

.hero-page .hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero-page h1 {
  margin-bottom: var(--space-4);
}

.hero-page .hero-subtitle {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Gold Thread Divider
   -------------------------------------------------------------------------- */
.thread-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-8) 0;
}

.thread-divider svg {
  width: 200px;
  height: auto;
  color: var(--gold);
}

.thread-divider-simple {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: var(--space-6) auto;
}

/* --------------------------------------------------------------------------
   Service Cards
   -------------------------------------------------------------------------- */
.service-card {
  text-align: center;
  padding: var(--space-6);
}

.service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--cream);
  border-radius: 50%;
  color: var(--gold);
}

.service-card h3 {
  margin-bottom: var(--space-2);
  font-size: var(--text-lg);
}

.service-card .card-text {
  font-size: var(--text-sm);
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.testimonial-card {
  background-color: var(--white);
  padding: var(--space-8);
  padding-top: var(--space-10);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  position: relative;
  border-top: 3px solid var(--gold);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -0.15em;
  left: var(--space-6);
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.2;
  line-height: 1;
  pointer-events: none;
}

.testimonial-text {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--navy);
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--navy);
}

.testimonial-info strong {
  display: block;
  color: var(--navy);
}

.testimonial-info span {
  font-size: var(--text-sm);
  color: var(--gray-400);
}

/* Star rating */
.stars {
  display: flex;
  gap: var(--space-1);
  color: var(--gold);
}

.rating-summary {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-lg);
}

.rating-summary .stars {
  font-size: var(--text-xl);
}

.rating-text {
  color: var(--gray-600);
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  text-align: center;
  padding: var(--space-12) var(--space-5);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath fill='%23C9A227' fill-opacity='0.05' d='M30 0L60 30L30 60L0 30z'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: var(--space-3);
  font-size: var(--text-2xl);
}

.cta-section p {
  color: var(--cream);
  opacity: 0.9;
  max-width: 500px;
  margin: 0 auto var(--space-6);
}

.cta-section .btn-group {
  justify-content: center;
}

/* Lighter CTA variant */
.cta-section-light {
  background: var(--cream-dark);
  padding: var(--space-12) var(--space-5);
}

.cta-section-light::before {
  display: none;
}

.cta-section-light h2 {
  color: var(--navy);
}

.cta-section-light p {
  color: var(--gray-600);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--navy-dark);
  color: var(--cream);
  padding: var(--space-12) 0 var(--space-6);
}

.footer-grid {
  display: grid;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer-brand {
  text-align: center;
}

.footer-logo {
  height: 60px;
  width: auto;
  margin: 0 auto var(--space-4);
  filter: brightness(0) invert(1);
}

.footer-tagline {
  font-style: italic;
  color: var(--gold-muted);
}

.footer-section h4 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-link {
  color: var(--cream);
  opacity: 0.8;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.footer-link:hover {
  opacity: 1;
  color: var(--gold);
}

.footer-contact p {
  margin-bottom: var(--space-2);
  opacity: 0.8;
}

.footer-contact a {
  color: var(--cream);
}

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

.footer-hours {
  opacity: 0.8;
}

.footer-hours p {
  margin-bottom: var(--space-1);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-6);
  text-align: center;
}

.footer-copyright {
  font-size: var(--text-sm);
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   Services Page
   -------------------------------------------------------------------------- */
.service-section {
  padding: var(--space-12) 0;
  border-bottom: 1px solid var(--cream-dark);
}

.service-section:last-child {
  border-bottom: none;
}

.service-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.service-header .service-icon {
  margin: 0;
  flex-shrink: 0;
}

.service-list {
  display: grid;
  gap: var(--space-3);
}

.service-list li {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding-left: var(--space-2);
}

.service-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.5em;
}

.service-note {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background-color: var(--cream);
  border-left: 3px solid var(--gold);
  font-style: italic;
  color: var(--navy);
}

/* --------------------------------------------------------------------------
   About Page
   -------------------------------------------------------------------------- */
.about-content {
  display: grid;
  gap: var(--space-12);
}

.about-text h3 {
  margin-bottom: var(--space-4);
}

.about-text p {
  font-size: var(--text-lg);
}

.about-image-placeholder {
  background-color: var(--cream-dark);
  border-radius: var(--radius-md);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-style: italic;
}

/* Location section */
.location-section {
  background-color: var(--cream-dark);
}

.location-card {
  background-color: var(--white);
  padding: var(--space-8);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.location-card h3 {
  margin-bottom: var(--space-6);
}

.location-info {
  display: grid;
  gap: var(--space-4);
}

.location-item {
  display: flex;
  gap: var(--space-3);
}

.location-item svg {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.map-placeholder {
  margin-top: var(--space-8);
  background-color: var(--cream-dark);
  border-radius: var(--radius-md);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
}

/* --------------------------------------------------------------------------
   Gallery Page
   -------------------------------------------------------------------------- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-bottom: var(--space-8);
}

.filter-btn {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--gray-600);
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--navy);
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  background-color: var(--cream-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4);
  background: linear-gradient(transparent, rgba(15, 26, 46, 0.8));
  color: var(--white);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-style: italic;
  text-align: center;
  padding: var(--space-4);
}

/* --------------------------------------------------------------------------
   Contact Page
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: var(--space-10);
}

.contact-info {
  order: 2;
}

.contact-info h3 {
  margin-bottom: var(--space-6);
}

.contact-details {
  display: grid;
  gap: var(--space-6);
}

.contact-item {
  display: flex;
  gap: var(--space-4);
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  background-color: var(--cream-dark);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-item h4 {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.contact-item p {
  margin-bottom: 0;
}

.contact-item a {
  color: var(--navy);
  font-weight: 600;
}

.contact-form-wrapper {
  order: 1;
}

.contact-form {
  background-color: var(--white);
  padding: var(--space-8);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.contact-form h3 {
  margin-bottom: var(--space-6);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 500;
  color: var(--navy);
}

.form-label .required {
  color: var(--gold);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  background-color: var(--cream);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}

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

.form-submit {
  width: 100%;
}

/* Map section */
.map-section {
  margin-top: var(--space-12);
}

.map-embed {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--cream-dark);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */

/* Tablet (768px and up) */
@media (min-width: 768px) {
  :root {
    --header-height: 90px;
  }

  h1 {
    font-size: var(--text-5xl);
  }

  h2 {
    font-size: var(--text-4xl);
  }

  .container {
    padding: 0 var(--space-8);
  }

  .section {
    padding: var(--space-16) 0;
  }

  .section-lg {
    padding: var(--space-20) 0;
  }

  .btn-group {
    flex-direction: row;
    justify-content: flex-start;
  }

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

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

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

  .hero-split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }

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

  .hero-subtitle {
    margin-left: 0;
    margin-right: 0;
  }

  .hero .btn-group {
    justify-content: flex-start;
  }

  .hero h1 {
    font-size: var(--text-5xl);
  }

  .hero-subtitle {
    font-size: var(--text-2xl);
  }

  .hero-image {
    aspect-ratio: 3/4;
  }

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

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

  .footer-logo {
    margin: 0 0 var(--space-4);
  }

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

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-info {
    order: 1;
  }

  .contact-form-wrapper {
    order: 2;
  }

  .about-content {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
  .nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .header-phone {
    display: flex;
  }

  h1 {
    font-size: var(--text-6xl);
  }

  .hero h1 {
    font-size: var(--text-6xl);
  }

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

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

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

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

/* Large Desktop (1280px and up) */
@media (min-width: 1280px) {
  .container {
    padding: 0 var(--space-10);
  }
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--navy);
  color: var(--white);
  padding: var(--space-2) var(--space-4);
  z-index: 10000;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}
