/* ===== VARIABLES ===== */
:root {
  --bg: #FAF8F5;
  --bg-alt: #F0EBE3;
  --text: #3D3A36;
  --text-light: #6B6560;
  --accent: #B8926A;
  --accent-hover: #A67C5B;
  --accent2: #8B7D6B;
  --white: #FFFFFF;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --max-width: 1200px;
  --section-padding: 100px 0;
  --transition: 0.3s ease;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }

.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 20px auto 0;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background var(--transition), padding var(--transition);
}

.header.scrolled {
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-links a {
  color: var(--text);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 10% center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(250, 248, 245, 0.45) 0%,
    rgba(250, 248, 245, 0.2) 35%,
    transparent 50%
  );
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  padding-left: 60px;
}

.hero-text {
  max-width: 600px;
  padding: 0 0 30vh;
  text-align: left;
}

.hero-text h1 {
  margin-bottom: 20px;
  color: var(--text);
  font-size: clamp(3rem, 6vw, 4.5rem);
}

.hero-text .subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  letter-spacing: 0.03em;
  line-height: 2;
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: float 2s ease-in-out infinite;
}

.scroll-hint svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== ABOUT ===== */
.about {
  padding: var(--section-padding);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content p {
  margin-bottom: 24px;
  font-size: 1.05rem;
  color: var(--text-light);
}

.about-content p:first-of-type {
  font-size: 1.15rem;
  color: var(--text);
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--bg-alt);
}

.highlight {
  text-align: center;
}

.highlight h3 {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 1.1rem;
}

.highlight p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ===== SERVICES ===== */
.services {
  padding: var(--section-padding);
  background: var(--bg-alt);
}

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

.service-card {
  background: var(--white);
  padding: 48px 36px;
  border-radius: 4px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  color: var(--accent);
}

.service-card h3 {
  margin-bottom: 16px;
  color: var(--text);
}

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

/* ===== GALLERY ===== */
.gallery {
  padding: var(--section-padding);
}

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

.gallery-item {
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 36px;
  cursor: pointer;
  padding: 20px;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.lightbox-nav:hover {
  opacity: 1;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ===== CONTACT ===== */
.contact {
  padding: var(--section-padding);
  background: var(--bg-alt);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text);
  transition: color var(--transition), transform var(--transition);
}

.contact-link:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.contact-link svg {
  width: 32px;
  height: 32px;
}

.contact-link span {
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

/* ===== FOOTER ===== */
.footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--bg-alt);
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.footer-socials a {
  color: var(--text-light);
  transition: color var(--transition);
}

.footer-socials a:hover {
  color: var(--accent);
}

.footer-socials svg {
  width: 20px;
  height: 20px;
}

.footer p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  :root {
    --section-padding: 72px 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transition: right var(--transition);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .burger {
    display: flex;
    z-index: 101;
  }

  .hero {
    min-height: 70vh;
  }

  .hero-bg {
    object-position: 60% center;
  }

  .hero-overlay {
    background: linear-gradient(
      to right,
      rgba(250, 248, 245, 0.9) 0%,
      rgba(250, 248, 245, 0.6) 50%,
      rgba(250, 248, 245, 0.2) 100%
    );
  }

  .hero-text {
    padding: 0;
  }

  .scroll-hint {
    display: none;
  }

  .about-highlights {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

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

  .contact-links {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .lightbox-nav {
    font-size: 24px;
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 60vh;
  }
}
