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

:root {
  --color-bg: #FAF9F6;
  --color-bg-alt: #F3F1EC;
  --color-text: #1A1A1A;
  --color-text-body: #3D3D3D;
  --color-text-muted: #8A8A8A;
  --color-accent: #B08D57;
  --color-accent-hover: #9A7A48;
  --color-border: rgba(0, 0, 0, 0.08);
  --color-white: #FFFFFF;
  --color-dark: #141414;
  --color-dark-surface: #1E1E1E;

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

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

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);

  --max-width: 1200px;
  --transition: 180ms ease;

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

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

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

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

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.7;
  color: var(--color-text-body);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 998;
}

img,
video {
  display: block;
  max-width: 100%;
}

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

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

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

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.35;
}

h4 {
  font-size: 0.875rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

p {
  max-width: 60ch;
}

/* ============================================
   LAYOUT
   ============================================ */

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

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

.section-header {
  margin-bottom: var(--space-3xl);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  color: var(--color-text-muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  min-height: 44px;
  white-space: nowrap;
}

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

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

.btn-ghost-light {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

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

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

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

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
  padding: var(--space-md) 0;
}

.header.scrolled {
  background: var(--color-bg);
  box-shadow: 0 1px 0 var(--color-border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

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

.logo-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
}

.header.scrolled .logo-name {
  color: var(--color-text);
}

/* Mobile nav */
.nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: var(--color-bg);
  transform: translateX(100%);
  transition: transform 300ms ease;
  z-index: 999;
  padding: 96px var(--space-xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.nav.open {
  transform: translateX(0);
}

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

.nav-links a {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--color-accent);
}

.nav-cta {
  align-self: flex-start;
}

/* Hamburger */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: var(--space-sm);
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-white);
  border-radius: 1px;
  transition: transform 200ms ease, opacity 200ms ease, background 200ms ease;
}

.header.scrolled .menu-toggle span {
  background: var(--color-text);
}

.menu-toggle.active span {
  background: var(--color-text);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

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

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 20, 20, 0.35) 0%,
    rgba(20, 20, 20, 0.65) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  padding: var(--space-5xl) 0 var(--space-4xl);
}

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

.hero h1 {
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1rem, 1.8vw, 1.1875rem);
  margin: 0 auto var(--space-xl);
  max-width: 540px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  margin-bottom: var(--space-3xl);
}

.trust-indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.trust-indicators span {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.trust-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

/* Hero card (right side) */
.hero-aside {
  display: none;
  width: 100%;
}

.hero-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.hero-card h3 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.hero-card > p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.hero-card-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-card-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-white);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color var(--transition);
}

.hero-card-phone:hover {
  color: var(--color-accent);
}

.hero-card-phone svg {
  color: var(--color-accent);
}

.hero-card-hours {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.875rem;
}

.hero-card-hours svg {
  opacity: 0.6;
}

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

.carousel {
  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::-webkit-scrollbar {
  display: none;
}

.carousel > * {
  flex: 0 0 88%;
  scroll-snap-align: start;
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.carousel-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--color-border);
  padding: 0;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

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

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

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

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}

.service-card h3 {
  margin-bottom: var(--space-sm);
}

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

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

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

.about-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.about-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-media video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.about-content h2 {
  margin-bottom: var(--space-lg);
}

.about-content p {
  margin-bottom: var(--space-md);
}

.about-content p:last-of-type {
  margin-bottom: var(--space-xl);
}

.about-stats {
  display: flex;
  gap: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

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

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

.work-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.work-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.work-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

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

.work-card-body {
  padding: var(--space-lg);
}

.work-card-body h3 {
  margin-bottom: var(--space-sm);
}

.work-card-body p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

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

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

/* Info cards row */
.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  transition: box-shadow var(--transition), transform var(--transition);
}

a.contact-card {
  cursor: pointer;
}

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

.contact-card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.contact-card strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.contact-card p {
  color: var(--color-text);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
}

/* Form card */
.contact-form-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

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

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

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  min-height: 48px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.12);
}

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238A8A8A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

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

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

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.footer-logo {
  height: 40px;
  width: auto;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
}

.footer-brand p {
  font-size: 0.9375rem;
  max-width: 280px;
  margin: 0 auto;
}

.footer h4 {
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: var(--space-md);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.footer-links a {
  font-size: 0.9375rem;
  transition: color var(--transition);
}

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

.footer-contact p {
  font-size: 0.9375rem;
  margin-bottom: var(--space-sm);
}

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

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

.footer-bottom {
  padding-top: var(--space-xl);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.3);
}

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

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE — TABLET (min-width: 768px)
   ============================================ */

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-xl);
  }

  .hero-ctas {
    flex-direction: row;
    justify-content: center;
  }

  .hero-aside {
    display: block;
    max-width: 400px;
    margin: 0 auto;
  }

  .carousel > * {
    flex: 0 0 calc(50% - var(--space-sm));
  }

  .carousel-dots {
    display: none;
  }

  .about-layout {
    flex-direction: row;
    align-items: center;
    gap: var(--space-3xl);
  }

  .about-media {
    flex: 1;
    min-width: 0;
  }

  .about-content {
    flex: 1;
    min-width: 0;
  }

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

  .contact-form-card {
    padding: var(--space-2xl);
  }

  .form-row {
    flex-direction: row;
    gap: var(--space-md);
  }

  .form-row .form-group {
    flex: 1;
  }

  .footer-top {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    justify-content: space-between;
  }

  .footer-brand-header {
    justify-content: flex-start;
  }

  .footer-brand {
    flex: 0 0 280px;
  }

  .footer-brand p {
    margin: 0;
  }

  .footer-links ul {
    align-items: flex-start;
  }

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

/* ============================================
   RESPONSIVE — DESKTOP (min-width: 1024px)
   ============================================ */

@media (min-width: 1024px) {
  .section {
    padding: var(--space-5xl) 0;
  }

  /* Desktop nav */
  .nav {
    position: static;
    width: auto;
    background: none;
    transform: none;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: var(--space-2xl);
  }

  .nav-links {
    flex-direction: row;
    gap: var(--space-xl);
  }

  .nav-links a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
  }

  .header.scrolled .nav-links a {
    color: var(--color-text-body);
  }

  .nav-links a:hover {
    color: var(--color-white);
  }

  .header.scrolled .nav-links a:hover {
    color: var(--color-accent);
  }

  .nav-cta {
    align-self: center;
  }

  .menu-toggle {
    display: none;
  }

  .hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3xl);
    padding: var(--space-5xl) 0;
  }

  .hero-content {
    text-align: left;
    flex: 1;
    max-width: 600px;
  }

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

  .hero-ctas {
    justify-content: flex-start;
  }

  .trust-indicators {
    justify-content: flex-start;
  }

  .hero-aside {
    flex: 0 0 360px;
  }

  /* Services grid */
  .section-services .carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    overflow: visible;
    scroll-snap-type: none;
  }

  .section-services .carousel > * {
    flex: none;
  }

  .section-services .carousel-dots {
    display: none;
  }

  /* Works grid */
  .section-works .carousel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    overflow: visible;
    scroll-snap-type: none;
  }

  .section-works .carousel > * {
    flex: none;
  }

  .section-works .carousel-dots {
    display: none;
  }

  .about-layout {
    gap: var(--space-4xl);
  }

  .contact-form-card {
    padding: var(--space-2xl) var(--space-3xl);
  }
}
