/* ===== The Curious Fox — styles ===== */
:root {
  --ink:      #23201c;      /* deep warm charcoal */
  --ink-soft: #4a453d;
  --cream:    #f7f2e9;      /* warm paper */
  --cream-2:  #efe7d7;
  --rust:     #c05a2b;      /* fox accent */
  --rust-dk:  #a2481f;
  --sage:     #6d7a5e;      /* secondary */
  --line:     #ded3bf;
  --white:    #fffdf8;
  --shadow:   0 18px 50px -20px rgba(35,32,28,.35);
  --radius:   14px;
  --maxw:     1200px;
  --ease:     cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Jost', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; line-height: 1.1; color: var(--ink); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.eyebrow {
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--rust); font-weight: 600; margin-bottom: .9rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: .95rem 1.9rem; border-radius: 50px;
  font-weight: 500; font-size: .98rem; letter-spacing: .02em;
  cursor: pointer; border: 1.5px solid transparent; transition: all .3s var(--ease);
}
.btn-primary { background: var(--rust); color: var(--white); }
.btn-primary:hover { background: var(--rust-dk); transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(192,90,43,.6); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }
.btn-block { width: 100%; text-align: center; }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: all .35s var(--ease);
  background: transparent;
}
.site-header.scrolled {
  background: rgba(247,242,233,.92); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-logo { height: 50px; width: auto; transition: height .3s var(--ease); }
.brand-text {
  font-family: 'Fraunces', serif; font-size: 1.25rem; font-weight: 600;
  letter-spacing: .01em; color: var(--ink);
}
.hero-visible .brand-text, .hero-visible .brand-logo { }
.nav-menu { list-style: none; display: flex; align-items: center; gap: 2rem; }
.nav-menu a { font-size: .95rem; font-weight: 500; letter-spacing: .02em; position: relative; }
.nav-menu a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--rust); transition: width .3s var(--ease);
}
.nav-menu a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--ink); color: var(--cream); padding: .55rem 1.3rem; border-radius: 50px;
  transition: background .3s var(--ease);
}
.nav-cta:hover { background: var(--rust); }
.nav-toggle { display: none; background: none; border: 0; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); transition: all .3s var(--ease); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 6rem 1.5rem 4rem; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(160deg, rgba(247,242,233,.90) 0%, rgba(239,231,215,.86) 55%, rgba(35,32,28,.55) 100%),
    url('images/hero.jpg') center/cover no-repeat;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Ccircle cx='30' cy='30' r='1' fill='%23231f1a' opacity='0.04'/%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.hero-logo {
  height: 168px; width: auto; margin: 0 auto 1.6rem; display: block;
  filter: drop-shadow(0 6px 14px rgba(247,242,233,.7));
  animation: floatIn 1s var(--ease) both;
}
.hero-eyebrow {
  font-size: .82rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--sage); font-weight: 600; margin-bottom: 1.2rem;
  animation: floatIn 1s var(--ease) .1s both;
}
.hero-title {
  font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 500; letter-spacing: -.01em;
  margin-bottom: 1.4rem; animation: floatIn 1s var(--ease) .2s both;
}
.hero-title br { }
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--ink-soft); max-width: 560px;
  margin: 0 auto 2.4rem; animation: floatIn 1s var(--ease) .3s both;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; animation: floatIn 1s var(--ease) .4s both; }
@keyframes floatIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.scroll-cue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border: 2px solid var(--ink-soft); border-radius: 20px;
}
.scroll-cue span {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 4px; background: var(--rust);
  animation: scrollDot 1.6s infinite;
}
@keyframes scrollDot { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 80% { opacity: 0; top: 24px; } 100% { opacity: 0; } }

/* ===== Marquee strip ===== */
.strip { background: var(--ink); color: var(--cream); padding: 1rem 0; overflow: hidden; }
.strip-track {
  display: flex; gap: 2rem; white-space: nowrap; width: max-content;
  animation: marquee 28s linear infinite;
  font-family: 'Fraunces', serif; font-style: italic; font-size: 1.35rem;
}
.strip-track span { opacity: .9; }
.strip-track span:nth-child(even) { color: var(--rust); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Sections shared ===== */
section { padding: clamp(4rem, 9vw, 8rem) 1.5rem; }
.section-head { max-width: 720px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 1rem; }
.section-lead { color: var(--ink-soft); font-size: 1.1rem; }
.section-lead a { color: var(--rust); text-decoration: underline; text-underline-offset: 3px; }

/* ===== About ===== */
.about { background: var(--white); }
.about-grid {
  max-width: var(--maxw); margin: 0 auto; display: grid;
  grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.about-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/5; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-media.placeholder { background: linear-gradient(135deg, var(--cream-2), var(--sage)); }
.about-media.placeholder img { display: none; }
.about-media.placeholder::after {
  content: 'Your photo here'; position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; color: var(--white); font-family: 'Fraunces', serif; font-style: italic; font-size: 1.2rem;
}
.about-badge {
  position: absolute; bottom: 1.2rem; left: 1.2rem; background: var(--rust); color: var(--white);
  padding: .5rem 1.1rem; border-radius: 50px; font-size: .82rem; font-weight: 500; letter-spacing: .05em;
}
.about-text h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 1.4rem; }
.about-text p { color: var(--ink-soft); margin-bottom: 1.1rem; }
.about-points { list-style: none; margin-top: 1.8rem; display: grid; gap: .8rem; }
.about-points li { padding-left: 1.9rem; position: relative; font-weight: 500; }
.about-points li::before {
  content: '✦'; position: absolute; left: 0; color: var(--rust); font-size: 1.1rem;
}

/* ===== Categories ===== */
.cat-grid {
  max-width: var(--maxw); margin: 0 auto; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
}
.cat-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem 1.8rem; text-align: center; transition: all .35s var(--ease);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.cat-icon { font-size: 2.4rem; display: block; margin-bottom: 1rem; }
.cat-card h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.cat-card p { color: var(--ink-soft); font-size: .98rem; }

/* ===== Gallery ===== */
.gallery-section { background: var(--white); }
.gallery {
  max-width: var(--maxw); margin: 0 auto;
  columns: 3; column-gap: 1.2rem;
}
.gallery-item {
  break-inside: avoid; margin-bottom: 1.2rem; border-radius: var(--radius); overflow: hidden;
  position: relative; cursor: pointer; box-shadow: 0 6px 20px -12px rgba(35,32,28,.4);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.gallery-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .cap {
  position: absolute; inset: auto 0 0 0; padding: 2rem 1.2rem .9rem;
  background: linear-gradient(transparent, rgba(35,32,28,.85));
  color: var(--cream); opacity: 0; transform: translateY(10px); transition: all .35s var(--ease);
  font-size: .95rem; font-weight: 500;
}
.gallery-item:hover .cap { opacity: 1; transform: translateY(0); }
.gallery-empty {
  text-align: center; color: var(--ink-soft); font-style: italic;
  padding: 3rem 1rem; font-family: 'Fraunces', serif; font-size: 1.15rem;
}

/* ===== Visit ===== */
.visit { background: var(--ink); color: var(--cream); }
.visit .eyebrow { color: #e59468; }
.visit-grid {
  max-width: var(--maxw); margin: 0 auto; display: grid;
  grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch;
}
.visit-info h2 { color: var(--cream); font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 1.2rem; }
.visit-lead { color: #cbc3b4; margin-bottom: 2.2rem; }
.visit-block { margin-bottom: 2rem; }
.visit-block h3 { color: var(--cream); font-size: 1.3rem; margin-bottom: .7rem; }
.visit-block address { font-style: normal; color: #cbc3b4; line-height: 1.9; }
.visit-link { color: #e59468; font-weight: 500; display: inline-block; margin-top: .6rem; }
.visit-link:hover { text-decoration: underline; }
.hours { width: 100%; max-width: 340px; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: .55rem 0; border-bottom: 1px solid rgba(247,242,233,.14); font-weight: 400; }
.hours th { color: var(--cream); font-family: inherit; }
.hours td { color: #cbc3b4; text-align: right; }
.hours td.closed { color: #9a8f7e; font-style: italic; }
.visit-map { border-radius: var(--radius); overflow: hidden; min-height: 420px; box-shadow: var(--shadow); }
.visit-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(.2) contrast(1.05); }

/* ===== Contact ===== */
.contact { background: var(--cream); }
.contact-grid {
  max-width: 1050px; margin: 0 auto; display: grid;
  grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
.contact-intro h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 1.2rem; }
.contact-intro > p { color: var(--ink-soft); margin-bottom: 1.6rem; }
.contact-details { list-style: none; margin-bottom: 2rem; display: grid; gap: .7rem; }
.contact-details li { display: flex; align-items: center; gap: .8rem; font-weight: 500; }
.contact-details .cd-ico {
  width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 50%;
  color: var(--rust); font-size: 1rem;
}
.contact-details a { transition: color .25s var(--ease); }
.contact-details a:hover { color: var(--rust); }
.contact-social p { font-weight: 500; margin-bottom: 1rem; }
.social-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.social {
  display: inline-flex; align-items: center; gap: .6rem; padding: .75rem 1.3rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 50px;
  font-weight: 500; transition: all .3s var(--ease);
}
.social svg { width: 20px; height: 20px; fill: var(--ink); transition: fill .3s var(--ease); }
.social:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); transform: translateY(-2px); }
.social:hover svg { fill: var(--cream); }

.contact-form {
  background: var(--white); padding: clamp(1.6rem, 3vw, 2.6rem); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.field { margin-bottom: 1.2rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: .45rem; }
.field label .opt { color: var(--ink-soft); font-weight: 400; }
.field input, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 1rem; color: var(--ink); background: var(--cream);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--rust); background: var(--white); }
.field textarea { resize: vertical; }
.form-status { margin-top: 1rem; font-size: .95rem; font-weight: 500; text-align: center; min-height: 1.2em; }
.form-status.ok { color: var(--sage); }
.form-status.err { color: var(--rust); }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #cbc3b4; padding: 4rem 1.5rem 2rem; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(247,242,233,.12);
}
.footer-logo { height: 92px; width: auto; margin-bottom: 1rem; }
.footer-brand p { line-height: 1.7; }
.footer-col h4 { color: var(--cream); font-size: 1.05rem; margin-bottom: 1rem; font-weight: 500; }
.footer-col a, .footer-col p { display: block; color: #cbc3b4; margin-bottom: .5rem; transition: color .25s var(--ease); }
.footer-col a:hover { color: #e59468; }
.footer-base {
  max-width: var(--maxw); margin: 1.5rem auto 0; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: .5rem; font-size: .85rem; color: #9a8f7e;
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(20,18,15,.94);
  display: none; align-items: center; justify-content: center; padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 82vh; border-radius: 8px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); }
.lightbox-close { position: absolute; top: 1.2rem; right: 1.6rem; background: none; border: 0; color: var(--cream); font-size: 2.6rem; cursor: pointer; line-height: 1; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(247,242,233,.1);
  border: 0; color: var(--cream); font-size: 2.4rem; cursor: pointer; width: 54px; height: 54px;
  border-radius: 50%; transition: background .25s var(--ease);
}
.lightbox-nav:hover { background: var(--rust); }
.lightbox-nav.prev { left: 1.4rem; }
.lightbox-nav.next { right: 1.4rem; }
.lightbox-caption { position: absolute; bottom: 1.4rem; left: 0; right: 0; text-align: center; color: var(--cream); font-size: 1rem; }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .gallery { columns: 2; }
  .about-grid, .visit-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { aspect-ratio: 16/11; }
  .visit-map { min-height: 320px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; inset: 0 0 auto 0; top: 0; flex-direction: column; background: var(--cream);
    padding: 6rem 2rem 2rem; gap: 1.5rem; transform: translateY(-100%); transition: transform .4s var(--ease);
    box-shadow: var(--shadow); height: auto;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .gallery { columns: 1; }
  .cat-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-logo { height: 100px; }
  .brand-text { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
