/* ==========================================
   Typography & Font Imports
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Colors */
  --dark:           #151311; /* Dark-bronze for dark elements */
  --light:          #FAF8F3; /* Warm ivory/alabaster */
  --accent:         #9C5239; /* Rosewood terracotta accent */
  --accent-hover:   #82412b;
  --text-dark:      #1C1916; /* Warm dark charcoal */
  --text-mid:       #6E6A64; /* Grey-charcoal */
  --text-light:     #FAF8F3;
  --text-light-mid: rgba(250, 248, 243, 0.7);
  --gold:           #C49A6C; /* Warm gold — used in stats, success states */
  --card:           #FDFCF9; /* Very slightly off-white for cards on ivory bg */
  
  /* Shadows - Muted and soft */
  --shadow-sm:  0 2px 12px rgba(28, 25, 22, 0.04);
  --shadow-md:  0 12px 36px rgba(28, 25, 22, 0.06);
  --shadow-lg:  0 24px 64px rgba(28, 25, 22, 0.08);
  
  /* Border Radius */
  --radius:     12px; /* Apple-style clean slightly tighter radius */
  --radius-sm:  6px;

  /* Typography Families */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  
  /* System transitions */
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================
   Reset & Core Styles
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Accessibility Focus States */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ==========================================
   Header & Navigation
   ========================================== */
.main-header {
  position: absolute;
  top: 38px; /* Flows below the top announcement bar */
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 24px 0;
  background: transparent;
  transition: background-color 0.4s ease, border-color 0.4s ease, padding 0.4s ease, top 0.4s ease;
}

body.demo-bar-hidden .main-header {
  top: 0;
}

/* Scrolled Header Style */
.main-header.scrolled {
  position: fixed;
  top: 0;
  padding: 16px 0;
  background-color: var(--light);
  border-bottom: 1px solid rgba(28, 25, 22, 0.08);
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  font-style: italic;
  color: var(--text-light); /* Light text over dark hero */
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: var(--transition);
  padding: 4px 0; /* tap area */
}

.main-header.scrolled .logo {
  color: var(--text-dark) !important;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Header Buttons */
.btn-nav {
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-sm);
  background-color: var(--accent);
  color: #fff !important;
  text-decoration: none;
  border: 1px solid transparent;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px; /* Tap target */
}

.btn-nav:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-nav.active {
  background-color: var(--accent-hover);
}

/* Mobile Hamburger Menu */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
  width: 44px; /* Tap target size */
  height: 44px;
  position: relative;
  align-items: center;
  justify-content: center;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-light);
  border-radius: 2px;
  transition: var(--transition);
  position: absolute;
}

.hamburger span:nth-child(1) { transform: translateY(-8px); }
.hamburger span:nth-child(2) { width: 18px; transform: translateX(3px); }
.hamburger span:nth-child(3) { transform: translateY(8px); }

.main-header.scrolled .hamburger span {
  background-color: var(--text-dark) !important;
}

/* Hamburger open animation */
body.menu-open .hamburger span:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}

body.menu-open .hamburger span:nth-child(2) {
  opacity: 0;
}

body.menu-open .hamburger span:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--dark);
  z-index: 105;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  visibility: hidden;
}

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

.drawer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  width: 100%;
  padding: 0 40px;
}

.btn-drawer {
  font-family: var(--font-body);
  font-size: 1rem !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  background-color: var(--accent);
  color: #fff !important;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 280px;
}

/* ==========================================
   Hero Section — Full-bleed Cinematic Split
   ========================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 45fr 55fr; /* Photo slightly dominates */
  overflow: hidden;
  background-color: var(--dark);
}

/* Entry animations for hero text */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow,
.hero-title,
.hero-subtitle,
.hero-actions {
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-eyebrow   { animation-delay: 0.15s; }
.hero-title     { animation-delay: 0.30s; }
.hero-subtitle  { animation-delay: 0.50s; }
.hero-actions   { animation-delay: 0.68s; }

/* Left text column */
.hero-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Vertically centered — not pinned to bottom */
  padding: 0 72px 0 72px;
  /* Account for demo bar + header height */
  padding-top: calc(38px + 90px);
  padding-bottom: 80px;
  position: relative;
  z-index: 2;
  background-color: var(--dark);
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 32px;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-family: var(--font-body);
  font-size: clamp(3.4rem, 6vw, 5.8rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-light);
  margin-bottom: 32px;
  text-wrap: balance;
}

.hero-title-line {
  display: block;
}

.hero-serif {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: rgba(250, 248, 243, 0.75); /* Slightly muted — editorial contrast */
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 400;
  line-height: 1.65;
  color: rgba(250, 248, 243, 0.55);
  max-width: 380px;
  margin-bottom: 48px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-scroll-link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(250, 248, 243, 0.45);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.hero-scroll-link:hover {
  color: var(--text-light);
}

/* Right image column — full-bleed, edge-to-edge */
.hero-image-col {
  position: relative;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 8s ease;
}

/* Subtle parallax Ken Burns on load */
.hero:hover .hero-img {
  transform: scale(1.04);
}

/* Subtle gradient vignette where photo meets text */
.hero-image-col::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 100%;
  background: linear-gradient(to right, var(--dark), transparent);
  z-index: 1;
  pointer-events: none;
}

/* Small editorial caption pinned bottom-left of image */
.hero-img-caption {
  position: absolute;
  bottom: 36px;
  left: 48px;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(250, 248, 243, 0.5);
  z-index: 2;
  writing-mode: horizontal-tb;
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  min-height: 44px;
}

.btn-primary {
  background-color: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(156, 82, 57, 0.35);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid rgba(240, 235, 227, 0.3);
  color: var(--text-light);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--text-light);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.8rem;
}

/* Ripple effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ==========================================
   Hero Mobile Layout
   ========================================== */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    display: flex;
    flex-direction: column;
  }

  .hero-text-col {
    order: 2;
    padding: 40px 24px 56px 24px;
    padding-top: 40px;
    justify-content: flex-start;
    background-color: var(--dark);
  }

  .hero-title {
    font-size: clamp(2.6rem, 10vw, 3.8rem);
  }

  .hero-image-col {
    order: 1;
    height: 65vw;
    min-height: 260px;
    max-height: 420px;
    flex-shrink: 0;
  }

  .hero-img {
    object-position: center 30%;
  }

  .hero-image-col::before {
    width: 100%;
    height: 80px;
    top: auto;
    bottom: 0;
    left: 0;
    background: linear-gradient(to top, var(--dark), transparent);
  }

  .hero-img-caption {
    display: none;
  }

  .hero-eyebrow {
    margin-bottom: 20px;
  }

  .hero-subtitle {
    margin-bottom: 36px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(2.4rem, 11vw, 3.2rem);
  }
}


/* ==========================================
   Stats Section
   ========================================== */
.stats {
  background-color: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 40px 0;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  text-align: center;
}

.stat-item {
  padding: 16px 40px;
  position: relative;
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255,255,255,0.08);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 500;
  color: var(--gold);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(250, 248, 243, 0.45);
  margin-top: 6px;
  letter-spacing: 0.03em;
}


/* ==========================================
   Services Section
   ========================================== */
.services {
  background-color: var(--light);
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  color: var(--text-dark);
}

.section-desc {
  font-size: 1rem;
  color: var(--text-light-mid);
  max-width: 480px;
  margin: 12px auto 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background-color: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden; /* clip image corner rounding */
  padding: 0;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(196, 139, 106, 0.2);
}

.service-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.service-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 2;
}

/* Position icon as a badge on the image bottom-left */
.service-image-wrapper .service-icon {
  position: absolute;
  bottom: -16px;
  left: 20px;
  margin-bottom: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 3px solid var(--card);
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-card-content {
  padding: 28px 24px 32px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-name {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-mid);
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
}

.service-price {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--accent);
}

/* Featured / Popular Service Card */
.service-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.service-card.featured:hover {
  box-shadow: var(--shadow-lg);
}

.service-card.featured .service-icon {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
}

.service-tag {
  position: absolute;
  top: 24px;
  right: 24px;
  background-color: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================
   How It Works Section
   ========================================== */
.how-it-works {
  background-color: var(--dark);
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.how-it-works .section-title {
  color: var(--text-light) !important;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
  margin-top: 60px;
}

/* Dotted Line between steps on desktop */
.steps-container::after {
  content: '';
  position: absolute;
  top: 96px;
  left: 10%;
  width: 80%;
  height: 2px;
  border-top: 2px dotted rgba(240, 235, 227, 0.15);
  z-index: -1;
}

.step-card {
  position: relative;
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-number {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.15;
  line-height: 1;
  z-index: -1;
}

.step-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background-color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
  z-index: 2;
}

.step-icon svg {
  width: 24px;
  height: 24px;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-light-mid);
  max-width: 280px;
}

/* ==========================================
   Testimonials Section — Editorial, no cards
   ========================================== */
.testimonials {
  background-color: var(--light);
  padding: 120px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 8px;
}

.testimonial-card {
  padding: 48px 40px;
  border-right: 1px solid rgba(28,25,22,0.07);
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: background 0.3s ease;
}

.testimonial-card:last-child {
  border-right: none;
}

.testimonial-card:hover {
  background: rgba(28,25,22,0.02);
}

/* Large decorative quote mark */
.testimonial-card::before {
  content: '“';
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.4;
  display: block;
  margin-bottom: -16px;
}

.testimonial-stars {
  display: none; /* Removed — editorial style */
}

.testimonial-text {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  font-style: italic;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.55;
  flex-grow: 1;
}

.testimonial-author {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-mid);
}


/* ==========================================
   Booking / Form Section
   ========================================== */
.booking-section {
  background-color: var(--dark);
  padding: 100px 0;
}

.booking-container {
  max-width: 560px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 50px 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.booking-container .section-header {
  margin-bottom: 40px;
}

.booking-container .section-title {
  color: var(--text-light);
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-light);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0ebe3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m6 9 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
  padding-right: 48px;
  cursor: pointer;
}

.form-group select option {
  background-color: var(--dark);
  color: var(--text-light);
}

.form-group select:invalid,
.form-group select option[value=""] {
  color: rgba(240, 235, 227, 0.4);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(240, 235, 227, 0.4);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(196, 139, 106, 0.2);
}

/* Spinner Icon */
#submitBtn .btn-spinner {
  display: none;
}

#submitBtn.loading .btn-text {
  display: none;
}

#submitBtn.loading .btn-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.spinner-icon {
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Status Panels (Hidden by default) */
.status-message {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 0;
  animation: panelFadeIn 0.5s ease forwards;
}

.status-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.status-icon-wrapper svg {
  width: 32px;
  height: 32px;
}

.success-message {
  color: var(--gold);
}

.success-message .status-icon-wrapper {
  background-color: rgba(212, 175, 112, 0.1);
  border: 2px solid var(--gold);
}

.success-message h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.success-message p {
  color: var(--text-light-mid);
  font-size: 1rem;
  margin-bottom: 32px;
  max-width: 380px;
}

.error-message {
  color: #ea5a5a;
}

.error-message .status-icon-wrapper {
  background-color: rgba(234, 90, 90, 0.1);
  border: 2px solid #ea5a5a;
}

.error-message h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.error-message p {
  color: var(--text-light-mid);
  font-size: 1rem;
  margin-bottom: 32px;
}

@keyframes panelFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==========================================
   Footer
   ========================================== */
.main-footer {
  background-color: #060610;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 0;
  color: var(--text-light-mid);
  font-size: 0.9rem;
}

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

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  font-style: italic;
  color: var(--accent);
}

.footer-contact a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.footer-contact a:hover {
  text-decoration: underline;
}

/* ==========================================
   Scroll Animations classes
   ========================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Child Delays */
.services-grid .animate-on-scroll:nth-child(2),
.testimonials-grid .animate-on-scroll:nth-child(2),
.steps-container .animate-on-scroll:nth-child(2) {
  transition-delay: 0.1s;
}

.services-grid .animate-on-scroll:nth-child(3),
.testimonials-grid .animate-on-scroll:nth-child(3),
.steps-container .animate-on-scroll:nth-child(3) {
  transition-delay: 0.2s;
}

.services-grid .animate-on-scroll:nth-child(4) {
  transition-delay: 0.3s;
}

/* ==========================================
   Responsive Adaptability (Breakpoints)
   ========================================== */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    border-right: none;
    border-bottom: 1px solid rgba(28,25,22,0.07);
    padding: 40px 24px;
  }

  .testimonial-card:last-child {
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  /* Header Mobile */
  .nav-links {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  /* Stats Mobile */
  .stats-container {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .stat-item {
    padding: 12px 16px;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
  
  .stat-label {
    font-size: 0.72rem;
  }
  
  /* Steps Mobile */
  .steps-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .steps-container::after {
    display: none; /* Hide connector dotted line */
  }
  
  .step-card {
    padding-top: 20px;
  }
  
  /* Footer Mobile */
  .footer-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  /* Services Grid Tablet */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .booking-container {
    padding: 40px 24px;
  }
}


/* ==========================================
   Portfolio Page Styles
   ========================================== */
.portfolio-hero {
  position: relative;
  min-height: 80dvh;
  padding: 180px 0 100px 0;
  background-color: var(--dark);
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 1;
}

.portfolio-hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.features {
  background-color: var(--light);
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.feature-card {
  background-color: var(--card);
  padding: 40px 30px;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(196, 139, 106, 0.2);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: rgba(196, 139, 106, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

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

.feature-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.5;
}

.niches-section {
  background-color: #fcfbfa;
  padding: 100px 0;
}

.niches-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.niche-card {
  background-color: var(--card);
  padding: 30px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
  text-align: center;
  transition: var(--transition);
}

.niche-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--accent);
}

.niche-emoji {
  font-size: 2.2rem;
  margin-bottom: 16px;
  display: block;
}

.niche-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
}

.checklist-section {
  background-color: var(--dark);
  color: var(--text-light);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.checklist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 50px;
}

.checklist-left h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 20px;
}

.checklist-left p {
  color: var(--text-light-mid);
  font-size: 1.05rem;
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.checklist-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.checklist-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(196, 139, 106, 0.2);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.checklist-check svg {
  width: 14px;
  height: 14px;
}

.checklist-text h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 4px;
}

.checklist-text p {
  font-size: 0.95rem;
  color: var(--text-light-mid);
}

.pricing {
  background-color: var(--light);
  padding: 100px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 50px auto 0 auto;
}

.pricing-card {
  background-color: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 50px 40px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.pricing-card.premium {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.pricing-card.premium::after {
  content: 'Популярно';
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
}

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

.pricing-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.pricing-desc {
  font-size: 0.95rem;
  color: var(--text-mid);
  margin-bottom: 24px;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-mid);
}

.pricing-terms {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}

.pricing-features li {
  font-size: 0.95rem;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 12px;
}

.pricing-features li svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.portfolio-cta {
  background-color: var(--dark);
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.cta-box {
  background: linear-gradient(135deg, rgba(196, 139, 106, 0.1), rgba(212, 175, 112, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-box h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 16px;
}

.cta-box p {
  color: var(--text-light-mid);
  max-width: 500px;
  margin: 0 auto 30px auto;
  font-size: 1.05rem;
}

/* Responsive Overrides for Portfolio elements */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .niches-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .checklist-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .portfolio-hero {
    min-height: auto;
    padding: 140px 0 80px 0;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .niches-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-box {
    padding: 40px 24px;
  }
}

/* ==========================================
   Demo Mode Distinction Styles
   ========================================== */
.demo-top-bar {
  background-color: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 16px;
  position: relative;
  z-index: 101;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.02em;
  min-height: 38px;
  display: flex;
  align-items: center;
}

.demo-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.demo-bar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.demo-bar-link {
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1.5px solid #fff;
  transition: opacity 0.3s ease;
  min-height: 44px; /* Hit target */
  display: inline-flex;
  align-items: center;
}

.demo-bar-link:hover {
  opacity: 0.85;
}

.demo-bar-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 300;
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  min-height: 44px; /* Tap target */
  min-width: 44px;
}

.demo-bar-close:hover {
  opacity: 0.7;
}

/* Hide floating widget styles since we removed it */
.floating-demo-widget {
  display: none !important;
}

/* Premium pill style for Demo link in navigation header */
.nav-demo-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px; /* Ensure 44px height hit target when combined with line height */
  border-radius: 50px;
  border: 1px solid rgba(250, 248, 243, 0.15);
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--text-light) !important;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  opacity: 0.85;
  transition: var(--transition);
  min-height: 38px;
}

.nav-demo-link:hover {
  opacity: 1;
  border-color: var(--accent);
  background-color: rgba(156, 82, 57, 0.1);
  color: var(--accent) !important;
}

.nav-demo-dot {
  width: 6px;
  height: 6px;
  background-color: var(--text-light-mid);
  border-radius: 50%;
  transition: var(--transition);
  display: inline-block;
}

.nav-demo-link:hover .nav-demo-dot {
  background-color: var(--accent);
}

/* Active State for Demo Link */
.nav-demo-link.active {
  opacity: 1;
  border-color: rgba(156, 82, 57, 0.3);
  background-color: rgba(156, 82, 57, 0.08);
  color: var(--gold) !important;
}

.nav-demo-link.active .nav-demo-dot {
  background-color: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

/* Drawer navigation overrides for demo pill badge */
.drawer-nav .nav-demo-link {
  font-family: var(--font-body);
  font-size: 1.15rem;
  padding: 12px 24px;
  gap: 10px;
  min-height: 44px;
}

.drawer-nav .nav-demo-dot {
  width: 8px;
  height: 8px;
}

@media (max-width: 768px) {
  .demo-bar-container {
    justify-content: center;
    text-align: center;
  }
}
