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

:root {
  /* Color Palette */
  --color-ivory: #F7F4EF;
  --color-beige: #E8DED0;
  --color-cream: #F2EDE5;
  --color-taupe: #B9A28A;
  --color-bronze: #9A7048;
  --color-charcoal: #171717;
  --color-white: #FFFFFF;
  --color-dark-footer: #111111;

  /* Typography */
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;

  /* Spacing & Layout */
  --max-width: 1280px;
  --section-padding-y: 6rem;
  --section-padding-x: 2rem;
  --border-radius: 4px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  color: var(--color-charcoal);
  background-color: var(--color-ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--border-radius);
  cursor: pointer;
  border: 1px solid transparent;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.6s ease, border-color 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

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

.btn-primary::before {
  background-color: var(--color-bronze);
}

.btn-primary:hover {
  color: var(--color-white);
  border-color: var(--color-bronze);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-charcoal);
  border-color: var(--color-charcoal);
}

.btn-outline::before {
  background-color: var(--color-charcoal);
}

.btn-outline:hover {
  color: var(--color-white);
  border-color: var(--color-charcoal);
}

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

.btn-bronze::before {
  background-color: var(--color-charcoal);
}

.btn-bronze:hover {
  color: var(--color-white);
  border-color: var(--color-charcoal);
}

/* Typography Utilities */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-charcoal);
  display: block;
  margin-bottom: 1rem;
}

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

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.mt-5 {
  margin-top: 3rem;
}

.mt-4 {
  margin-top: 2rem;
}

/* --------------------------------------
   Header (Apple Liquid Glass Effect)
--------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.1rem 0;
  z-index: 1000;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.75) 0%,
    rgba(255, 255, 255, 0.45) 100%
  );
  backdrop-filter: blur(25px) saturate(200%) contrast(100%);
  -webkit-backdrop-filter: blur(25px) saturate(200%) contrast(100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.03),
    0 8px 32px 0 rgba(0, 0, 0, 0.05);
  transform: translateY(0);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease, padding 0.3s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.header.hide-header {
  transform: translateY(-100%);
}

.header.scrolled {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(255, 255, 255, 0.75) 100%
  );
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.95),
    0 10px 35px 0 rgba(0, 0, 0, 0.08);
  transform: translateY(0);
}

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

.logo-wrapper {
  display: flex;
  align-items: center;
}

.header-logo {
  max-height: 80px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
  display: block;
}

.header .btn-outline {
  margin: 0 !important;
  padding: 0.55rem 1.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  color: var(--color-charcoal);
  border: 1.5px solid rgba(23, 23, 23, 0.65);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 
    0 2px 10px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.header .btn-outline:hover {
  background-color: var(--color-charcoal);
  color: var(--color-white);
  border-color: var(--color-charcoal);
  box-shadow: 0 4px 16px rgba(23, 23, 23, 0.18);
}

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

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-charcoal);
  letter-spacing: 0.02em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  align-self: center;
  padding: 0.55rem 0;
  position: relative;
  transition: color 0.25s ease;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-bronze);
  transition: width 0.3s ease;
}

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

.nav-links a.btn::after {
  display: none !important;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-charcoal);
}

/* Dark theme header (for pages with dark backgrounds) */
.header.header-light-text {
  background: linear-gradient(
    135deg,
    rgba(30, 30, 30, 0.60) 0%,
    rgba(18, 18, 18, 0.48) 100%
  );
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 8px 32px 0 rgba(0, 0, 0, 0.25),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.18);
}

.header.header-light-text .nav-links a {
  color: var(--color-white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.header.header-light-text .nav-links a:hover {
  color: #c5a059;
}

.header.header-light-text .nav-links a::after {
  background-color: var(--color-white);
}

.header.header-light-text .menu-toggle {
  color: var(--color-white);
}

.header.header-light-text .btn-outline {
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 
    0 2px 10px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.header.header-light-text .btn-outline::before {
  background-color: var(--color-white);
}

.header.header-light-text .btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-charcoal);
  border-color: var(--color-white);
}

/* Override light text when scrolled since background becomes white */
.header.scrolled .nav-links a {
  color: var(--color-charcoal) !important;
}

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

.header.scrolled .nav-links a::after {
  background-color: var(--color-bronze) !important;
}

.header.scrolled .menu-toggle {
  color: var(--color-charcoal) !important;
}

.header.scrolled .btn-outline {
  color: var(--color-charcoal) !important;
  border: 1.5px solid var(--color-charcoal) !important;
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

.header.scrolled .btn-outline::before {
  background-color: var(--color-charcoal) !important;
}

.header.scrolled .btn-outline:hover {
  background-color: var(--color-charcoal) !important;
  color: var(--color-white) !important;
  border-color: var(--color-charcoal) !important;
}

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

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1.05);
  /* for subtle zoom in animation later */
}

/* Add a very subtle gradient overlay if needed for text readability */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(247, 244, 239, 0.95) 0%, rgba(247, 244, 239, 0.7) 35%, rgba(247, 244, 239, 0) 70%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding-top: 5rem;
  top: 95px;
  /* space for header */
}

.hero .eyebrow {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
}

.hero-headline .highlight {
  color: var(--color-bronze);
  font-style: normal;
  display: block;
}

.hero-desc {
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  color: #333;
  max-width: 500px;
}

/* --------------------------------------
   Featured Projects 
--------------------------------------- */
.projects {
  padding: var(--section-padding-y) 0;
  background-color: var(--color-ivory);
}

.projects-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

.project-card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.project-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-category {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-bronze);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.project-cta {
  margin-top: auto;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-charcoal);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.project-cta:hover {
  color: var(--color-bronze);
}

/* --------------------------------------
   Services Section 
--------------------------------------- */
.services {
  padding: var(--section-padding-y) 0;
  background-color: var(--color-cream);
  position: relative;
  overflow: hidden;
}

/* Subtle decorative plant element for background */
.services-deco {
  position: absolute;
  right: -65px;
  top: 0;
  width: 250px;
  /* Adjust size based on image proportion */
  max-width: 30%;
  pointer-events: none;
  z-index: 0;
}

.services-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 4rem;
}

.services-intro {
  max-width: 600px;
  margin-bottom: 2rem;
}

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

.service-card {
  background: var(--color-white);
  border-radius: 20px;
  padding: 2.5rem 1.5rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  transition: transform 0.4s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-icon {
  width: 70px;
  height: 70px;
  background-color: var(--color-cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  color: var(--color-charcoal);
}

.service-icon svg {
  width: 32px;
  height: 32px;
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  text-align: center;
}

.service-desc {
  font-size: 0.875rem;
  color: #777;
  margin-bottom: 2rem;
  text-align: center;
}

.service-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: auto;
  margin-bottom: 1.5rem;
}

.service-cta {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-bronze);
  margin-bottom: 0;
  display: inline-block;
}

/* --------------------------------------
   Luxury Services Premium Section & Cards
--------------------------------------- */
.services-premium-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .services-premium-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .services-premium-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
  }
}

.luxury-service-card {
  background: var(--color-white);
  border: 1px solid rgba(23, 23, 23, 0.07);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.35s ease;
  position: relative;
}

.luxury-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.07);
  border-color: rgba(154, 112, 72, 0.4);
}

.luxury-service-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background-color: var(--color-beige);
}

.luxury-service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.luxury-service-card:hover .luxury-service-img {
  transform: scale(1.06);
}

.luxury-service-body {
  padding: 1.75rem 1.75rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.luxury-service-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.luxury-service-num {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 600;
  color: var(--color-bronze);
  line-height: 1;
}

.luxury-service-tag {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #999;
}

.luxury-service-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-charcoal);
  margin-bottom: 0.85rem;
  min-height: 3.5rem;
  display: flex;
  align-items: flex-start;
  transition: color 0.3s ease;
}

.luxury-service-card:hover .luxury-service-title {
  color: var(--color-bronze);
}

.luxury-service-desc {
  font-family: var(--font-sans);
  font-size: 0.925rem;
  line-height: 1.75;
  color: #666;
  margin-bottom: 1.5rem;
  flex: 1;
}

.luxury-service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-bronze);
  margin-top: auto;
  text-decoration: none;
  transition: color 0.3s ease;
}

.luxury-service-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.luxury-service-card:hover .luxury-service-link {
  color: var(--color-charcoal);
}

.luxury-service-card:hover .luxury-service-arrow {
  transform: translateX(6px);
}

/* --------------------------------------
   Consultation & Bespoke 2-Col Card
--------------------------------------- */
.luxury-service-cta-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background-color: var(--color-charcoal);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease;
}

@media (min-width: 1024px) {
  .luxury-service-cta-card {
    grid-column: span 2 / span 2;
  }
}

.luxury-service-cta-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
  border-color: rgba(154, 112, 72, 0.5);
}

.luxury-service-cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.luxury-service-cta-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.luxury-service-cta-card:hover .luxury-service-cta-img {
  transform: scale(1.05);
  opacity: 0.42;
}

.luxury-service-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(23, 23, 23, 0.95) 0%, rgba(23, 23, 23, 0.84) 100%);
}

.luxury-service-cta-content {
  position: relative;
  z-index: 2;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 620px;
}

.luxury-service-cta-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-bronze);
  margin-bottom: 0.75rem;
  display: inline-block;
}

.luxury-service-cta-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.luxury-service-cta-desc {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2rem;
}

.luxury-service-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* --------------------------------------
   Utility Classes 
--------------------------------------- */
.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mt-5 {
  margin-top: 3rem;
}

/* --------------------------------------
   Process Section 
--------------------------------------- */
.process {
  padding: var(--section-padding-y) 0;
  background-color: var(--color-ivory);
  position: relative;
  overflow: hidden;
}

.process .eyebrow {
  font-size: 0.75rem;
  letter-spacing: 3px;
  font-weight: 600;
  color: var(--color-bronze) !important;
}

.process h2 {
  font-size: 3.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.process p {
  font-size: 1.125rem;
  line-height: 1.6;
}

.process-deco-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 250px;
  /* Adjust size as necessary */
  max-width: 30%;
  pointer-events: none;
  z-index: 0;
}

.process-timeline {
  display: flex;
  justify-content: space-between;
  margin-top: 4rem;
  position: relative;
}

.process-line {
  position: absolute;
  top: 40px;
  left: 5%;
  right: 5%;
  height: 1px;
  background-color: var(--color-taupe);
  z-index: 1;
}

.process-line::before,
.process-line::after {
  content: '';
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  background-color: var(--color-bronze);
  border-radius: 50%;
}

.process-line::before {
  left: 0;
}

.process-line::after {
  right: 0;
}

.process-step {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1 1 0;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.process-icon-wrap {
  width: 80px;
  height: 80px;
  background-color: var(--color-cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
  color: var(--color-charcoal);
  transition: transform 0.3s ease;
}

.process-step:hover .process-icon-wrap {
  transform: scale(1.1);
  border-color: var(--color-bronze);
}

.process-icon-wrap svg {
  width: 28px;
  height: 28px;
}

.process-number {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-bronze);
  margin-bottom: 0.35rem;
  display: block;
}

.process-title {
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  font-family: var(--font-serif);
  color: var(--color-charcoal);
  margin-bottom: 0;
  white-space: nowrap;
}

.process-title::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background-color: var(--color-bronze);
  margin: 0.85rem auto 1.25rem auto;
}

.process-desc {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.65;
  text-align: center;
  text-wrap: balance;
  max-width: 215px;
  margin: 0 auto;
}

@media (min-width: 769px) {
  .process-desc {
    min-height: 5.8rem;
  }
}

@media (max-width: 768px) {
  .process-timeline {
    flex-direction: column;
    gap: 3rem;
  }

  .process-line {
    display: none;
  }
}

/* --------------------------------------
   CTA Section 
--------------------------------------- */
.cta {
  padding: 5rem 0;
  background-color: var(--color-ivory);
  /* matched the background */
}

.cta-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 0;
}

.cta-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.cta-illustration {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50% 50% 0 0;
  /* arch shape */
}

.cta-heading {
  font-size: 2rem;
  margin-bottom: 0;
  font-family: var(--font-serif);
}

.cta-divider {
  width: 1px;
  height: 100px;
  background-color: var(--color-beige);
}

.cta-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cta-desc {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0;
}

/* --------------------------------------
   Footer 
--------------------------------------- */
.footer {
  background-color: #080808;
  /* Very dark background */
  color: var(--color-white);
  padding: 5rem 0 2rem 0;
}

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

.footer-logo {
  display: block;
  margin-bottom: 2rem;
}

.footer-logo-img {
  height: 89px;
  width: 235px;
  display: block;
}

.footer-desc {
  font-size: 0.9rem;
  color: #bbb;
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 250px;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--color-white);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  border-color: var(--color-bronze);
  color: var(--color-bronze);
}

.footer-title {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--color-white);
}

.footer-title::after {
  content: '';
  display: block;
  width: 35px;
  height: 2px;
  background-color: var(--color-bronze);
  margin-top: 12px;
}

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

.footer-links a,
.footer-contact p {
  color: #bbb;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  margin-bottom: 0;
}

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

.footer-contact li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.footer-contact svg {
  width: 20px;
  height: 20px;
  color: var(--color-bronze);
  flex-shrink: 0;
}

.footer-bottom {
  text-align: center;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.copyright-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: #aaa;
}

.copyright-wrapper::before,
.copyright-wrapper::after {
  content: '';
  display: block;
  width: 50px;
  height: 1px;
  background-color: var(--color-bronze);
  opacity: 0.5;
}

.copyright-text {
  font-size: 1rem;
}

.copyright-text .heart {
  color: red;
}

.copyright-text .brand {
  color: var(--color-bronze);
}

.footer-leaf {
  width: 60px;
  color: var(--color-bronze);
}

@media (max-width: 768px) {
  .footer {
    text-align: center;
  }

  .footer-logo-img {
    margin: 0 auto;
  }

  .footer-desc {
    margin: 0 auto 2rem auto;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-title::after {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-contact li {
    justify-content: center;
  }

  .copyright-wrapper::before,
  .copyright-wrapper::after {
    display: none;
  }
}

/* --------------------------------------
   Animations (Intersection Observer Classes)
--------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 100ms;
}

.delay-200 {
  transition-delay: 200ms;
}

.delay-300 {
  transition-delay: 300ms;
}

.delay-400 {
  transition-delay: 400ms;
}



/* Mobile Menu Active */
.mobile-menu-active .nav-links {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--color-ivory);
  padding: 3rem 2rem;
  gap: 2rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  animation: slideDown 0.3s ease forwards;
}

.mobile-menu-active .nav-links a {
  color: var(--color-charcoal);
  font-size: 1.125rem;
}

.mobile-menu-active .nav-links .btn-outline {
  color: var(--color-charcoal) !important;
  border-color: var(--color-charcoal) !important;
  margin-top: 1rem !important;
}

.mobile-menu-active .nav-links .btn-outline:hover {
  background-color: var(--color-charcoal) !important;
  color: var(--color-white) !important;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------
   Project Detail Page 
--------------------------------------- */

.section-pad {
  padding: var(--section-padding-y) 0;
}

.section-pad-bottom {
  padding-bottom: var(--section-padding-y);
}

/* 1. Project Hero */
.project-hero {
  position: relative;
  height: 60vh;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--color-white);
  text-align: center;
}

.project-hero-bg {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  /* Extra height for parallax */
  z-index: 0;
}

.project-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  /* initial scale for load animation */
  animation: slowZoomOut 10s ease-out forwards;
}

@keyframes slowZoomOut {
  from {
    transform: scale(1.15);
  }

  to {
    transform: scale(1.0);
  }
}

.project-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 17, 17, 0.4);
  /* Dark overlay for text readability */
  z-index: 1;
}

.project-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.project-hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.meta-dot {
  color: var(--color-bronze);
}

.project-hero-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 400;
  margin-bottom: 1.25rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: capitalize;
}

.project-hero-desc {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.02em;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.scroll-text {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--color-white);
  animation: scrollLineDrop 2s ease-in-out infinite;
}

@keyframes scrollLineDrop {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(200%);
  }
}

/* 2. Project Intro */
.editorial-heading {
  font-size: 3.5rem;
  line-height: 1.2;
}

.editorial-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #444;
}

/* 3. Project Info */
.project-info-grid {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 4rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

@media(min-width: 1024px) {
  .info-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
  }
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-taupe);
}

.info-value {
  font-size: 1rem;
  font-family: var(--font-serif);
}

/* 4. Project Gallery */
.gallery-row {
  margin-bottom: 2rem;
}

.gallery-row:last-child {
  margin-bottom: 0;
}

.img-wrapper {
  overflow: hidden;
  position: relative;
}

/* Mask reveal animation */
.reveal-mask {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal-mask.visible {
  clip-path: inset(0 0 0 0);
}

.zoom-on-scroll {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  /* Initial state for JS */
  will-change: transform;
}

.reveal-mask.visible .zoom-on-scroll {
  /* Transition is now handled by smooth JS scroll-linking */
}

.two-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .two-cols {
    grid-template-columns: 5fr 7fr;
  }

  /* Asymmetrical */
  .two-cols .col-left {
    margin-top: 4rem;
  }
}

.portrait-center {
  max-width: 700px;
  margin: 4rem auto 0 auto;
}

/* 5. Feature Image Section */
.feature-image-section {
  position: relative;
  height: 80vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.parallax-wrapper {
  position: absolute;
  top: -15%;
  left: 0;
  width: 100%;
  height: 130%;
  z-index: 0;
}

.parallax-img-slow {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-text-overlay {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
  background: rgba(0, 0, 0, 0.2);
  padding: 3rem;
  backdrop-filter: blur(5px);
}

.overlay-text {
  font-size: 2.5rem;
  font-weight: 400;
  margin: 0;
}

/* 6. Design Details */
.design-details .detail-card .img-wrapper {
  aspect-ratio: 4/5;
  margin-bottom: 1.5rem;
}

.design-details .detail-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.detail-desc {
  font-size: 0.875rem;
  color: #666;
}

/* 7. Project Story (Horizontal Scroll) */
.project-story-section {
  background-color: var(--color-cream);
  padding-bottom: 8rem;
}

.horizontal-scroll-container {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 2rem;
}

.horizontal-scroll-container::-webkit-scrollbar {
  display: none;
}

.horizontal-scroll-track {
  display: flex;
  width: max-content;
  padding-left: var(--section-padding-x);
  padding-right: var(--section-padding-x);
  gap: 4rem;
}

.story-step {
  width: 350px;
  scroll-snap-align: start;
}

.step-num {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-bronze);
  display: block;
  margin-bottom: 1rem;
}

.step-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.step-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

/* Vertical timeline for mobile */
.vertical-timeline {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.vertical-timeline .story-step {
  width: 100%;
  padding-left: 1.5rem;
  border-left: 1px solid var(--color-taupe);
  position: relative;
}

.vertical-timeline .story-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: -4px;
  width: 7px;
  height: 7px;
  background-color: var(--color-bronze);
  border-radius: 50%;
}

/* 8. Final Image */
.final-project-image {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 9. Next Project Banner */
.next-project-banner {
  position: relative;
  display: block;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
  color: var(--color-white);
  text-decoration: none;
}

.next-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.zoom-on-hover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.next-project-banner:hover .zoom-on-hover {
  transform: scale(1.05);
}

.next-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
  transition: background 0.5s ease;
}

.next-project-banner:hover .next-overlay {
  background: rgba(0, 0, 0, 0.3);
}

.next-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.next-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
}

.next-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.next-link {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.next-project-banner:hover .next-link {
  transform: translateX(10px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .project-hero-title {
    font-size: 2.5rem;
  }

  .editorial-heading {
    font-size: 2.5rem;
  }

  .project-story-section {
    display: none;
  }
}

/* --------------------------------------
   Staggered Vertical Portfolio
--------------------------------------- */

.staggered-portfolio {
  background-color: var(--color-ivory);
  padding: 8rem 0;
}

.staggered-grid {
  display: flex;
  flex-direction: column;
}

.modern-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  width: 100%;
}

.modern-project {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* 4-Item Grid Pattern for dynamic but proper layout */
.modern-project.layout-0 {
  grid-column: span 8;
  aspect-ratio: 16/9;
}

.modern-project.layout-1 {
  grid-column: span 4;
  aspect-ratio: 3/4;
}

.modern-project.layout-2 {
  grid-column: span 5;
  aspect-ratio: 4/5;
}

.modern-project.layout-3 {
  grid-column: span 7;
  aspect-ratio: 16/10;
}

.modern-project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform;
}

.modern-project:hover .modern-project-img {
  transform: scale(1.08);
}

.modern-project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 15, 15, 0.9) 0%, rgba(15, 15, 15, 0.4) 40%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.modern-project:hover .modern-project-overlay {
  opacity: 1;
}

.modern-project-cat {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-bronze);
  margin-bottom: 0.5rem;
  transform: translateY(20px);
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1) 0.1s;
}

.modern-project-title {
  font-size: 2.25rem;
  color: var(--color-white);
  margin-bottom: 1rem;
  transform: translateY(20px);
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1) 0.2s;
}

.modern-project-cta {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transform: translateY(20px);
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1) 0.3s;
}

.modern-project:hover .modern-project-cat,
.modern-project:hover .modern-project-title,
.modern-project:hover .modern-project-cta {
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .modern-grid {
    gap: 1.5rem;
  }

  .modern-project-overlay {
    padding: 2rem;
  }
}

@media (max-width: 768px) {

  .modern-project.layout-0,
  .modern-project.layout-1,
  .modern-project.layout-2,
  .modern-project.layout-3 {
    grid-column: span 12;
    aspect-ratio: 4/3;
  }

  .modern-project-overlay {
    opacity: 1;
  }

  .modern-project-cat,
  .modern-project-title,
  .modern-project-cta {
    transform: translateY(0);
  }
}
.logo-wrapper {
  position: relative;
}
.header .header-logo {
  transition: opacity 0.4s ease;
}
.header .header-logo.default-logo {
  opacity: 1;
}
.header .header-logo.scrolled-logo {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
}
.header.scrolled .header-logo.default-logo {
  opacity: 0;
}
.header.scrolled .header-logo.scrolled-logo {
  opacity: 1;
}
