/* ============================================
   DESIGN SYSTEM — CSS VARIABLES
   ============================================ */

:root {
  --color-bg: #FAFAF7;
  --color-bg-alt: #F2F1ED;
  --color-surface: #FFFFFF;
  --color-text: #1C1C1C;
  --color-text-muted: #71716E;
  --color-accent: #4B7A52;
  --color-accent-hover: #3D6443;
  --color-accent-light: rgba(75, 122, 82, 0.08);
  --color-border: rgba(28, 28, 28, 0.08);
  --color-star: #C4A265;
  --color-overlay: rgba(20, 20, 18, 0.55);

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);

  --max-width: 1200px;
  --transition: 180ms ease;
  --header-h: 64px;
}


/* ============================================
   RESET & BASE
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
}

input, textarea, select {
  font: inherit;
}


/* ============================================
   CONTAINER
   ============================================ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}


/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
}


/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  min-height: 48px;
  white-space: nowrap;
}

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

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

.btn--ghost-light {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn--lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.btn--full {
  width: 100%;
}


/* ============================================
   HEADER
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.header.is-scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-md);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  flex-shrink: 0;
}

.header__logo-img {
  height: 38px;
  width: auto;
}

.header__business-name {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.01em;
}

/* Mobile nav */
.header__nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.header__nav.is-open {
  max-height: 400px;
}

.header__nav-list {
  padding: var(--space-sm) 0;
}

.header__nav-link {
  display: block;
  padding: 14px var(--space-lg);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition);
  letter-spacing: 0.01em;
}

.header__nav-link:hover {
  color: var(--color-accent);
}

.header__nav-cta-wrap {
  padding: var(--space-sm) var(--space-lg) var(--space-md);
}

.header__cta {
  display: none;
}

/* Hamburger */
.header__menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  padding: 0;
  flex-shrink: 0;
}

.header__menu-icon,
.header__menu-icon::before,
.header__menu-icon::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: all 0.25s ease;
}

.header__menu-icon {
  position: relative;
}

.header__menu-icon::before,
.header__menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
}

.header__menu-icon::before {
  top: -7px;
}

.header__menu-icon::after {
  top: 7px;
}

.header__menu-btn.is-open .header__menu-icon {
  background: transparent;
}

.header__menu-btn.is-open .header__menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.header__menu-btn.is-open .header__menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}


/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: var(--space-3xl) var(--space-xl);
}

@media (min-width: 768px) {
  .hero__inner {
    padding: var(--space-3xl) var(--space-lg);
  }
}

.hero__content {
  max-width: 560px;
  color: #ffffff;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  color: #ffffff;
  margin-bottom: var(--space-lg);
}

.hero__text {
  font-size: 1.0625rem;
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: var(--space-xl);
  max-width: 480px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* Hero card — hidden on mobile */
.hero__card {
  display: none;
}

.hero__card-inner {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
}

.hero__card-rating {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.hero__stars {
  display: flex;
  gap: 2px;
}

.hero__star {
  width: 18px;
  height: 18px;
  color: var(--color-star);
}

.hero__rating-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
}

.hero__card-divider {
  height: 1px;
  background: var(--color-border);
  margin-bottom: var(--space-lg);
}

.hero__card-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.hero__card-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.hero__card-icon {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.hero__card-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.hero__card-value {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
}

.hero__card-link {
  text-decoration: none;
  transition: color var(--transition);
}

.hero__card-link:hover {
  color: var(--color-accent);
}


/* ============================================
   SECTIONS (SHARED)
   ============================================ */

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

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto var(--space-2xl);
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

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

.section-text {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}


/* ============================================
   CAROUSEL (MOBILE-FIRST)
   ============================================ */

.carousel__track {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: var(--space-xs);
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__slide {
  flex: 0 0 88%;
  scroll-snap-align: start;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  padding-top: var(--space-lg);
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--color-border);
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.carousel__dot.is-active {
  background: var(--color-accent);
  transform: scale(1.25);
}


/* ============================================
   SERVICES
   ============================================ */

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  height: 100%;
  transition: box-shadow var(--transition);
}

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

.service-card__icon {
  width: 44px;
  height: 44px;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}

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

.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.service-card__text {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}


/* ============================================
   WORKS
   ============================================ */

.works {
  background: var(--color-bg-alt);
}

.works .carousel__slide {
  min-width: 0;
}

.work-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  width: 100%;
}

.work-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.work-card:hover .work-card__img {
  transform: scale(1.04);
}

.work-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.work-card:hover .work-card__overlay {
  opacity: 1;
}

.work-card__caption {
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.02em;
}


/* ============================================
   ABOUT
   ============================================ */

.about__image-wrap {
  margin-bottom: var(--space-xl);
}

.about__image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about__content .section-label {
  display: inline-block;
}

.about__text {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: var(--space-md);
  max-width: 520px;
}

.about__stats {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.about__stat-divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
}

.about__stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.about__stat-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


/* ============================================
   CONTACT
   ============================================ */

.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.contact__card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: box-shadow var(--transition);
}

.contact__card:hover {
  box-shadow: var(--shadow-sm);
}

.contact__card-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact__card-icon {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
}

.contact__card-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.contact__card-value {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
}

a.contact__card-value:hover {
  color: var(--color-accent);
}

.contact__form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
  min-width: 0;
}

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

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
}

.form-input {
  width: 100%;
  padding: 14px var(--space-md);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.form-input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.6;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(75, 122, 82, 0.1);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371716E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

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


/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.65);
  padding: var(--space-3xl) 0 0;
}

.footer__main {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  text-align: center;
}

.footer__brand {
  max-width: 320px;
  margin: 0 auto;
}

.footer__logo-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
  margin-bottom: var(--space-md);
  justify-content: center;
}

.footer__logo {
  height: 36px;
  width: auto;
  flex-shrink: 0;
}

.footer__business-name {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
}

.footer__tagline {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
}

.footer__col {
  min-width: 0;
}

.footer__col--links .footer__list,
.footer__col--contact .footer__list {
  align-items: center;
}

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

.footer__heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: var(--space-md);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color var(--transition);
}

a.footer__link:hover {
  color: #ffffff;
}

.footer__text {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-lg) 0 var(--space-xl);
  background: rgba(0, 0, 0, 0.2);
}

.footer__bottom-inner {
  display: flex;
  justify-content: center;
}

.footer__copy {
  font-size: 0.8125rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.38);
}


/* ============================================
   REVEAL ANIMATIONS
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s ease, transform 0.55s ease;
}


/* ============================================
   TABLET — min-width: 768px
   ============================================ */

@media (min-width: 768px) {

  :root {
    --header-h: 72px;
  }

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

  .hero {
    min-height: 85vh;
  }

  /* Carousel → 2-col grid on tablet */
  .carousel__track {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow: visible;
    scroll-snap-type: none;
  }

  .carousel__slide {
    flex: none;
  }

  .carousel__dots {
    display: none;
  }

  /* About */
  .about__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
  }

  .about__image-wrap {
    margin-bottom: 0;
  }

  .about__text {
    max-width: none;
  }

  /* Contact */
  .contact__inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: var(--space-3xl);
    align-items: start;
  }

  .contact__info {
    margin-bottom: 0;
  }

  .contact__form .btn--full {
    width: auto;
  }

  /* Footer — brand | Quick Links | Contact */
  .footer__main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-xl);
    align-items: start;
    text-align: left;
  }

  .footer__brand {
    margin: 0;
    max-width: none;
    justify-self: start;
  }

  .footer__logo-link {
    justify-content: flex-start;
  }

  .footer__col--links {
    justify-self: center;
    text-align: center;
    width: 100%;
    max-width: 200px;
  }

  .footer__col--links .footer__list {
    align-items: center;
  }

  .footer__col--contact {
    justify-self: end;
    text-align: right;
    width: 100%;
    max-width: 260px;
  }

  .footer__col--contact .footer__list {
    align-items: flex-end;
  }
}


/* ============================================
   DESKTOP — min-width: 1024px
   ============================================ */

@media (min-width: 1024px) {

  .header__logo-img {
    height: 46px;
  }

  .header__business-name {
    display: none;
  }

  /* Desktop nav */
  .header__nav {
    position: static;
    background: none;
    border: none;
    max-height: none;
    overflow: visible;
  }

  .header__nav-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-xl);
    padding: 0;
  }

  .header__nav-link {
    display: inline-block;
    padding: var(--space-sm) 0;
    font-size: 0.9375rem;
    font-weight: 500;
    position: relative;
  }

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

  .header__nav-link:hover::after {
    width: 100%;
  }

  .header__nav-cta-wrap {
    display: none;
  }

  .header__cta {
    display: inline-flex;
  }

  .header__menu-btn {
    display: none;
  }

  /* Hero */
  .hero__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3xl);
  }

  .hero__card {
    display: block;
    flex-shrink: 0;
    width: 340px;
  }

  /* Carousel → 3-col grid on desktop */
  .services .carousel__track {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .footer__main {
    gap: min(5vw, var(--space-3xl));
  }
}
