/* Roses of Woodrow — site styles */
:root {
  --rose-deep: #8a1c3b;
  --rose-warm: #c2455c;
  --rose-blush: #f4d3d7;
  --rose-cream: #faf3e9;
  --rose-leaf: #4a6b3e;
  --rose-leaf-dark: #2d4127;
  --rose-shadow: rgba(80, 30, 40, 0.18);
  --ink: #2a232a;
  --ink-soft: #5a4f56;
  --paper: #fdfaf5;
  --gold: #b58a4c;
  --serif: "Cormorant Garamond", "Apple Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--rose-deep); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--rose-warm); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: 0.01em; line-height: 1.18; margin: 0; }

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 250, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(138, 28, 59, 0.08);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}
.brand-mark {
  font-size: 28px;
  color: var(--rose-deep);
  transform: translateY(-2px);
}
.brand-title {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.brand-sub {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}
.site-nav a {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.site-nav a:hover { color: var(--rose-deep); }
.site-nav .admin-link {
  border: 1px solid rgba(138, 28, 59, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-nav .admin-link.subtle { border-color: rgba(0,0,0,0.1); color: var(--ink-soft); }

/* ---- Mobile nav (hamburger drawer) ---- */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(138, 28, 59, 0.25);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  padding: 0;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--rose-deep);
  border-radius: 2px;
  position: absolute;
  left: 11px;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 27px; }
body.nav-open .nav-toggle span:nth-child(1) { top: 20px; transform: rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { top: 20px; transform: rotate(-45deg); }
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 8, 12, 0.45);
  backdrop-filter: blur(2px);
  z-index: 49;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
body.nav-open .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  height: clamp(420px, 70vh, 720px);
  overflow: hidden;
  background: #2c1820;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.78);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.0) 30%, rgba(20,8,12,0.55) 100%),
    linear-gradient(90deg, rgba(20,8,12,0.45) 0%, rgba(20,8,12,0.0) 60%);
}
.hero-text {
  position: absolute;
  left: 0; right: 0; bottom: 8%;
  text-align: center;
  color: #fff;
  padding: 0 24px;
}
.hero-text h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 7vw, 96px);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 20px rgba(0,0,0,0.4);
  margin-bottom: 12px;
}
.hero-text p {
  font-size: clamp(15px, 1.3vw, 19px);
  max-width: 640px;
  margin: 0 auto;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  opacity: 0.95;
}
.hero-text .scroll-cue {
  margin-top: 28px;
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* ========== Intro ========== */
.intro {
  text-align: center;
  padding: 90px 24px 30px;
  max-width: 760px;
  margin: 0 auto;
}
.intro .eyebrow {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 16px;
}
.intro h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  margin-bottom: 22px;
}
.intro p {
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 22px);
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ========== Filters / counts ========== */
.gallery-meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 30px auto 24px;
  padding: 0 24px;
  max-width: 1240px;
  flex-wrap: wrap;
  gap: 12px;
}
.gallery-meta h3 {
  font-size: 26px;
  font-weight: 500;
}
.gallery-meta .count {
  color: var(--ink-soft);
  font-size: 14px;
  letter-spacing: 0.04em;
}
.color-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
}
.color-filter a {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.1);
  color: var(--ink-soft);
}
.color-filter a.is-active, .color-filter a:hover {
  background: var(--rose-deep);
  border-color: var(--rose-deep);
  color: white;
}

/* ========== Gallery grid ========== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  padding: 0 24px 80px;
  max-width: 1240px;
  margin: 0 auto;
}
.rose-card {
  position: relative;
  display: block;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 1 / 1;
  box-shadow: 0 1px 3px var(--rose-shadow);
  transition: transform .35s ease, box-shadow .35s ease;
}
.rose-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(80,30,40,0.22);
}
.rose-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.rose-card:hover img { transform: scale(1.06); }
.rose-card .label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 16px 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
  color: white;
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.02em;
  font-weight: 500;
}
.rose-card .label .sub {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  opacity: 0.9;
  margin-top: 4px;
}
.rose-card.featured::before {
  content: "★";
  position: absolute;
  top: 12px;
  right: 14px;
  color: var(--gold);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  font-size: 16px;
  z-index: 2;
}

/* ========== Rose detail page ========== */
.rose-detail {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 24px 80px;
}
.rose-detail .breadcrumb {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.rose-detail h1 {
  font-size: clamp(40px, 6vw, 68px);
  margin-bottom: 6px;
}
.rose-detail .variety {
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 26px;
  font-family: var(--serif);
  font-size: 19px;
}
.rose-detail .photo-frame {
  position: relative;
  margin: 0 0 32px;
  border-radius: 6px;
  overflow: hidden;
  background: #2c1820;
  box-shadow: 0 12px 40px rgba(80,30,40,0.20);
}
.rose-detail .photo-frame img {
  width: 100%;
  height: auto;
  display: block;
}
.rose-slide {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: #2c1820;
}
.rose-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #2c1820;
  opacity: 0;
  transition: opacity .5s ease;
}
.rose-slide img.is-active { opacity: 1; }
.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: background .2s ease;
  z-index: 2;
}
.slide-nav:hover { background: white; }
.slide-nav.prev { left: 14px; }
.slide-nav.next { right: 14px; }
.slide-dots {
  position: absolute;
  bottom: 14px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.slide-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
  transition: background .2s ease, transform .2s ease;
}
.slide-dots button.is-active { background: white; transform: scale(1.3); }

.rose-detail .description {
  font-family: var(--serif);
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.65;
  color: var(--ink);
  max-width: 720px;
  margin: 0 0 32px;
}
.rose-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding: 22px 0;
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 32px;
}
.rose-meta .key { display: block; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--rose-deep); margin-bottom: 4px; }
.rose-meta .val { font-family: var(--serif); font-size: 18px; color: var(--ink); }

.fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--rose-deep);
  color: var(--rose-deep);
  background: transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s ease;
}
.fav-btn:hover, .fav-btn.is-on {
  background: var(--rose-deep);
  color: white;
}
.fav-btn .heart::before { content: "♡"; }
.fav-btn.is-on .heart::before { content: "♥"; }

.neighbors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}
.neighbor {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 4px;
  background: white;
  box-shadow: 0 1px 3px var(--rose-shadow);
  color: var(--ink);
}
.neighbor:hover { box-shadow: 0 6px 14px rgba(80,30,40,0.18); }
.neighbor.next { flex-direction: row-reverse; text-align: right; }
.neighbor img { width: 64px; height: 64px; border-radius: 4px; object-fit: cover; }
.neighbor .arrow { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); }
.neighbor .name { font-family: var(--serif); font-size: 20px; }

/* ========== Comments ========== */
.comments {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.comments h3 { font-size: 28px; margin-bottom: 20px; }
.comment {
  padding: 18px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.comment .author { font-weight: 600; }
.comment .when { font-size: 12px; color: var(--ink-soft); margin-left: 8px; }
.comment p { margin: 6px 0 0; }
.comment-form {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}
.comment-form input, .comment-form textarea, .form input, .form textarea, .form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 4px;
  background: white;
  font: inherit;
  color: var(--ink);
}
.comment-form input:focus, .comment-form textarea:focus,
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--rose-deep);
  box-shadow: 0 0 0 3px rgba(138,28,59,0.12);
}
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--rose-deep);
  color: white;
  border: none;
  border-radius: 4px;
  font: inherit;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background .2s ease;
  text-align: center;
}
.btn:hover { background: var(--rose-warm); color: white; }
.btn-ghost {
  background: transparent;
  color: var(--rose-deep);
  border: 1px solid var(--rose-deep);
}
.btn-ghost:hover { background: var(--rose-deep); color: white; }

/* ========== Footer ========== */
.site-footer {
  background: linear-gradient(180deg, transparent 0%, rgba(138,28,59,0.04) 100%);
  border-top: 1px solid rgba(138,28,59,0.1);
  padding: 50px 0 40px;
  text-align: center;
  margin-top: 80px;
}
.site-footer .footer-line {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
}
.site-footer .footer-line .dot { color: var(--rose-deep); margin: 0 10px; }
.site-footer .footer-thin {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 8px;
}

/* ========== Forms / generic page ========== */
.page {
  max-width: 760px;
  margin: 60px auto;
  padding: 0 24px 60px;
}
.page h1 { font-size: clamp(36px, 4.4vw, 56px); margin-bottom: 16px; }
.page h2 { font-size: 26px; margin: 36px 0 14px; }
.page p, .page li { font-size: 17px; line-height: 1.7; color: var(--ink); }
.page p { margin: 0 0 16px; }
.form { display: grid; gap: 14px; max-width: 460px; }
.form label { font-size: 13px; letter-spacing: 0.06em; color: var(--ink-soft); }
.form .row { display: grid; gap: 6px; }
.form .row.two { grid-template-columns: 1fr 1fr; gap: 12px; }
.flash {
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
}
.flash.error { background: #fde7ec; color: #8a1c3b; border: 1px solid #f4c0cb; }
.flash.success { background: #e8f5e7; color: #2d4127; border: 1px solid #b9d6b3; }

/* ========== Admin ========== */
.admin-bar {
  background: var(--ink);
  color: white;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
}
.admin-bar::-webkit-scrollbar { height: 4px; }
.admin-bar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }
.admin-bar a { color: white; opacity: 0.85; }
.admin-bar a:hover { opacity: 1; }
.admin-bar .spacer { flex: 1; }
.admin-page { padding: 30px 24px 80px; max-width: 1200px; margin: 0 auto; }
.admin-page h1 { font-size: 36px; margin-bottom: 20px; }
.admin-table { width: 100%; border-collapse: collapse; background: white; border-radius: 4px; overflow: hidden; }
.admin-table th, .admin-table td { padding: 10px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid rgba(0,0,0,0.06); }
.admin-table th { background: rgba(0,0,0,0.04); font-weight: 600; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.admin-table img { width: 56px; height: 56px; border-radius: 4px; object-fit: cover; }
.admin-table .actions { display: flex; gap: 8px; }
.btn-sm { font-size: 12px; padding: 6px 12px; }
.btn-danger { background: #b3294e; }
.btn-danger:hover { background: #8a1c3b; }
.dropzone {
  border: 2px dashed rgba(138,28,59,0.3);
  border-radius: 6px;
  padding: 40px 24px;
  text-align: center;
  background: white;
  margin-bottom: 20px;
}
.dropzone.is-drag { border-color: var(--rose-deep); background: var(--rose-cream); }
.dropzone p { color: var(--ink-soft); margin: 8px 0 0; }
.dropzone input[type=file] { display: none; }
.upload-progress {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-soft);
  display: none;
}
.upload-progress.is-on { display: block; }

/* ========== Misc ========== */
.featured-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  padding: 30px 24px 0;
  max-width: 1240px;
  margin: 0 auto 40px;
}
.featured-strip .rose-card { aspect-ratio: 4/5; }
.section-title {
  text-align: center;
  font-size: 28px;
  margin: 60px 0 8px;
}
.section-sub {
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 30px;
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-header { position: relative; }
  .site-header .wrap { height: 64px; }
  .brand-sub { display: none; }
  .brand-title { font-size: 19px; }
  .brand-mark { font-size: 24px; }

  /* Drop-down menu directly under the header */
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 20px 14px;
    border-top: 1px solid rgba(138, 28, 59, 0.08);
    box-shadow: 0 14px 30px rgba(80, 30, 40, 0.12);

    /* Hidden state */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height .3s ease, opacity .2s ease, padding .2s ease;
    z-index: 55;
  }
  body.nav-open .site-nav {
    max-height: 80vh;
    opacity: 1;
    pointer-events: auto;
    overflow-y: auto;
    padding: 6px 20px 18px;
  }
  body.nav-open { overflow: hidden; }

  .site-nav a {
    display: block;
    padding: 14px 6px;
    font-size: 17px;
    font-family: var(--serif);
    color: var(--ink);
    border-bottom: 1px solid rgba(138, 28, 59, 0.08);
    letter-spacing: 0.02em;
  }
  .site-nav a:last-child { border-bottom: none; }
  .site-nav .admin-link {
    border: 1px solid rgba(138, 28, 59, 0.25);
    border-radius: 999px;
    margin-top: 10px;
    text-align: center;
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.18em;
    padding: 11px;
  }
  .site-nav .admin-link.subtle { border-color: rgba(0, 0, 0, 0.12); }

  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0 12px 60px; }
  .neighbors { grid-template-columns: 1fr; }
  .featured-strip { grid-template-columns: repeat(2, 1fr); padding: 20px 12px 0; }
  .gallery-meta { padding: 0 12px; }
}
@media (max-width: 380px) {
  .brand-title { font-size: 17px; }
}
