/* ==========================================================================
   Design System: Editorial Serif
   Typography: Playfair Display / Source Sans 3 / IBM Plex Mono
   Palette: Ivory, Rich Black, Burnished Gold
   ========================================================================== */

:root {
  /* Color Tokens */
  --background: #FAFAF8;
  --foreground: #1A1A1A;
  --muted: #F5F3F0;
  --muted-foreground: #6B6B6B;
  --accent: #B8860B;
  --accent-secondary: #D4A84B;
  --accent-foreground: #FFFFFF;
  --border: #D4A84B;
  --border-hover: #B8860B;
  --card: #FFFFFF;
  --ring: #B8860B;
  --error-red: #dc3545;
  --success-green: #28a745;

  /* Typography */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(26, 26, 26, 0.04);
  --shadow-md: 0 4px 12px rgba(26, 26, 26, 0.06);
  --shadow-lg: 0 8px 24px rgba(26, 26, 26, 0.08);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--foreground);
  background-color: var(--background);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Paper texture overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* Ambient glow */
body::after {
  content: "";
  position: fixed;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 134, 11, 0.02) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  flex: 1;
}

section {
  padding: 5rem 0;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

header {
  background-color: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  padding: 1.25rem 0;
}

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

.logo {
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: -0.01em;
}

.nav-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--foreground);
  margin: 5px 0;
  transition: all 0.2s ease-out;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.nav-menu {
  display: none;
  list-style: none;
  width: 100%;
  text-align: center;
  padding-top: 1rem;
}

.nav-menu.active {
  display: flex;
  flex-direction: column;
}

.nav-link {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--muted-foreground);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  position: relative;
  transition: color 0.2s ease-out;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transform: translateX(-50%);
  transition: width 0.2s ease-out;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--foreground);
  outline: none;
}

.nav-link:hover::after,
.nav-link:focus::after {
  width: 60%;
}

.nav-link.active {
  color: var(--foreground);
  font-weight: 600;
}

.nav-link.active::after {
  width: 60%;
  background-color: var(--accent);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero,
.page-hero {
  background-color: var(--foreground);
  color: var(--accent-foreground);
  padding: 6rem 0 7rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(26, 26, 26, 0.88), rgba(26, 26, 26, 0.88)),
    url('../images/optimized/jpg/hero-bg-sm.jpg');
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
}

/* Responsive hero background: medium screens */
@media (min-width: 641px) {
  .hero,
  .page-hero {
    background-image:
      linear-gradient(rgba(26, 26, 26, 0.88), rgba(26, 26, 26, 0.88)),
      url('../images/optimized/jpg/hero-bg-md.jpg');
  }
}

/* Responsive hero background: large screens */
@media (min-width: 1025px) {
  .hero,
  .page-hero {
    background-image:
      linear-gradient(rgba(26, 26, 26, 0.88), rgba(26, 26, 26, 0.88)),
      url('../images/optimized/jpg/hero-bg-lg.jpg');
  }
}

/* Subtle gold vignette overlay */
.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      ellipse at 30% 50%,
      rgba(184, 134, 11, 0.04) 0%,
      transparent 60%
    );
  pointer-events: none;
  z-index: 1;
}

.hero > *,
.page-hero > * {
  position: relative;
  z-index: 2;
}

/* Bottom gold rule */
.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  z-index: 3;
}

.hero h1,
.page-hero h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--accent-foreground);
}

.hero p,
.page-hero p {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

.hero p {
  margin-bottom: 2.5rem;
}

/* ==========================================================================
   Section Labels (Rule-flanked small caps)
   ========================================================================== */

.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-label::before,
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--border);
}

.section-label span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.cta-button,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent);
  color: var(--accent-foreground);
  padding: 0 2rem;
  text-decoration: none;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-out;
  height: 50px;
  min-height: 44px;
  box-shadow: 0 1px 3px rgba(184, 134, 11, 0.15);
  touch-action: manipulation;
}

.cta-button:hover,
.cta-button:focus,
.submit-button:hover,
.submit-button:focus {
  background-color: var(--accent-secondary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184, 134, 11, 0.2);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.cta-button:active,
.submit-button:active {
  transform: translateY(0);
}

.link-button {
  display: inline-block;
  color: var(--muted-foreground);
  text-decoration: none;
  margin-top: 1rem;
  transition: color 0.2s ease-out;
  position: relative;
}

.link-button::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transition: width 0.2s ease-out;
}

.link-button:hover,
.link-button:focus {
  color: var(--foreground);
  outline: none;
}

.link-button:hover::after,
.link-button:focus::after {
  width: 100%;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--foreground);
  padding: 0 2rem;
  text-decoration: none;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--foreground);
  cursor: pointer;
  transition: all 0.2s ease-out;
  height: 50px;
  min-height: 44px;
  margin-top: 2.5rem;
  touch-action: manipulation;
}

.secondary-button:hover,
.secondary-button:focus {
  background-color: var(--muted);
  border-color: var(--accent);
  color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ==========================================================================
   Typography (Headings)
   ========================================================================== */

h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--foreground);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--foreground);
  font-weight: 600;
  line-height: 1.3;
}

/* ==========================================================================
   Grids
   ========================================================================== */

.features-grid,
.services-grid,
.values-grid,
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

/* ==========================================================================
   Feature Cards
   ========================================================================== */

.feature-card,
.service-item,
.value-card,
.team-member {
  padding: 2rem;
  text-align: center;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease-out;
}

.feature-card h3,
.service-item h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--foreground);
}

.feature-card p,
.service-item p {
  color: var(--muted-foreground);
  font-size: 0.95rem;
  line-height: 1.7;
}

a.service-item {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Accent top border on service items */
.service-item {
  border-top: 2px solid var(--accent);
}

.service-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
  border-top-color: var(--accent);
  background-color: rgba(245, 243, 240, 0.3);
}

.service-item:hover h3,
.service-item:hover p {
  color: var(--foreground);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

/* ==========================================================================
   Team
   ========================================================================== */

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 2px solid var(--border);
  transition: all 0.2s ease-out;
}

.team-photo:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 15px rgba(184, 134, 11, 0.15);
}

.team-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.team-member p:not(.team-role) {
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

/* ==========================================================================
   Value Items (Mission & Values)
   ========================================================================== */

.value-card:hover {
  box-shadow: var(--shadow-md);
}

.values-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

.values-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.value-item {
  padding: 1.5rem;
  padding-left: 2rem;
  border-left: 3px solid var(--accent);
  transition: all 0.2s ease-out;
}

.value-item:hover {
  transform: translateX(6px);
  border-left-color: var(--foreground);
}

.value-item h3 {
  color: var(--foreground);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.value-item p {
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* ==========================================================================
   Service Icons
   ========================================================================== */

.service-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--accent);
  transition: color 0.2s ease-out;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-item:hover .service-icon {
  color: var(--accent-secondary);
}

/* ==========================================================================
   Services Preview & CTA
   ========================================================================== */

.services-preview {
  text-align: center;
  background-color: var(--muted);
}

.cta-section {
  background-color: var(--muted);
  text-align: center;
}

.cta-section h2,
.cta-section p {
  color: var(--foreground);
}

.cta-section p {
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
  color: var(--muted-foreground);
}

/* ==========================================================================
   Service Detail (Services Page)
   ========================================================================== */

.service-category {
  margin-bottom: 4rem;
}

.service-category h2 {
  text-align: left;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.service-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.service-detail {
  background-color: var(--card);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.2s ease-out;
}

.service-detail:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.service-detail h3 {
  font-size: 1.1rem;
}

.service-detail p {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ==========================================================================
   Insurance Section
   ========================================================================== */

.insurance-section {
  background-color: var(--foreground);
  text-align: center;
  color: var(--accent-foreground);
}

.insurance-section p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   Certifications
   ========================================================================== */

.cert-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.cert-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background-color: var(--card);
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease-out;
}

.cert-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.cert-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 1rem;
}

.cert-item span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--foreground);
  line-height: 1.4;
}

/* ==========================================================================
   Testimonial Carousel
   ========================================================================== */

.testimonial-carousel {
  margin-top: 4rem;
  width: 100%;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background-color: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.testimonial-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
  will-change: transform;
}

.testimonial-card {
  min-width: 100%;
  padding: 3rem 2.5rem;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.testimonial-card.active {
  opacity: 1;
}

.testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.testimonial-avatar {
  width: 72px;
  height: 72px;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.testimonial-avatar svg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.testimonial-info h4 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.testimonial-info p {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.testimonial-rating {
  color: var(--accent);
  font-size: 0.9rem;
}

.testimonial-card blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--foreground);
  font-style: italic;
  position: relative;
  padding-left: 1.5rem;
}

.testimonial-card blockquote::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--accent);
  position: absolute;
  left: -0.25rem;
  top: -1.25rem;
  line-height: 1;
  opacity: 0.6;
}

/* Carousel Navigation */
.carousel-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background-color: transparent;
  border-radius: 50%;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.2s ease-out;
}

.carousel-btn:hover,
.carousel-btn:focus {
  border-color: var(--accent);
  color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.carousel-btn svg {
  width: 18px;
  height: 18px;
}

.carousel-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background-color: var(--border);
  cursor: pointer;
  transition: all 0.2s ease-out;
}

.carousel-dot:hover,
.carousel-dot:focus {
  background-color: var(--accent-secondary);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.carousel-dot.active {
  background-color: var(--accent);
  transform: scale(1.3);
}

/* ==========================================================================
   About Page
   ========================================================================== */

.about-intro {
  background-color: var(--muted);
}

.about-intro p {
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto 1rem;
  text-align: center;
}

.facility-section {
  background-image:
    linear-gradient(rgba(26, 26, 26, 0.88), rgba(26, 26, 26, 0.88)),
    url('../images/optimized/jpg/about-1-lg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  color: var(--accent-foreground);
  position: relative;
}

.facility-section h2 {
  color: var(--accent-foreground);
}

.facility-section p {
  color: rgba(255, 255, 255, 0.8);
}

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

.facility-features li {
  padding: 0.6rem 0;
  padding-left: 2rem;
  position: relative;
  color: rgba(255, 255, 255, 0.85);
}

.facility-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.facility-section .facility-features {
  color: var(--accent-foreground);
}

.facility-section .facility-features li::before {
  color: var(--accent);
}

/* ==========================================================================
   Contact Page
   ========================================================================== */

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

.contact-form {
  background-color: var(--card);
  padding: 2.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--foreground);
  font-size: 0.9rem;
}

.required {
  color: var(--error-red);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--foreground);
  background: transparent;
  transition: all 0.15s ease-out;
  min-height: 44px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(107, 107, 107, 0.6);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: var(--border-hover);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(184, 134, 11, 0.15);
}

.form-group select {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236B6B6B' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.25rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.form-group select option {
  padding: 0.75rem;
  min-height: 44px;
  line-height: 1.5;
}

.form-group input.error,
.form-group textarea.error {
  border-color: var(--error-red);
}

.error-message {
  display: block;
  color: var(--error-red);
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.form-status {
  padding: 1rem;
  border-radius: 6px;
  margin-top: 1rem;
  text-align: center;
  display: none;
}

.form-status.success {
  background-color: var(--success-green);
  color: var(--accent-foreground);
  display: block;
}

.form-status.error {
  background-color: var(--error-red);
  color: var(--accent-foreground);
  display: block;
}

/* Contact Info */
.info-block {
  margin-bottom: 2.5rem;
}

.info-block h3 {
  font-size: 1.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.hours-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.hours-list dt {
  font-weight: 600;
  color: var(--foreground);
}

.hours-list dd {
  color: var(--muted-foreground);
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-item a {
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.2s ease-out;
}

.contact-item a:hover {
  color: var(--accent);
}

/* ==========================================================================
   Language Switcher
   ========================================================================== */

.language-switcher {
  position: relative;
  top: 6px;
}

.language-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.2s ease-out;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.language-toggle:hover {
  background-color: var(--muted);
  color: var(--foreground);
}

.language-toggle:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.flag-icon {
  width: 1.25rem;
  height: 1rem;
  border-radius: 2px;
  flex-shrink: 0;
}

.language-text {
  font-weight: 600;
  font-size: 0.8rem;
}

.dropdown-arrow {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease-out;
}

.language-toggle[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease-out;
  z-index: 1000;
  min-width: 140px;
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  margin-top: 0.5rem;
}

.language-switcher:hover .language-dropdown,
.language-toggle[aria-expanded="true"] + .language-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: all 0.2s ease-out;
  font-size: 0.9rem;
}

.language-option:hover {
  background-color: rgba(184, 134, 11, 0.06);
  color: var(--foreground);
}

.language-option:focus {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  background-color: rgba(184, 134, 11, 0.06);
}

.language-option.active {
  background-color: var(--muted);
  color: var(--foreground);
  font-weight: 600;
}

/* Mobile Language Switcher */
@media (max-width: 767px) {
  .contact-form {
    padding: 1rem;
  }

  .language-switcher {
    width: 100%;
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: 1rem;
  }

  .language-toggle {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
  }

  .language-dropdown {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    border-radius: 0;
    margin-top: 0.5rem;
    background: var(--muted);
  }

  .language-option {
    justify-content: center;
    padding: 0.75rem 1rem;
  }
}

/* ==========================================================================
   Google Maps
   ========================================================================== */

.map-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 50%;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background-color: var(--muted);
}

.map-embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

.map-fallback {
  background-color: var(--muted);
  padding: 2rem;
  text-align: center;
  border-radius: 8px;
  color: var(--foreground);
}

.map-fallback p {
  margin-bottom: 1rem;
}

.map-fallback a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.map-fallback a:hover {
  text-decoration: underline;
}

@media (max-width: 567px) {
  .map-container {
    padding-bottom: 60%;
    border-radius: 6px;
  }

  .map-embed {
    border-radius: 6px;
  }
}

@media (min-width: 768px) {
  .map-container {
    padding-bottom: 45%;
    max-height: 400px;
  }
}

@media (min-width: 1024px) {
  .map-container {
    padding-bottom: 40%;
    max-height: 450px;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  background-color: var(--foreground);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  font-family: var(--font-display);
  color: var(--accent-foreground);
  margin-bottom: 1rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s ease-out;
  position: relative;
  display: inline-block;
  font-size: 0.9rem;
}

.footer-section a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.2s ease-out;
}

.footer-section a:hover,
.footer-section a:focus {
  color: var(--accent-foreground);
  outline: none;
}

.footer-section a:hover::after,
.footer-section a:focus::after {
  width: 100%;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   Responsive: Tablet (768px+)
   ========================================================================== */

@media (min-width: 768px) {
  section {
    padding: 6rem 0;
  }

  .nav-toggle {
    display: none;
  }

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

  .nav-menu {
    display: flex;
    flex-direction: row;
    width: auto;
    padding-top: 0;
  }

  .nav-link {
    padding: 0.5rem 1rem;
    margin: 0 0.15rem;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 3rem;
  }

  .hero,
  .page-hero {
    padding: 8rem 0 9rem;
  }

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

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

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

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

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

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

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

  .testimonial-carousel {
    width: 85%;
  }
}

/* ==========================================================================
   Responsive: Desktop (1024px+)
   ========================================================================== */

@media (min-width: 1024px) {
  section {
    padding: 5rem 0;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.25rem;
  }

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

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

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

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

  .testimonial-carousel {
    width: 70%;
  }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Focus visible for keyboard users */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */

.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--card);
  color: var(--foreground);
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(26, 26, 26, 0.08);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s ease-in-out;
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

.cookie-message {
  flex: 1;
}

.cookie-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.cookie-message p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.cookie-button {
  background-color: var(--accent);
  color: var(--accent-foreground);
  border: none;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease-out;
  text-align: center;
  min-width: 140px;
  min-height: 44px;
  touch-action: manipulation;
}

.cookie-button:hover {
  background-color: var(--accent-secondary);
  box-shadow: 0 4px 12px rgba(184, 134, 11, 0.2);
}

.cookie-button:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.cookie-button:active {
  transform: translateY(0);
}

.cookie-link {
  color: var(--muted-foreground);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.85rem;
  transition: color 0.2s ease-out;
  text-align: center;
}

.cookie-link:hover {
  color: var(--foreground);
}

.cookie-link:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Cookie consent tablet+ */
@media (min-width: 768px) {
  .cookie-content {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }

  .cookie-message {
    flex: 1;
  }

  .cookie-actions {
    flex-direction: row;
    width: auto;
    align-items: center;
    gap: 1rem;
  }

  .cookie-button {
    white-space: nowrap;
  }
}

/* ==========================================================================
   Privacy Policy
   ========================================================================== */

.page-header {
  background-color: var(--muted);
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--foreground);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.breadcrumb {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
}

.breadcrumb li {
  color: var(--muted-foreground);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin: 0 0.5rem;
  color: var(--border-hover);
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease-out;
}

.breadcrumb a:hover {
  color: var(--foreground);
}

.privacy-content {
  padding: 4rem 0;
  background-color: var(--background);
}

.privacy-wrapper {
  max-width: 42rem;
  margin: 0 auto;
}

.privacy-wrapper h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--foreground);
  margin: 2.5rem 0 1rem;
  padding-top: 1.5rem;
  text-align: left;
  border-top: 1px solid var(--border);
}

.privacy-wrapper h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.privacy-wrapper h3 {
  font-size: 1.2rem;
  color: var(--foreground);
  margin: 1.5rem 0 0.75rem;
}

.privacy-wrapper p {
  color: var(--muted-foreground);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.privacy-wrapper ul {
  color: var(--muted-foreground);
  line-height: 1.8;
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.privacy-wrapper ul li {
  margin-bottom: 0.5rem;
}

.privacy-wrapper address {
  font-style: normal;
  color: var(--muted-foreground);
  line-height: 1.8;
  margin-top: 1rem;
}

.privacy-wrapper a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease-out;
}

.privacy-wrapper a:hover {
  color: var(--foreground);
  text-decoration: underline;
}

.effective-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) {
  .page-header {
    padding: 2rem 0 1.5rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .privacy-wrapper {
    padding: 0 1rem;
  }

  .privacy-wrapper h2 {
    font-size: 1.5rem;
  }

  .privacy-wrapper h3 {
    font-size: 1.1rem;
  }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  header,
  footer,
  .nav-toggle,
  .cta-button,
  .submit-button,
  .cookie-consent {
    display: none;
  }

  body {
    color: black;
    background: white;
  }

  body::before,
  body::after {
    display: none;
  }

  a {
    color: black;
    text-decoration: underline;
  }
}
