/* ========================================
   Windsor Coffee — Styles
   Palette: Plum (#6B2F5B) + Amber (#F5C518)
   Fonts: Playfair Display + DM Sans
======================================== */

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

:root {
  --plum: #6B2F5B;
  --plum-dark: #4A1F3E;
  --plum-light: #8B3D72;
  --plum-50: #FDF6EE;
  --plum-100: #F9E8E0;
  --plum-200: #F4D4C8;
  --amber: #F5C518;
  --amber-dark: #D4A50A;
  --amber-light: #FDE68A;
  --cream: #FDF6EE;
  --cream-dark: #F5EDE0;
  --text-dark: #2A1525;
  --text-mid: #5C3A52;
  --text-light: #8B6A7E;
  --white: #FFFFFF;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 2px 8px rgba(107, 47, 91, 0.08);
  --shadow-md: 0 4px 20px rgba(107, 47, 91, 0.12);
  --shadow-lg: 0 8px 40px rgba(107, 47, 91, 0.16);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253, 246, 238, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(107, 47, 91, 0.08);
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--plum);
}

.nav-logo-icon {
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-menu a {
  padding: 8px 16px;
  border-radius: var(--radius-xl);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-mid);
  transition: background var(--transition), color var(--transition);
}

.nav-menu a:hover {
  background: var(--plum-100);
  color: var(--plum);
}

.nav-cta {
  background: var(--plum) !important;
  color: var(--white) !important;
}

.nav-cta:hover {
  background: var(--plum-dark) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--plum);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--plum) 0%,
    var(--plum-light) 30%,
    var(--plum-dark) 60%,
    #3D1A30 100%
  );
  padding: 120px 24px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(245, 197, 24, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(139, 61, 114, 0.3) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(107, 47, 91, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 197, 24, 0.15);
  border: 1px solid rgba(245, 197, 24, 0.3);
  color: var(--amber);
  padding: 8px 20px;
  border-radius: var(--radius-xl);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 32px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-accent {
  color: var(--amber);
  font-style: italic;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--amber);
}

.hero-stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 80px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 1rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--amber);
  color: var(--text-dark);
  box-shadow: 0 4px 16px rgba(245, 197, 24, 0.3);
}

.btn-primary:hover {
  background: var(--amber-dark);
  box-shadow: 0 6px 24px rgba(245, 197, 24, 0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--plum);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  box-shadow: var(--shadow-md);
}

.btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* ---- SECTIONS ---- */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--plum);
  background: var(--plum-100);
  padding: 6px 16px;
  border-radius: var(--radius-xl);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.text-plum {
  color: var(--plum);
}

/* ---- FEATURES ---- */
.features {
  background: var(--cream);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(107, 47, 91, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--plum-100);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.card-body {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ---- ABOUT ---- */
.about {
  background: var(--plum-50);
}

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

.about-image-wrapper {
  position: relative;
}

.about-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.about-image-accent {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 120px;
  height: 120px;
  background: var(--amber);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.5;
}

.about-content {
  max-width: 520px;
}

.about-body {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.value-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.value-item strong {
  display: block;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.value-item span {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.5;
}

/* ---- GALLERY ---- */
.gallery {
  background: var(--cream);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.gallery-item--tall {
  grid-column: span 4;
  grid-row: span 2;
}

.gallery-item--wide {
  grid-column: span 8;
}

/* ---- CTA ---- */
.cta {
  background: var(--cream-dark);
  padding: 80px 0;
}

.cta-card {
  position: relative;
  background: linear-gradient(135deg, var(--plum) 0%, var(--plum-dark) 100%);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-content {
  position: relative;
  z-index: 1;
  padding: 64px 56px;
  max-width: 600px;
}

.cta-content .section-tag {
  background: rgba(245, 197, 24, 0.2);
  color: var(--amber);
}

.cta-content .section-title {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-body {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 40px;
}

.cta-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.cta-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.cta-detail strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--amber);
  margin-bottom: 2px;
}

.cta-detail span,
.cta-detail a {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta-detail a:hover {
  color: var(--amber);
  text-decoration: underline;
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-pattern {
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--plum-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-info h4,
.footer-newsletter h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-info p,
.footer-newsletter p {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 4px;
}

.footer-info a {
  color: var(--amber);
  transition: color var(--transition);
}

.footer-info a:hover {
  color: var(--amber-light);
}

.footer-newsletter-desc {
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.newsletter-input:focus {
  border-color: var(--amber);
  background: rgba(255, 255, 255, 0.12);
}

.newsletter-success {
  display: none;
  font-size: 0.85rem;
  color: var(--amber);
  margin-top: 8px;
}

.newsletter-success.visible {
  display: block;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

/* ---- SCROLL REVEAL ---- */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }

  .reveal.revealed {
    opacity: 1;
    transform: none;
  }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(253, 246, 238, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 8px;
    border-bottom: 1px solid rgba(107, 47, 91, 0.08);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu a {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 140px 24px 100px;
  }

  .hero-stats {
    gap: 20px;
  }

  .hero-stat-divider {
    display: none;
  }

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

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

  .about-image-wrapper {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }

  .about-content {
    max-width: 100%;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .gallery-item--tall {
    grid-column: span 2;
    grid-row: span 1;
  }

  .gallery-item--wide {
    grid-column: span 2;
  }

  .gallery-item {
    height: 220px;
  }

  .cta-content {
    padding: 48px 32px;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 72px 0;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

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

  .gallery-item--tall,
  .gallery-item--wide {
    grid-column: span 1;
  }
}
