/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #f8f5f2;
  --bg-alt: #ffffff;
  --accent: #c89b7b;
  --accent-dark: #a87b5a;
  --text: #2c2520;
  --text-muted: #72655b;
  --border: #e3d8cf;
  --shadow-soft: 0 18px 45px rgba(15, 10, 5, 0.12);
  --radius-lg: 18px;
  --radius-md: 12px;
  --transition-fast: 0.25s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* Loader */
#loader {
  position: fixed;
  inset: 0;
  background: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  color: #fff;
}

.loader-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  animation: spin 1s linear infinite;
  margin-bottom: 12px;
}

.loader-text {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

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

/* Layout helpers */
.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--accent-dark);
  margin-bottom: 0.75rem;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", serif;
  margin: 0 0 1rem;
  color: var(--text);
}

h1 {
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 3vw, 2.4rem);
}

/* Header / Nav */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(248, 245, 242, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(227, 216, 207, 0.8);
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.7rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #111;
  color: #f5efe7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.logo-text {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 0.2rem;
}

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

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

.nav-cta {
  border: none;
  background: #111;
  color: #f5efe7;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.18s ease;
}

.nav-cta:hover {
  background: #000;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  border: none;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: #111;
  border-radius: 4px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 5rem; /* offset for fixed header */
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1);
  transform: scale(1.05);
  transform-origin: center;
  animation: heroZoom 14s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
  color: #fdf7f1;
  padding-block: 3.5rem;
}

.hero-text h1,
.hero-text p {
  color: #fdf7f1;
}

.hero-tagline {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  opacity: 0.85;
}

.hero-subtext {
  font-size: 1rem;
  max-width: 32rem;
  margin-bottom: 1.75rem;
  color: #f1e2d4;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e9d6c4;
}

.hero-card {
  justify-self: flex-end;
}

.hero-card-inner {
  background: rgba(15, 10, 5, 0.9);
  border-radius: 26px;
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255,255,255,0.2);
  max-width: 320px;
}

.hero-card-title {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: #f1e2d4;
  margin-bottom: 0.45rem;
}

.hero-card-year {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.hero-card-note {
  font-size: 0.9rem;
  color: #d9c3af;
}

/* Buttons */
.btn {
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background 0.25s ease, color 0.25s ease, transform 0.18s ease, box-shadow 0.25s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 16px 35px rgba(200, 155, 123, 0.4);
}

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

.btn.secondary {
  background: #111;
  color: #f8f5f2;
}

.btn.secondary:hover {
  background: #000;
  transform: translateY(-2px);
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  transform: translateY(-1px);
}

.btn.small {
  padding: 0.5rem 1.1rem;
  font-size: 0.75rem;
}

/* About */
.about {
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 3rem;
  align-items: center;
}

.about-image-wrap {
  position: relative;
  max-width: 420px;
}

.about-image-border {
  position: absolute;
  inset: 1.1rem -1.1rem -1.1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.about-image {
  position: relative;
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.about-content p {
  color: var(--text-muted);
}

.about-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1.7rem;
  margin: 1.8rem 0 1.5rem;
}

.about-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.about-number {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
}

.about-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Services */
.services {
  background: var(--bg-alt);
}

.services-grid {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem;
}

.service-card {
  background: #fdfaf7;
  border-radius: var(--radius-md);
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.service-card.featured {
  background: #15100c;
  color: #f7eee7;
  transform: translateY(-4px);
}

.service-card.featured h3,
.service-card.featured p,
.service-card.featured li {
  color: #f7eee7;
}

.service-card .badge {
  position: absolute;
  top: 1rem;
  right: 1.3rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: #f7eee7;
  color: #15100c;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

.service-price {
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--accent-dark);
}

.service-card.featured .service-price {
  color: #f6dec7;
}

.service-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1.2rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.service-list li {
  margin-bottom: 0.4rem;
}

/* Gallery */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.8rem 0 1.5rem;
}

.filter-btn {
  border-radius: 999px;
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  background: transparent;
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--text-muted);
  transition: background 0.25s ease, color 0.25s ease, border 0.25s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: #15100c;
  border-color: #15100c;
  color: #f7eee7;
}

.gallery-grid {
  columns: 3 260px;
  column-gap: 0.75rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 0.75rem;
  cursor: pointer;
  overflow: hidden;
  border-radius: 16px;
  position: relative;
}

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

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.35), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-cta {
  text-align: center;
  margin-top: 1.8rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.86);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1.5rem;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 18px;
}

.lightbox-close {
  position: absolute;
  top: -2.2rem;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* Testimonials */
.testimonials {
  background: var(--bg-alt);
}

.testimonial-slider {
  margin-top: 2.2rem;
  position: relative;
  min-height: 180px;
}

.testimonial-card {
  background: #15100c;
  color: #f7eee7;
  border-radius: 20px;
  padding: 1.9rem 1.8rem;
  box-shadow: var(--shadow-soft);
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.testimonial-card.active {
  opacity: 1;
  transform: translateX(0);
}

.testimonial-text {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 600;
}

.testimonial-meta {
  font-size: 0.86rem;
  color: #d9c3af;
}

.testimonial-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.slider-btn {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f9f5f1;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contact */
.contact {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 3rem;
  align-items: flex-start;
}

.contact-details p {
  margin: 0 0 0.4rem;
  color: var(--text-muted);
}

.contact-form {
  background: #fdfaf7;
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.8rem 2rem;
  border: 1px solid var(--border);
  box-shadow: 0 12px 25px rgba(15, 10, 5, 0.08);
}

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-group {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  margin-bottom: 0.9rem;
}

label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.3rem;
  color: var(--text-muted);
}

input, select, textarea {
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(200, 155, 123, 0.4);
}

textarea {
  resize: vertical;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.6rem;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-status {
  font-size: 0.84rem;
  margin-top: 0.7rem;
}

/* Footer */
.footer {
  background: #111;
  color: #f5efe7;
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-logo .logo-mark {
  background: #f5efe7;
  color: #111;
}

.footer-logo .logo-text {
  color: #f5efe7;
}

.footer-tagline {
  font-size: 0.9rem;
  color: #d6c5b7;
  max-width: 16rem;
}

.footer h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 0.8rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  text-decoration: none;
  color: #e5d7cb;
  font-size: 0.88rem;
}

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

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.newsletter-form input {
  flex: 1;
  border-radius: 999px;
  padding-inline: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(245, 239, 231, 0.15);
  padding: 0.9rem 0 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #c7b4a4;
}

.back-to-top {
  text-decoration: none;
  color: #c7b4a4;
}

.back-to-top:hover {
  color: #fff;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 1rem;
}

.modal-content {
  background: #fdfaf7;
  border-radius: 18px;
  padding: 1.8rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  border: 1px solid var(--border);
}

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 1.1rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
}

/* Animations on scroll */
.animate-fade-up,
.animate-fade-left,
.animate-fade-right,
.animate-zoom-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-left {
  transform: translateX(18px);
}

.animate-fade-right {
  transform: translateX(-18px);
}

.animate-zoom-in {
  transform: scale(0.96);
}

.animate-visible {
  opacity: 1 !important;
  transform: translate(0,0) scale(1) !important;
}

/* Media Queries */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-card {
    justify-self: flex-start;
  }

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

  .nav-list {
    position: absolute;
    top: 100%;
    right: 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(248, 245, 242, 0.98);
    padding: 0.9rem 1rem;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(15, 10, 5, 0.14);
    transform: translateY(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav.open .nav-list {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .nav.open .nav-toggle span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
  }

  .nav.open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav.open .nav-toggle span:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
  }

  .nav-cta {
    display: none;
  }

  .gallery-grid {
    columns: 2 180px;
  }
}

@media (max-width: 600px) {
  .hero {
    align-items: flex-end;
  }

  .hero-content {
    padding-bottom: 4rem;
  }

  .hero-card-inner {
    max-width: none;
  }

  .section {
    padding: 3.5rem 0;
  }

  .form-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .gallery-grid {
    columns: 1 100%;
  }
}