/* ==========================================================================
   Katelynn Home — Brand Stylesheet
   Ivory / Charcoal / Warm Stone / Dusty Terracotta / Antique Brass
   ========================================================================== */

:root {
  --ivory: #f6f1ea;
  --ivory-soft: #f2ece2;
  --charcoal: #3b322c;
  --charcoal-soft: #5a4f45;
  --stone: #c9bba8;
  --stone-line: #d8cfc2;
  --terracotta: #b87a5d;
  --brass: #b08d57;
  --white: #ffffff;

  --serif: "Fraunces", "Cambria", "Georgia", serif;
  --sans: "Poppins", "Calibri", "Helvetica Neue", Arial, sans-serif;

  --max-width: 1180px;
  --gap: clamp(1.5rem, 4vw, 3rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 0 0 0.6em;
  line-height: 1.15;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 400; }
h3 { font-size: 1.35rem; }

p {
  margin: 0 0 1.2em;
  color: var(--charcoal-soft);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.9em;
  font-weight: 500;
}

.lede {
  font-size: 1.1rem;
  max-width: 640px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.9em 0.95em calc(1.9em + 0.14em);
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--charcoal);
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  background: var(--charcoal);
  color: var(--ivory);
}

.btn-solid {
  background: var(--charcoal);
  color: var(--ivory);
  border-color: var(--charcoal);
}

.btn-solid:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--white);
}

.btn-on-dark {
  border-color: var(--ivory);
  color: var(--ivory);
}

.btn-on-dark:hover {
  background: var(--ivory);
  color: var(--charcoal);
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 241, 234, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--stone-line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.brand-mark img {
  height: 42px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 3vw, 2.6rem);
}

.main-nav a {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--charcoal);
  position: relative;
}

.main-nav a:not(.btn) {
  padding-bottom: 4px;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--terracotta);
}

.main-nav a.btn-solid,
.main-nav a.btn-solid:hover,
.main-nav a.btn-solid.active {
  color: var(--ivory);
}

.main-nav a.btn-solid:hover {
  color: var(--white);
}

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--ivory);
  border: 1px solid var(--stone-line);
  padding: 0.4rem 0;
  z-index: 30;
  box-shadow: 0 10px 24px rgba(59,50,44,0.12);
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1.1rem;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: none;
  white-space: nowrap;
  border-bottom: none;
}

.dropdown-menu a:hover {
  color: var(--terracotta);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--charcoal);
}

@media (max-width: 780px) {
  .main-nav {
    position: fixed;
    inset: 0 0 auto auto;
    top: 76px;
    right: 0;
    left: 0;
    background: var(--ivory);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem clamp(1.25rem, 4vw, 3rem) 1.5rem;
    border-bottom: 1px solid var(--stone-line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .main-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav a {
    padding: 0.75rem 0;
    width: 100%;
    border-bottom: 1px solid var(--stone-line);
  }
  .main-nav .btn { margin-top: 1rem; }
  .nav-toggle { display: flex; }
  .nav-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  .nav-item > a {
    border-bottom: none;
    padding-bottom: 0.4rem;
  }
  .dropdown-menu {
    display: block;
    position: static;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0 0 0.5rem 1rem;
    width: 100%;
  }
  .dropdown-menu a {
    padding: 0.5rem 0;
    color: var(--charcoal-soft);
    border-bottom: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  background:
    linear-gradient(180deg, rgba(59,50,44,0.28), rgba(59,50,44,0.4)),
    url("../assets/hero_home_v4.jpg") center / cover no-repeat;
  color: var(--ivory);
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(3.5rem, 8vw, 6rem);
  text-align: center;
}

.hero .brand-lockup {
  width: min(180px, 40vw);
  margin: 0 auto 2.2rem;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.45));
}

.hero h1 {
  color: var(--ivory);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 20px rgba(0,0,0,0.55), 0 1px 4px rgba(0,0,0,0.5);
}

.hero h1 .hero-title-main {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 400;
}

.hero h1 .hero-title-sub {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  font-weight: 400;
  letter-spacing: normal;
  margin-top: 0.2rem;
  opacity: 0.92;
}

.hero p.lede {
  color: var(--ivory);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  text-shadow: 0 1px 10px rgba(0,0,0,0.55);
}

.hero .cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.2rem;
  flex-wrap: wrap;
}

/* ---------- Sections ---------- */

section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-alt {
  background: var(--white);
  border-top: 1px solid var(--stone-line);
  border-bottom: 1px solid var(--stone-line);
}

.section-dark {
  background: var(--charcoal);
  color: var(--ivory);
}

.section-dark h2, .section-dark h3 { color: var(--ivory); }
.section-dark p { color: var(--stone); }

.section-head {
  max-width: 720px;
  margin: 0 0 2.6rem;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- Grids / Cards ---------- */

.grid {
  display: grid;
  gap: var(--gap);
}

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

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.pillar {
  text-align: left;
}

.pillar img {
  width: 46px;
  height: 46px;
  margin-bottom: 1.1rem;
}

.pillar h3 {
  margin-bottom: 0.5rem;
}

.pillar p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.placeholder-frame {
  background: var(--stone);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--stone-line);
  color: var(--charcoal-soft);
}

.placeholder-frame span {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.75;
}

.placeholder-frame.wide { aspect-ratio: 16 / 10; }
.placeholder-frame.square { aspect-ratio: 1 / 1; }
.placeholder-frame.tall { aspect-ratio: 4 / 3; }

.placeholder-frame.coming-soon {
  background: linear-gradient(120deg, var(--stone) 30%, var(--stone-line) 50%, var(--stone) 70%);
  background-size: 220% 100%;
  animation: kh-shimmer 2.6s infinite linear;
  flex-direction: column;
  gap: 0.6rem;
}

.placeholder-frame.coming-soon img {
  width: 26%;
  opacity: 0.32;
  filter: grayscale(1);
}

.placeholder-frame.coming-soon span {
  opacity: 0.55;
}

@keyframes kh-shimmer {
  0% { background-position: 220% 0; }
  100% { background-position: -220% 0; }
}

.project-card-soon {
  cursor: default;
}

.project-card-soon:hover .placeholder-frame {
  opacity: 1;
}

.photo-frame {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--stone-line);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-frame.wide { aspect-ratio: 16 / 10; }
.photo-frame.tall { aspect-ratio: 4 / 3; }
.photo-frame.portrait { aspect-ratio: 3 / 4; }

.photo-caption {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  text-align: center;
}

.project-card {
  display: block;
}

.project-card .placeholder-frame,
.project-card .photo-frame {
  margin-bottom: 1rem;
  transition: opacity 0.25s ease;
}

.project-card:hover .placeholder-frame,
.project-card:hover .photo-frame {
  opacity: 0.85;
}

.project-card h3 {
  margin-bottom: 0.2rem;
}

.project-tag {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
}

/* ---------- Services / Process ---------- */

.service-card {
  background: var(--white);
  border: 1px solid var(--stone-line);
  padding: 2.2rem;
}

.service-card h3 { margin-bottom: 0.6rem; }
.service-card .price {
  font-family: var(--serif);
  color: var(--terracotta);
  font-size: 1.2rem;
  margin-bottom: 0.9rem;
  display: block;
}

.service-card.featured {
  border-color: var(--brass);
  border-width: 2px;
  position: relative;
}

.service-card .badge {
  position: absolute;
  top: -0.85rem;
  left: 2.2rem;
  background: var(--brass);
  color: var(--ivory);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
}

.service-includes {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--stone-line);
}

.service-includes summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
}

.service-includes summary::-webkit-details-marker { display: none; }
.service-includes summary::before { content: "+ "; }
.service-includes[open] summary::before { content: "\2212 "; }

.service-includes .includes-list {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--charcoal-soft);
  line-height: 1.6;
}

.service-includes .includes-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.4rem;
}

.service-includes .includes-list li::before {
  content: "\00B7";
  position: absolute;
  left: 0;
  color: var(--brass);
  font-weight: 700;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  counter-reset: step;
}

@media (max-width: 900px) {
  .process-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .process-steps { grid-template-columns: 1fr; }
}

.process-step .num {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--brass);
  display: block;
  margin-bottom: 0.5rem;
}

/* ---------- Quote / Voice ---------- */

.quote-block {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.quote-block p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  color: var(--charcoal);
}

.section-dark .quote-block p { color: var(--ivory); }

/* ---------- Testimonial Carousel ---------- */

.testimonial-carousel {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.testimonial-track {
  position: relative;
  min-height: 9rem;
}

.testimonial-slide {
  display: none;
  animation: testimonialFade 0.6s ease;
}

.testimonial-slide.is-active {
  display: block;
}

.testimonial-slide p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  color: var(--ivory);
}

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

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(246, 241, 234, 0.32);
  cursor: pointer;
  transition: background 0.25s ease;
}

.testimonial-dot.is-active {
  background: var(--brass);
}

/* ---------- Image Carousel ---------- */

.image-carousel {
  position: relative;
}

.image-carousel .carousel-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
  z-index: 1;
}

.image-carousel .carousel-img.is-active {
  opacity: 1;
  z-index: 2;
}

.image-carousel .carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}

.image-carousel .carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.25s ease;
}

.image-carousel .carousel-dot.is-active {
  background: var(--brass);
}

/* ---------- Contact / Form ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: start;
}

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

.contact-detail {
  margin-bottom: 1.4rem;
}

.contact-detail .label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  display: block;
  margin-bottom: 0.3rem;
}

form.enquiry {
  background: var(--white);
  border: 1px solid var(--stone-line);
  padding: clamp(1.6rem, 4vw, 2.6rem);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

.field {
  margin-bottom: 1.2rem;
}

.field label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75em 0.9em;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--ivory-soft);
  border: 1px solid var(--stone-line);
  border-radius: 2px;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brass);
  background: var(--white);
}

.form-note {
  font-size: 0.85rem;
  color: var(--charcoal-soft);
  margin-top: 1rem;
}

.hidden-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--charcoal);
  color: var(--stone);
  padding: 3rem 0 2rem;
}

.site-footer .footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #55483d;
}

.site-footer .brand-mark img { height: 34px; }

.footer-links {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: #8a8078;
  letter-spacing: 0.03em;
}

/* ---------- Utility ---------- */

.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.divider-motif {
  display: block;
  width: 34px;
  margin: 0 auto 1.6rem;
}
