/*
  Recreations by Colleen Rita — site-wide stylesheet
  Shared by index.html and privacy.html.
  Section-specific rules (gallery, modal, policy page, etc.) simply have
  no effect on pages that don't contain those elements/classes.
*/

:root {
  --pastel-blue: #BFE3F0;
  --pastel-blue-deep: #8FC7DE;
  --pastel-green: #C9EAD3;
  --pastel-green-deep: #8FCBA3;
  --pastel-yellow: #FCEFAF;
  --pastel-yellow-deep: #F3D670;
  --cream: #FDFBF5;
  --ink: #4A463F;
  --ink-soft: #5C574A; /* darkened from original pastel palette for 4.5:1+ text contrast */
  --radius: 18px;
  --shadow: 0 8px 24px rgba(74, 70, 63, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Quicksand', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, .logo {
  font-family: 'Harrington', 'Berkshire Swash', cursive;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin: 0 0 0.4em;
}

/* Generic h1 sizing for simple pages; .hero h1 (higher specificity) overrides this on the homepage */
h1 {
  font-size: clamp(2rem, 6vw, 2.8rem);
  text-align: center;
}

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

a { color: inherit; }

/* Visible keyboard focus indicator for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link: hidden until a keyboard user tabs to it */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--pastel-yellow-deep);
  color: var(--ink);
  padding: 14px 22px;
  font-weight: 700;
  border-radius: 0 0 10px 0;
  z-index: 1000;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--pastel-blue);
  box-shadow: 0 2px 10px rgba(74,70,63,0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 20px;
  min-height: 64px;
  max-width: 1100px;
  margin: 0 auto;
}

/* align-items: center on .nav-wrap vertically centers the logo within the
   header row; min-height above gives it enough room for that to be visible */
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  color: var(--ink);
  text-decoration: none;
}

.logo .logo-main {
  font-size: clamp(1.5rem, 4.5vw, 2.1rem);
}

.logo .logo-sub {
  font-size: clamp(0.75rem, 2vw, 1rem);
  margin-top: 2px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

/* Pill-style "Back to Home" link used on secondary pages (e.g. Privacy Policy) */
.back-link {
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  min-width: 44px;
  min-height: 44px;
}

.menu-toggle span {
  width: 26px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
}

/* Hero (homepage) */
.hero {
  background: linear-gradient(160deg, var(--pastel-blue) 0%, var(--pastel-green) 100%);
  text-align: center;
  padding: 90px 20px 40px;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 7vw, 3.8rem);
  margin-bottom: 0.3em;
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto 2em;
}

.scroll-cue {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
}

.scroll-cue .chevron {
  font-size: 1.3rem;
  animation: bounce 1.8s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.btn {
  display: inline-block;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  text-decoration: none;
  background: var(--pastel-yellow-deep);
  color: var(--ink);
  padding: 14px 32px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.15s ease;
}

.btn:active { transform: scale(0.97); }

/* Section headings */
.section {
  padding: 70px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
}

.section-subtitle {
  text-align: center;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 auto 50px;
}

/* Gallery / Before-After Sliders */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
}

.compare-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding-bottom: 18px;
}

.compare-card h3 {
  font-size: 1.4rem;
  text-align: center;
  padding: 18px 10px 4px;
}

.compare-tag {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.compare-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  touch-action: pan-y;
}

.compare-slider .layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-weight: 700;
  font-size: 1rem;
  color: rgba(74,70,63,0.55);
}

.layer .icon { font-size: 3rem; margin-bottom: 6px; }

.img-before {
  background: linear-gradient(135deg, #d9d2c4, #b9b2a3);
}

.img-after {
  background: linear-gradient(135deg, var(--pastel-blue), var(--pastel-green), var(--pastel-yellow));
  clip-path: inset(0 50% 0 0);
}

.label {
  position: absolute;
  top: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255,255,255,0.85);
}

.label.before-label { left: 10px; }
.label.after-label { right: 10px; }

.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
  transform: translateX(-50%);
  pointer-events: none;
}

.slider-handle::after {
  content: '⇔';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  font-size: 0.9rem;
  color: var(--ink);
}

.slider-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

/* Give the keyboard-focused range input a visible ring even though it's visually transparent */
.slider-range:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: -3px;
}

.card-actions {
  padding: 16px 20px 0;
}

.info-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 26px;
  font-size: 0.9rem;
  background: var(--pastel-blue-deep);
}

/* More Info Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(74, 70, 63, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 300;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #fff;
  border-radius: var(--radius);
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 32px 28px 28px;
  position: relative;
  box-shadow: var(--shadow);
  transform: translateY(12px);
  transition: transform 0.2s ease;
}

.modal-overlay.open .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pastel-yellow);
  border: none;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-price {
  display: inline-block;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  background: var(--pastel-yellow);
  padding: 4px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.modal-desc {
  margin-bottom: 20px;
  color: var(--ink-soft);
}

.modal-gallery-label {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.modal-thumb {
  aspect-ratio: 1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
  color: rgba(74, 70, 63, 0.6);
  background: linear-gradient(135deg, var(--pastel-blue), var(--pastel-green), var(--pastel-yellow));
}

.modal-thumb .icon {
  font-size: 1.5rem;
  margin-bottom: 2px;
}

.modal-contact-btn {
  display: block;
  text-align: center;
}

/* Story strip */
.story {
  background: var(--pastel-yellow);
  text-align: center;
  padding: 60px 20px;
}

.story p {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Contact / Directions */
.contact {
  background: var(--pastel-green);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.contact-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}

.contact-card h3 { font-size: 1.6rem; }

.contact-detail {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.98rem;
}

.contact-detail .icon { font-size: 1.2rem; }

.map-embed {
  border: 0;
  width: 100%;
  height: 280px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.directions-btn {
  margin-top: 16px;
  width: 100%;
  text-align: center;
}

/* Footer (shared by all pages) */
footer {
  background: var(--pastel-blue-deep);
  color: var(--ink);
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9rem;
}

footer .social {
  margin-bottom: 10px;
}

footer .social a {
  margin: 0 10px;
  text-decoration: none;
  font-weight: 700;
}

footer .footer-links {
  margin-bottom: 12px;
  font-size: 0.85rem;
}

footer .footer-links a {
  margin: 0 10px;
  text-decoration: underline;
}

/* Mobile (homepage nav) */
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }

  #siteNav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--pastel-blue); box-shadow: var(--shadow); }
  #siteNav.open { display: block; }
  #siteNav ul { flex-direction: column; padding: 16px 24px; gap: 18px; }
  .menu-toggle { display: flex; }
}

/* Respect users who've asked for reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------- */
/* Privacy Policy page only                              */
/* ---------------------------------------------------- */

.policy-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 50px 20px 80px;
}

.effective-date {
  text-align: center;
  color: var(--ink-soft);
  margin-bottom: 40px;
  font-size: 0.95rem;
}

.policy-section {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px;
  margin-bottom: 22px;
}

.policy-section h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5em;
}

.policy-section p,
.policy-section li {
  color: var(--ink-soft);
}

.policy-section a {
  color: var(--pastel-blue-deep);
  font-weight: 600;
}

.policy-section ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.policy-section li { margin-bottom: 8px; }
