/* ---------- COLOR PALETTE ---------- */
/* From your palette:
   #958C7D  Driftwood Taupe
   #FFFDFC  Ivory Mist
   #B5AA9B  Clay Beige
   #7F776A  Mushroom Gray
   #E8E2DA  Soft Blush
   #A39A8E  Dusty Olive
   #5E554C  Charcoal Umber
*/

:root {
  --taupe: #958c7d;
  --offwhite: #fffdfc;
  --mid-beige: #b5aa9b;
  --mushroom: #7f776a;
  --blush: #e8e2da;
  --olive-dust: #a39a8e;
  --umber: #5e554c;

  --bg: #fdf7f1;
  --bg-alt: transparent;
  --text-main: #2f261f;
  --text-muted: #6b6259;
  --accent: var(--taupe);
  --accent-soft: var(--blush);
  --border-subtle: rgba(149, 140, 125, 0.28);
  --shadow-soft: 0 12px 30px rgba(55, 42, 31, 0.15);

  --radius-lg: 18px;
  --radius-pill: 999px;

  --transition-fast: 180ms ease-out;
  --transition-med: 220ms ease;
}

/* ---------- RESET ---------- */

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Merriweather", serif;
  background: var(--bg); /* fallback background */
  color: var(--text-main);
  line-height: 1.55;
  position: relative;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 700;
}

p, li, a, button {
  font-weight: 300;
}


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

/* ---------- FULL-PAGE BACKGROUND: SWIRLS -> BOXES ---------- */

.bg-system {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;

  background:
    radial-gradient(circle at 0% 0%, var(--blush), transparent 55%),
    radial-gradient(circle at 80% 0%, var(--mid-beige), transparent 55%),
    radial-gradient(circle at 10% 100%, var(--olive-dust), transparent 55%),
    radial-gradient(circle at 100% 100%, #d2c8bb, transparent 60%),
    var(--bg);

  background-repeat: no-repeat;
  background-size: 220% 220%;
}

.bg-shape {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28vmin;
  height: 28vmin;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 20%, var(--blush), transparent 55%),
    radial-gradient(circle at 80% 80%, var(--taupe), transparent 60%),
    var(--mid-beige);
  opacity: 0.9;
  box-shadow: 0 16px 40px rgba(55, 42, 31, 0.3);
  transform: translate(-50%, -50%);
  /* no transitions – we’ll handle via JS to avoid stutter */
  will-change: transform, border-radius;
  mix-blend-mode: multiply;
}

@media (max-width: 768px) {
  .bg-shape {
    width: 24vmin;
    height: 24vmin;
    box-shadow: 0 12px 30px rgba(55, 42, 31, 0.25);
  }

  /* keep only the first 6 shapes on phones */
  .bg-shape:nth-child(n + 7) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-shape {
    transition: none;
  }
}

/* ---------- GLOBAL LAYOUT ---------- */

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

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: transparent; /* let background show through */
}

/* softer panel for alt sections */
.section-alt > .container {
  background: rgba(255, 253, 252, 0.18);
  border-radius: 22px;
  box-shadow: 0 14px 32px rgba(55, 42, 31, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 2.5rem;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.pricing-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1rem;
  font-style: italic;
}

/* ---------- CONTENT PANELS FOR READABILITY ---------- */

/* main sections sit on soft panels */
.section > .container {
  background: rgba(255, 253, 252, 0.4); /* more see-through */
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(55, 42, 31, 0.16);
  padding: 2.2rem 1.9rem;

  /* frosted glass vibes */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px); /* Safari */
  border: 1px solid rgba(255, 255, 255, 0.4);
  overflow: hidden; /* keep contents inside rounded corners */
}

/* hero content panel */
.hero-inner {
  background: rgba(255, 253, 252, 0.84);
  border-radius: 24px;
  box-shadow: 0 20px 46px rgba(55, 42, 31, 0.2);
  padding: 2.4rem 2rem;

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

/* don’t mess with header/footer containers */
.site-header .container,
.site-footer .container {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

/* ---------- HEADER & NAV ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255, 253, 252, 0.9);
  border-bottom: 1px solid rgba(149, 140, 125, 0.12);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-img {
  height: 56px;
  width: auto;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 600;
  font-size: 1.1rem;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* NAV */

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 0.2rem;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transition: width var(--transition-fast);
}

.main-nav a:hover {
  color: var(--text-main);
}

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

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0.35rem 0.2rem;
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--mushroom);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle .bar + .bar {
  margin-top: 4px;
}

/* ---------- HERO ---------- */

.hero {
  padding: 4.5rem 0 4rem;
  background: transparent;
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 3vw, 2.7rem);
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--mushroom);
  margin-bottom: 1rem;
}

.hero-body {
  font-size: 0.98rem;
  max-width: 38rem;
  margin-bottom: 1.4rem;
}

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

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

.hero-card {
  background: rgba(255, 253, 252, 0.96);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
}

.hero-card h2 {
  font-size: 1.25rem;
  margin-top: 0;
}

.hero-card p {
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.25rem;
  font-size: 0.9rem;
}

.hero-list li::before {
  content: "•";
  color: var(--accent);
  margin-right: 0.5rem;
}

.hero-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.text-link {
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* ---------- BUTTONS ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--transition-med),
    color var(--transition-med),
    box-shadow var(--transition-med),
    transform var(--transition-fast),
    border-color var(--transition-fast);
}

.btn.primary {
  background: var(--accent);
  color: var(--offwhite);
  box-shadow: 0 10px 20px rgba(94, 85, 76, 0.35);
}

.btn.primary:hover {
  background: var(--umber);
  transform: translateY(-1px);
}

.btn.ghost {
  background: rgba(255, 253, 252, 0.85);
  color: var(--accent);
  border-color: rgba(149, 140, 125, 0.5);
}

.btn.ghost:hover {
  background: var(--accent-soft);
  border-color: var(--taupe);
}

/* ---------- ABOUT ---------- */

.about-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.about-photo {
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-photo img {
  border-radius: 18px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 10px 25px rgba(55, 42, 31, 0.15);
  border: 2px solid rgba(149, 140, 125, 0.25);
}

.about-content {
  flex: 1.5;
}

.about-card {
  background: var(--offwhite);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 20px rgba(55, 42, 31, 0.07);
  margin-top: 2rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
}

.checklist li::before {
  content: "✓";
  color: var(--accent);
  margin-right: 0.4rem;
}

/* ---------- SERVICES ---------- */

.grid {
  display: grid;
  gap: 1.5rem;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.service-card {
  background: var(--offwhite);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.4rem 1.3rem;
  border: 1px solid rgba(181, 170, 155, 0.55);
  box-shadow: 0 8px 20px rgba(55, 42, 31, 0.08);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

.service-card h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

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

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(55, 42, 31, 0.16);
  border-color: var(--accent);
}

/* ---------- PROCESS ---------- */

.process-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.4rem;
}

.process-steps li {
  background: var(--offwhite);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.3rem;
  border: 1px dashed rgba(149, 140, 125, 0.6);
}

.process-steps h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.process-steps p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- TESTIMONIALS ---------- */

.testimonials-grid {
  display: grid;
  gap: 1.8rem;
}

.testimonial-card {
  background: var(--taupe);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.7rem;
  box-shadow: 0 12px 26px rgba(55, 42, 31, 0.25);
}

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

.testimonial-author {
  margin: 0;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

/* ---------- GALLERY (before/after pairs) ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;   /* 1 column by default */
  gap: 2rem;
  justify-items: center;
}

@media (min-width: 800px) {
  .gallery-grid {
    grid-template-columns: 1fr;   /* always 1 per row */
  }

  .gallery-pair {
    max-width: 100%;  /* let pairs fill their grid cell */
  }
}

/* card that holds label + both images */
.gallery-pair {
  background: var(--offwhite);
  border-radius: 20px;
  border: 1px solid rgba(149, 140, 125, 0.35);
  box-shadow: 0 12px 28px rgba(55, 42, 31, 0.08);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
  max-width: 1100px;
}

/* label always on top, centered */
.gallery-label {
  width: 100%;
  margin: 0;
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: center;
}

/* wrapper around the before/after images */
.gallery-images {
  display: flex;
  flex-direction: row;     /* left → right */
  gap: 1.2rem;
  width: 100%;
}

/* each individual image container */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  flex: 1 1 320px;         /* try to sit side-by-side, but allowed to wrap */
}

/* the images themselves */
.gallery-item img {
  width: 100%;
  height: 640px;           /* nice big images on desktop */
  object-fit: cover;
  display: block;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.gallery-pair:hover {
  box-shadow: 0 16px 30px rgba(55, 42, 31, 0.14);
  transform: translateY(-2px);
}

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

/* badges (Before / After) */
.badge {
  position: absolute;
  top: 10px;
  left: 12px;
  padding: 0.26rem 0.65rem;
  background: rgba(255, 253, 252, 0.95);
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--mushroom);
  letter-spacing: 0.06em;
  font-weight: 600;
  border: 1px solid rgba(149, 140, 125, 0.4);
}

.badge-after {
  left: auto;
  right: 12px;
}

/* mobile tweaks */
@media (max-width: 700px) {
  .gallery-pair {
    max-width: 100%;
    padding: 0.8rem;
  }

  .gallery-images {
    flex-direction: column;  /* stack vertically on small screens */
  }

  .gallery-item img {
    height: auto;
    max-height: 680px;
  }
}

/* hide extra gallery pairs when JS adds this class */
.gallery-pair.is-hidden {
  display: none;
}

/* fade-in animation for newly shown pairs */
@keyframes galleryFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-pair.fade-in {
  animation: galleryFadeIn 0.35s ease-out;
}

/* center the Show More / Show Less button */
.gallery-toggle-wrapper {
  margin-top: 1.5rem;
  text-align: center;
}



/* ---------- CONTACT ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.contact-options,
.contact-form-card {
  background: rgba(255, 253, 252, 0.82);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(149, 140, 125, 0.35);
  box-shadow: 0 12px 28px rgba(55, 42, 31, 0.12);
  padding: 1.6rem 1.8rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.contact-subheading {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--mushroom);
}

.contact-text {
  margin: 0 0 1.3rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.contact-buttons {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.3rem;
}

.contact-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(149, 140, 125, 0.5);
  background: rgba(255, 253, 252, 0.88);
  color: var(--text-main);
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--transition-med),
    color var(--transition-med),
    box-shadow var(--transition-med),
    transform var(--transition-fast),
    border-color var(--transition-fast);
}

.contact-btn-label {
  font-weight: 600;
}

.contact-btn-detail {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-btn-primary {
  background: var(--accent);
  color: var(--offwhite);
  border-color: var(--accent);
  box-shadow: 0 10px 22px rgba(94, 85, 76, 0.35);
}

.contact-btn-primary .contact-btn-detail {
  color: rgba(255, 253, 252, 0.9);
}

.contact-btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  box-shadow: 0 10px 22px rgba(55, 42, 31, 0.18);
}

.contact-btn-primary:hover {
  background: var(--umber);
}

/* contact form */

.contact-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-field label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--mushroom);
}

.form-field input,
.form-field textarea {
  font-family: inherit;
  font-size: 0.92rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(149, 140, 125, 0.6);
  background: rgba(255, 253, 252, 0.95);
  color: var(--text-main);
  outline: none;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(107, 98, 89, 0.7);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(149, 140, 125, 0.4);
  background: #ffffff;
}

.form-submit-btn {
  margin-top: 0.4rem;
  width: fit-content;
}

/* responsive layout for contact */

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

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

  .contact-options,
  .contact-form-card {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 1.4rem 1rem;
  }
}

/* ---------- FOOTER ---------- */

.site-footer {
  border-top: 1px solid rgba(149, 140, 125, 0.16);
  padding: 1rem 0 1.4rem;
  background: transparent;
}

.footer-inner {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .about-layout {
    flex-direction: column;
    align-items: center;
  }

  .main-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: rgba(255, 253, 252, 0.98);
    border-bottom: 1px solid rgba(149, 140, 125, 0.2);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
  }

  .main-nav ul {
    flex-direction: column;
    padding: 0.6rem 1.5rem 1rem;
  }

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

  .nav-toggle {
    display: block;
  }

  .section > .container {
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(55, 42, 31, 0.16);
    padding: 1.6rem 1.4rem;
  }

  .hero-inner {
    border-radius: 18px;
    padding: 1.8rem 1.4rem;
    box-shadow: 0 14px 30px rgba(55, 42, 31, 0.2);
  }
}

@media (max-width: 600px) {
  .section > .container {
    padding: 1.2rem 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 3.7rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (min-width: 900px) {
  .about-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    align-items: center;
    gap: 3rem;
    min-height: 80vh;
  }

  .about-photo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
  }

  .about-photo img {
    max-width: 420px;
    height: auto;
  }

  .about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
  }
}

