/* =========================================================================
   Twiddle Feet Pedicure — Modern Stylesheet
   Theme: professional, clean, clinical
   Palette: #4A463D (dark) · #736C5E (accent) · #9C9380 (tint)
   ========================================================================= */

/* --- Design tokens ------------------------------------------------------- */
:root {
  /* Base palette */
  --dark:       #4A463D;   /* deep taupe */
  --dark-2:     #5C5649;   /* lighter shade of dark */
  --accent:     #736C5E;   /* medium taupe-brown */
  --accent-2:   #8A8172;   /* lighter accent */
  --tint:       #9C9380;   /* warm grey-taupe */
  --tint-2:     #B8B0A0;   /* lighter tint */

  /* Surfaces */
  --paper:      #F6F4F1;   /* very light warm paper */
  --paper-2:    #EDE9E2;   /* slightly deeper warm white */
  --white:      #FFFFFF;

  /* Text */
  --ink:        #2E2B26;   /* near-black taupe */
  --ink-soft:   #5A554C;   /* medium text */
  --on-dark:    #F0ECE6;   /* light text on dark surfaces */

  /* UI */
  --border:     #D9D3C8;
  --shadow:     0 6px 24px rgba(74, 70, 61, 0.12);
  --shadow-sm:  0 2px 10px rgba(74, 70, 61, 0.10);
  --radius:     10px;
  --radius-lg:  16px;
  --maxw:       1080px;
  --transition: 0.25s ease;
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: "Open Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover, a:focus { color: var(--dark); }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
  letter-spacing: -0.01em;
}

ul { list-style: none; }

/* --- Layout shell --------------------------------------------------------- */
.site-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

main { flex: 1 0 auto; }

/* --- Header / Navigation -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}

.logo a {
  display: inline-flex;
  width: 160px;
  align-items: center;
  justify-content: center;
  align-self: center;
  padding: 6px 0px;
  border-radius: 6px;
}
.logo img {
  height: auto;
  max-height: 70px;
  width: auto;
  vertical-align: middle;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}
.nav-menu a:hover,
.nav-menu a:focus { color: var(--dark); background: var(--paper-2); }
.nav-menu a.active {
  color: var(--white);
  background: var(--accent);
}
.nav-menu a.active:hover,
.nav-menu a.active:focus { background: var(--dark); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle .bar,
.nav-toggle .bar::before,
.nav-toggle .bar::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: transform var(--transition), opacity var(--transition);
  position: relative;
}
.nav-toggle .bar::before { position: absolute; top: -7px; }
.nav-toggle .bar::after  { position: absolute; top: 7px; }
.nav-toggle.open .bar { background: transparent; }
.nav-toggle.open .bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .bar::after  { transform: translateY(-7px) rotate(-45deg); }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              transform var(--transition), box-shadow var(--transition);
}
.btn:hover { box-shadow: var(--shadow-sm); }
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--ink); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--dark); }
.btn-dark {
  background: var(--dark);
  color: var(--on-dark);
}
.btn-dark:hover, .btn-dark:focus { background: var(--dark-2); color: var(--on-dark); }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--on-dark);
  overflow: hidden;
  /* background: var(--dark); */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 64px 24px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 14px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.hero p {
  font-size: 1.1rem;
  color: #f4f1ec;
  margin-bottom: 26px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

/* --- Placeholder images --------------------------------------------------- */
/* Background with text describing the intended image context (per spec). */
.placeholder {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--dark);
  font-weight: 600;
  background-color: var(--tint-2);
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.18) 0 12px, transparent 12px 24px);
  border: 1px dashed var(--accent-2);
  border-radius: var(--radius);
  overflow: hidden;
}
.placeholder__label {
  position: relative;
  z-index: 1;
  padding: 18px 26px;
  background: rgba(246, 244, 241, 0.86);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  line-height: 1.4;
}
.placeholder__label small {
  display: block;
  font-weight: 500;
  color: var(--ink-soft);
  margin-top: 4px;
  font-size: 0.8rem;
}
/* Banner-sized placeholder */
.placeholder--hero { min-height: 420px; }
/* Real image loaded into a placeholder: drop placeholder chrome and hide label. */
.placeholder[style*="background-image"] {
  background-color: transparent;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 0;
  border-radius: 0;
}
.hero[style*="background-image"] {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}
.hero[style*="background-image"] .placeholder {
  display: none;
}
@media (max-width: 640px) {
  .hero[style*="background-image"] {
    min-height: 300px;
  }
}
/* Content image placeholder */
.placeholder--content { min-height: 320px; }
/* Card / thumbnail placeholder */
.placeholder--thumb { min-height: 190px; }

/* --- Sections ------------------------------------------------------------- */
.section {
  padding: 64px 0;
}
.section--muted { background: var(--paper-2); }
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 10px;
}
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

/* --- Intro / two-column --------------------------------------------------- */
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.intro__text h2 { margin-bottom: 16px; }
.intro__text p { color: var(--ink-soft); margin-bottom: 14px; }
.intro__img { align-self: start; }
.intro__photo {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

/* --- Service cards -------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card__media { background: var(--tint-2); }
.card__photo {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  display: block;
}
.card__body { padding: 22px; }
.card__body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card__body p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 14px; }
.card__body ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: var(--ink);
}
.card__body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* --- Feature list (bullet paragraphs) ------------------------------------- */
.features { max-width: 760px; }
.features li {
  position: relative;
  list-style: none;
  padding-left: 30px;
  margin-bottom: 14px;
  color: var(--ink);
}
.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
}
.features b { color: var(--dark); }

/* --- Pricing table -------------------------------------------------------- */
.pricelist {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border-collapse: separate;
}
.pricelist thead th {
  color: var(--dark);
  padding: 18px 20px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
}
.pricelist .price-sub {
  color: var(--accent);
  font-weight: 700;
  padding: 0px 20px;
  text-align: left;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.pricelist td {
  padding: 0px 20px;
  vertical-align: middle;
}
.pricelist .service-name { text-align: left; color: var(--ink); }
.pricelist .service-price {
  text-align: right;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
  width: 1%;
  white-space: nowrap;
}
.pricelist .row-gap td { padding: 6px 20px; border: 0; height: 10px; }
.pricelist-warning {
  max-width: 720px;
  margin: 22px auto 0;
  background: var(--paper-2);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.pricelist-warning b { color: var(--dark); }

/* --- Contact -------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.contact-info { color: var(--ink); }
.contact-info h3 { margin-bottom: 14px; font-size: 1.2rem; }
.contact-info dl { margin-bottom: 22px; }
.contact-info dt {
  font-weight: 700;
  color: var(--dark);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 14px;
}
.contact-info dd { color: var(--ink-soft); }
.contact-info dd a { color: var(--accent); }

.open-table { width: 100%; border-collapse: collapse; }
.open-table td {
  padding: 9px 6px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-soft);
}
.open-table td.day { font-weight: 600; color: var(--ink); }
.open-table td.closed { color: var(--accent-2); font-style: italic; }

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16 / 9;
}
.map-wrap iframe { width: 100%; height: 100%; display: block; }

/* Borderless, full-width map section (contact page, bottom) */
.map-full {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}
.map-full .map-full-inner {
  width: 100%;
  height: 400px;
  overflow: hidden;
  border: 0;
  box-shadow: none;
}
.map-full .map-full-inner iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.alert {
  background: var(--paper-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 28px;
  color: var(--ink);
  font-weight: 600;
}

/* --- Privacy -------------------------------------------------------------- */
.privacy h2 {
  font-size: 1.35rem;
  color: var(--dark);
  margin: 28px 0 10px;
}
.privacy h1 { font-size: 2rem; margin-bottom: 18px; }
.privacy p { color: var(--ink-soft); margin-bottom: 14px; }
.privacy ul { margin: 0 0 16px 20px; list-style: disc; }
.privacy ul li { color: var(--ink-soft); margin-bottom: 6px; }

/* --- CTA banner ----------------------------------------------------------- */
.cta {
  display: none;
  background: var(--dark);
  color: var(--on-dark);
  text-align: center;
}
.cta h2 { color: var(--white); margin-bottom: 12px; }
.cta p { color: var(--on-dark); opacity: 0.9; margin-bottom: 24px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta .btn-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  background: var(--dark);
  color: var(--on-dark);
  padding: 40px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-grid h4 { color: var(--white); margin-bottom: 12px; font-size: 1rem; }
.footer-grid p,
.footer-grid li,
.footer-grid a { color: var(--on-dark); opacity: 0.85; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--white); opacity: 1; }
.footer-grid ul li { margin-bottom: 7px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 18px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--on-dark);
  opacity: 0.75;
}

/* --- Reveal-on-scroll (JS enhanced) --------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  /* transform: none; */
}

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; gap: 28px; }
  .intro__img { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.35s ease, opacity 0.35s ease;
  }
  .nav-menu.open {
    max-height: 460px;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-menu a { padding: 14px 16px; border-radius: 0; }
  .nav-menu a:hover { background: var(--paper-2); }
 
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .section { padding: 46px 0; }
  .hero { min-height: 360px; }
  .hero__inner { padding: 52px 20px; }
}

@media (max-width: 480px) {
  .logo img { height: 46px; }
  .hero__inner { padding: 44px 18px; }
  .cta .btn-group { flex-direction: column; align-items: center; }
  .cta .btn { width: 100%; }
}

/* --- Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .reveal.is-visible { opacity: 1; transform: none; }
}
