@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* =====================
   CSS VARIABLES
===================== */
:root {
  --background: hsl(30, 25%, 95%);
  --foreground: hsl(0, 0%, 0%);
  --card: hsl(30, 20%, 92%);
  --card-foreground: hsl(0, 0%, 0%);
  --primary: hsl(25, 30%, 76%);
  --primary-foreground: hsl(0, 0%, 0%);
  --secondary: hsl(265, 20%, 68%);
  --secondary-foreground: hsl(0, 0%, 100%);
  --muted: hsl(30, 20%, 90%);
  --muted-foreground: hsl(0, 0%, 40%);
  --accent: hsl(265, 20%, 68%);
  --border: hsl(25, 20%, 82%);
  --input: hsl(25, 20%, 82%);
  --font-heading: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
}

/* =====================
   RESET & BASE
===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* =====================
   TYPOGRAPHY UTILITIES
===================== */
.heading-xl {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.heading-lg {
  font-family: var(--font-heading);
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.heading-md {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 500;
}

.body-lg {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.body-md {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
}

/* =====================
   LAYOUT UTILITIES
===================== */
.section-padding {
  padding: 5rem 1.5rem;
}

@media (min-width: 768px) {
  .section-padding {
    padding: 5rem 3rem;
  }
}

@media (min-width: 1024px) {
  .section-padding {
    padding: 7rem 6rem;
  }
}

.max-w-6xl {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

.max-w-7xl {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

/* =====================
   ANIMATIONS
===================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in-up {
  animation: fadeInUp 1s ease forwards;
}

.animate-fade-in {
  animation: fadeIn 0.3s ease forwards;
}

.scroll-animate {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 1s ease, transform 1s ease;
}

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

/* =====================
   NAVBAR
===================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
  background-color: hsla(30, 25%, 95%, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.navbar-inner {
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

@media (min-width: 768px) {
  .navbar-inner {
    padding: 0 3rem;
  }
}

.navbar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar-logo-img {
  height: auto;
  width: 13rem;
  display: block;
  object-fit: contain;
  margin-top: 1.3rem;
  filter: brightness(0) invert(1);
  transition: filter 0.5s ease;
}

#navbar.scrolled .navbar-logo-img {
  filter: none;
}

.navbar-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .navbar-links {
    display: flex;
  }
}

/* White on hero, dark after scroll */
.navbar-links a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsla(0,0%,100%,0.85);
  transition: color 0.5s ease;
}

.navbar-links a:hover {
  color: white;
}

#navbar.scrolled .navbar-links a {
  color: hsla(0,0%,0%,0.7);
}

#navbar.scrolled .navbar-links a:hover {
  color: var(--foreground);
}

/* CTA button — white outlined on hero, dark filled after scroll */
.navbar-cta {
  display: none;
  padding: 0.625rem 1.5rem;
  background-color: hsla(0,0%,100%,0.15);
  color: white;
  border: 1px solid hsla(0,0%,100%,0.6);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}

@media (min-width: 768px) {
  .navbar-cta {
    display: inline-flex;
  }
}

.navbar-cta:hover {
  background-color: hsla(0,0%,100%,0.25);
}

#navbar.scrolled .navbar-cta {
  background-color: var(--foreground);
  color: var(--background);
  border-color: var(--foreground);
}

#navbar.scrolled .navbar-cta:hover {
  background-color: hsla(0,0%,0%,0.85);
}

/* Mobile toggle — white on hero, dark after scroll */
.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  padding: 0.25rem;
  transition: color 0.5s ease;
}

#navbar.scrolled .mobile-toggle {
  color: var(--foreground);
}

@media (min-width: 768px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-menu {
  display: none;
  background-color: hsla(30, 25%, 95%, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}

.mobile-menu.open {
  display: block;
  animation: fadeIn 0.2s ease;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 0;
  gap: 1.5rem;
}

.mobile-menu a {
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsla(0,0%,0%,0.7);
  transition: color 0.3s;
}

.mobile-menu a:hover {
  color: var(--foreground);
}

.mobile-menu .mobile-cta {
  padding: 0.625rem 1.5rem;
  background-color: var(--foreground);
  color: var(--background);
}

@media (max-width: 767px) {
  .navbar-inner {
    position: relative;
  }

  .navbar-logo {
    position: absolute;
    left: 0rem;
  }

  .navbar-logo-img {
    width: 10rem;
  }

  .mobile-toggle {
    position: absolute;
    right: 1.5rem;
  }
}

/* =====================
   HERO
===================== */
#home {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: hsla(0,0%,0%,0.30);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}

.hero-eyebrow {
  color: hsla(0,0%,100%,0.80);
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
}

.hero-content h1 {
  color: var(--background);
  margin-bottom: 2rem;
}

.hero-content p {
  color: hsla(0,0%,100%,0.80);
  max-width: 42rem;
  margin: 0 auto 3rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.btn-primary {
  padding: 1rem 2rem;
  background-color: var(--background);
  color: var(--foreground);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.3s;
  display: inline-block;
}

.btn-primary:hover {
  background-color: hsla(30,25%,95%,0.90);
}

.btn-outline {
  padding: 1rem 2rem;
  border: 1px solid var(--background);
  color: var(--background);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.3s;
  display: inline-block;
}

.btn-outline:hover {
  background-color: hsla(0,0%,100%,0.10);
}

/* =====================
   ABOUT
===================== */
#about {
  background-color: var(--background);
}

.about-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.about-eyebrow {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.about-text h2 {
  margin-bottom: 2rem;
  color: var(--foreground);
}

.about-text p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.about-text p:last-of-type {
  margin-bottom: 2rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.about-stats h3 {
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.about-stats p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0 !important;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background-color: var(--primary);
  padding: 2rem;
  display: none;
}

@media (min-width: 768px) {
  .about-badge {
    display: block;
  }
}

.about-badge .badge-number {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.about-badge .badge-label {
  font-size: 0.875rem;
  color: hsla(0,0%,0%,0.70);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* =====================
   SERVICES
===================== */
#services {
  background-color: var(--muted);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-eyebrow {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-header h2 {
  color: var(--foreground);
}

.services-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.service-card {
  background-color: var(--background);
  padding: 2.5rem;
  transition: box-shadow 0.3s, opacity 0.7s ease, transform 0.7s ease;
}

.service-card:hover {
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.service-icon {
  width: 2rem;
  height: 2rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  transition: color 0.3s;
}

.service-card:hover .service-icon {
  color: var(--foreground);
}

.service-card h3 {
  color: var(--foreground);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--muted-foreground);
}

/* =====================
   PRICING
===================== */
#pricing {
  background-color: var(--background);
}

.pricing-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-card {
  padding: 2.5rem;
  transition: box-shadow 0.3s, opacity 0.7s ease, transform 0.7s ease;
}

.pricing-card:hover {
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.pricing-card.default {
  background-color: var(--card);
  outline: 1px solid var(--border);
}

.pricing-card.featured {
  background-color: var(--foreground);
  color: var(--background);
  outline: 1px solid var(--foreground);
}

.pricing-card h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.pricing-card .pkg-desc {
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.pricing-card.default .pkg-desc {
  color: var(--muted-foreground);
}

.pricing-card.featured .pkg-desc {
  color: hsla(0,0%,100%,0.60);
}

.pricing-card .pkg-price {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.pricing-card .pkg-features {
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-card .feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.feature-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.pricing-card.default .feature-icon {
  color: var(--secondary);
}

.pricing-card.featured .feature-icon {
  color: var(--primary);
}

.pricing-card .pkg-cta {
  display: block;
  text-align: center;
  padding: 0.75rem;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.3s;
}

.pricing-card.default .pkg-cta {
  background-color: var(--foreground);
  color: var(--background);
}

.pricing-card.default .pkg-cta:hover {
  background-color: hsla(0,0%,0%,0.85);
}

.pricing-card.featured .pkg-cta {
  background-color: var(--background);
  color: var(--foreground);
}

.pricing-card.featured .pkg-cta:hover {
  background-color: hsla(30,25%,95%,0.90);
}

/* =====================
   GALLERY
===================== */
#gallery {
  background-color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  transition: opacity 0.7s ease, transform 0.7s ease;
  background: none;
  border: none;
  padding: 0;
}

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

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background-color: hsla(0,0%,0%,0);
  transition: background-color 0.5s ease;
}

.gallery-item:hover .gallery-item-overlay {
  background-color: hsla(0,0%,0%,0.20);
}

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background-color: hsla(0,0%,0%,0.90);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}

#lightbox.hidden {
  display: none;
}

#lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: hsla(0,0%,100%,0.80);
  transition: color 0.3s;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
}

#lightbox-close:hover {
  color: white;
}

#lightbox img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

/* =====================
   CONTACT
===================== */
#contact {
  background-color: var(--background);
}

.contact-grid {
  display: grid;
  gap: 4rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.contact-eyebrow {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.contact-info h2 {
  color: var(--foreground);
  margin-bottom: 2rem;
}

.contact-info > p {
  color: var(--muted-foreground);
  margin-bottom: 2.5rem;
}

.contact-email {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-email svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--secondary);
  flex-shrink: 0;
}

.contact-email a {
  color: var(--foreground);
  transition: color 0.3s;
}

.contact-email a:hover {
  color: var(--secondary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-group label {
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: hsla(0,0%,40%,0.5);
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--foreground);
}

.form-group textarea {
  resize: none;
}

.btn-submit {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background-color: var(--foreground);
  color: var(--background);
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.3s;
  width: fit-content;
}

.btn-submit:hover {
  background-color: hsla(0,0%,0%,0.85);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-submit svg {
  width: 1rem;
  height: 1rem;
}

/* =====================
   TOAST
===================== */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background-color: var(--foreground);
  color: var(--background);
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  font-family: var(--font-body);
  max-width: 20rem;
  animation: fadeInUp 0.3s ease forwards;
  transition: opacity 0.3s;
}

.toast.fade-out {
  opacity: 0;
}

/* =====================
   FOOTER
===================== */
footer {
  background-color: var(--foreground);
  color: hsla(30,25%,95%,0.70);
  padding: 4rem 1.5rem;
}

@media (min-width: 768px) {
  footer {
    padding: 4rem 3rem;
  }
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-logo {
  display: inline-block;
  margin-top: -2.5rem;
  margin-left: -3rem;
  margin-bottom: -2rem;
}

.footer-logo-img {
  height: 10rem;
  width: auto;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-nav h4,
.footer-contact h4 {
  color: var(--background);
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 400;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  font-size: 0.875rem;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--background);
}

.footer-contact p {
  font-size: 0.875rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  margin-bottom: 0.6rem;
}

.footer-contact-item svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  opacity: 0.7;
}

.footer-contact-item a,
.footer-contact-item span {
  color: hsla(30,25%,95%,0.70);
  transition: color 0.3s;
}

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

.footer-bottom {
  border-top: 1px solid hsla(30,25%,95%,0.10);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
}

/* =====================
   404 PAGE
===================== */
.page-404 {
  min-height: 100vh;
  background-color: var(--background);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.page-404-deco {
  position: absolute;
  font-family: var(--font-heading);
  font-size: clamp(12rem, 30vw, 22rem);
  font-weight: 700;
  color: hsla(25,30%,76%,0.25);
  letter-spacing: -0.05em;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.page-404-content {
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.9s ease forwards;
}

.page-404 .eyebrow {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.page-404 h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.page-404 p {
  color: var(--muted-foreground);
  max-width: 32rem;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
  line-height: 1.7;
}

.page-404 .btn-primary {
  display: inline-block;
  background-color: var(--foreground);
  color: var(--background);
  padding: 1rem 2.5rem;
}

.page-404 .btn-primary:hover {
  background-color: hsla(0,0%,0%,0.85);
}

.page-404-logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.page-404-logo-img {
  height: auto;
  width: 25rem;
  display: block;
  object-fit: contain;
}

/* =====================
   HIDE SCROLLBAR
===================== */

/* Firefox */
html {
  scrollbar-width: none;
}

/* Chrome, Safari, Edge */
html::-webkit-scrollbar {
  display: none;
}