/* =============================================
   CAMEO CIRENCESTER — Site Styles
   Aesthetic: Refined boutique, warm & elegant
   ============================================= */

:root {
  --color-cream:    #f7f3ed;
  --color-warm:     #ede6db;
  --color-sand:     #d4c9b8;
  --color-text:     #3a352e;
  --color-muted:    #7a7265;
  --color-accent:   #8b6f5c;
  --color-accent-d: #6e573f;
  --color-white:    #fff;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', 'Helvetica Neue', sans-serif;

  --header-h: 72px;
  --max-w: 1200px;
  --gap: clamp(1.5rem, 4vw, 3rem);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-accent-d);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--color-text); }

address { font-style: normal; }

/* ---- HEADER ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247, 243, 237, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-sand);
  height: var(--header-h);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-text);
}
.logo:hover { color: var(--color-accent-d); }

.main-nav {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  position: relative;
  padding-bottom: 2px;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-text);
}
.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--color-text);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { bottom: 0; }

.menu-toggle.open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* ---- HERO ---- */
.hero {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 400px;
  max-height: 700px;
  margin-top: var(--header-h);
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(58, 53, 46, 0.1) 0%,
    rgba(58, 53, 46, 0.45) 100%
  );
}

.hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--gap);
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--color-white);
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* ---- ABOUT ---- */
.about {
  padding: clamp(3rem, 8vw, 6rem) var(--gap);
}

.about-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about-lead {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--color-accent-d);
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--color-muted);
  font-size: 1.05rem;
}

/* ---- CAROUSEL ---- */
.carousel-section {
  padding: 0 var(--gap) clamp(3rem, 8vw, 5rem);
}

.carousel {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
}

.carousel-slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 8px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(247, 243, 237, 0.85);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--color-text);
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.carousel-btn:hover {
  background: var(--color-white);
  transform: translateY(-50%) scale(1.05);
}

.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 1rem 0;
}

.carousel-dots .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-sand);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.carousel-dots .dot.active {
  background: var(--color-accent);
  transform: scale(1.3);
}

/* ---- VISIT CTA (homepage) ---- */
.visit-cta {
  background: var(--color-warm);
  padding: clamp(3rem, 8vw, 5rem) var(--gap);
  text-align: center;
}

.visit-cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.visit-cta h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
}

.visit-cta address {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.visit-details {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.visit-details strong {
  color: var(--color-text);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

/* ---- PAGE HEADER (inner pages) ---- */
.page-header {
  margin-top: var(--header-h);
  padding: clamp(3rem, 8vw, 5rem) var(--gap) clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3rem);
}

/* ---- GALLERY ---- */
.gallery {
  padding: 0 var(--gap) clamp(3rem, 8vw, 5rem);
}

.gallery-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
  filter: brightness(1.05);
}

/* ---- LIGHTBOX ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(30, 28, 24, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.lightbox.visible {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--color-cream);
  font-size: 2rem;
  cursor: pointer;
  padding: 12px;
  transition: opacity 0.2s;
}

.lightbox-close { top: 1rem; right: 1.5rem; font-size: 2.5rem; }
.lightbox-prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 0.6; }

/* ---- VISIT PAGE ---- */
.visit-page {
  padding: 0 var(--gap) clamp(3rem, 8vw, 5rem);
}

.visit-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.visit-info address {
  font-size: 1.1rem;
  line-height: 1.9;
  margin-bottom: 2rem;
}

.visit-info h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
  color: var(--color-accent-d);
}

.visit-info > div {
  margin-bottom: 1.5rem;
}

.visit-map iframe {
  width: 100%;
  border-radius: 8px;
}

.map-note {
  margin-top: 0.5rem;
  color: var(--color-muted);
}

/* ---- NEWSLETTER ---- */
.newsletter-page {
  padding: 0 var(--gap) clamp(4rem, 10vw, 7rem);
  text-align: center;
}

.newsletter-inner {
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-inner p {
  color: var(--color-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.newsletter-form-wrap {
  display: flex;
  gap: 0;
  border: 1px solid var(--color-sand);
  border-radius: 6px;
  overflow: hidden;
  background: var(--color-white);
}

.newsletter-form-wrap input[type="email"] {
  flex: 1;
  border: none;
  padding: 0.9rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  background: transparent;
  color: var(--color-text);
}

.newsletter-form-wrap input::placeholder {
  color: var(--color-sand);
}

.newsletter-form-wrap button {
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  padding: 0.9rem 1.8rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-form-wrap button:hover {
  background: var(--color-accent-d);
}

.form-message {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.form-message.success { color: #4a7c59; }
.form-message.error { color: #9c5040; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--color-text);
  color: var(--color-sand);
  padding: clamp(2rem, 5vw, 3.5rem) var(--gap);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-cream);
}

.footer-inner a {
  color: var(--color-sand);
}
.footer-inner a:hover {
  color: var(--color-cream);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(247, 243, 237, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-sand);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
  }

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

  .main-nav a {
    padding: 0.8rem 1rem;
    width: 100%;
    text-align: center;
  }

  .hero { height: 50vh; min-height: 300px; }

  .carousel-slide img { height: 300px; }

  .visit-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ---- UTILITY: fade-in animation ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.about-inner,
.visit-cta-inner,
.newsletter-inner {
  animation: fadeUp 0.8s ease-out both;
}
