/* ───────────────────────────────────────────
   Four Corners Coffee — Stylesheet
   Charcoal + Coral · Playfair Display + Lato
   ─────────────────────────────────────────── */

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

:root {
  --charcoal: #2D2D2D;
  --charcoal-deep: #1A1A1A;
  --charcoal-light: #3D3D3D;
  --coral: #E8734A;
  --coral-soft: #F09070;
  --coral-pale: #FDF0EC;
  --cream: #FAF8F5;
  --cream-dark: #F3EFEA;
  --warm-gray: #8A8580;
  --warm-gray-light: #B5B0AA;
  --white: #FFFFFF;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Lato', system-ui, sans-serif;
  --shadow-sm: 0 1px 3px rgba(45,45,45,0.08);
  --shadow-md: 0 4px 20px rgba(45,45,45,0.10);
  --shadow-lg: 0 8px 40px rgba(45,45,45,0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--coral);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--coral-soft); }

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

/* ── Typography ──────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  color: var(--charcoal);
}

.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--warm-gray);
  max-width: 520px;
  line-height: 1.7;
}

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
  border-color: var(--coral);
}

.btn-primary:hover {
  background: var(--coral-soft);
  border-color: var(--coral-soft);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--charcoal);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* ── Header ──────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition);
}

.site-header.scrolled {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(12px);
  padding: 14px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  color: var(--coral);
  font-size: 0.9rem;
  line-height: 1;
}

.logo--light { color: var(--white); }

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

.nav-list a {
  color: rgba(255,255,255,0.8);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--coral);
  transition: width var(--transition);
}

.nav-list a:hover { color: var(--white); }
.nav-list a:hover::after { width: 100%; }

.nav-cta {
  padding: 8px 20px;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  transition: all var(--transition) !important;
}

.nav-cta::after { display: none; }

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

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero ────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    url('https://images.pexels.com/photos/34881022/pexels-photo-34881022.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1280') center/cover no-repeat;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26,26,26,0.55) 0%,
    rgba(45,45,45,0.65) 50%,
    rgba(26,26,26,0.80) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  padding: 0 24px;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--white);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.9s forwards;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  opacity: 0;
  animation: fadeUp 0.8s 1.2s forwards;
}

.scroll-indicator span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.6); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── About ───────────────────────────────── */
.about {
  padding: 120px 0;
  background: var(--cream);
}

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

.about-images {
  position: relative;
  height: 600px;
}

.about-img-main {
  position: absolute;
  top: 0;
  left: 0;
  width: 70%;
  height: 80%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-secondary {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 55%;
  height: 55%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--cream);
}

.about-img-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-accent {
  position: absolute;
  top: 40%;
  left: 55%;
  width: 80px;
  height: 80px;
  background: var(--coral);
  border-radius: 50%;
  opacity: 0.15;
  z-index: -1;
}

.about-text .section-title {
  margin-bottom: 24px;
}

.about-text p {
  color: var(--warm-gray);
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--cream-dark);
}

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--coral);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--warm-gray);
  letter-spacing: 0.04em;
}

/* ── Divider ─────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.divider-mark {
  display: block;
  width: 6px;
  height: 6px;
  background: var(--coral);
  transform: rotate(45deg);
  opacity: 0.5;
}

/* ── Menu ────────────────────────────────── */
.menu {
  padding: 120px 0;
  background: var(--charcoal-deep);
}

.menu .section-subtitle {
  color: var(--warm-gray-light);
}

.menu .container {
  text-align: center;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}

.menu-card {
  background: var(--charcoal-light);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  text-align: left;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.menu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--coral), var(--coral-soft));
  opacity: 0;
  transition: opacity var(--transition);
}

.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.menu-card:hover::before { opacity: 1; }

.menu-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 115, 74, 0.12);
  border-radius: var(--radius);
  margin-bottom: 24px;
  color: var(--coral);
}

.menu-card-title {
  font-size: 1.4rem;
  margin-bottom: 28px;
  color: var(--white);
}

.menu-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.menu-items li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.menu-items li:last-child { border-bottom: none; padding-bottom: 0; }

.item-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--white);
  font-weight: 500;
}

.item-desc {
  font-size: 0.85rem;
  color: var(--warm-gray);
  text-align: right;
  line-height: 1.4;
  flex-shrink: 0;
}

.menu-note {
  margin-top: 48px;
  font-size: 0.88rem;
  color: var(--warm-gray);
  font-style: italic;
}

/* ── Gallery ─────────────────────────────── */
.gallery {
  padding: 120px 0;
  background: var(--cream);
}

.gallery .container {
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
  margin-top: 64px;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

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

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

.gallery-item--wide {
  grid-column: span 7;
  aspect-ratio: 8/5;
}

.gallery-item--tall {
  grid-column: span 5;
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-item:not(.gallery-item--wide):not(.gallery-item--tall) {
  aspect-ratio: 5/4;
}

/* ── Visit ───────────────────────────────── */
.visit {
  padding: 120px 0;
  background: var(--cream-dark);
}

.visit-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.visit-text .section-title {
  margin-bottom: 24px;
}

.visit-text p {
  color: var(--warm-gray);
  font-size: 1.05rem;
  line-height: 1.8;
}

.visit-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.visit-detail {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

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

.visit-detail strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--charcoal);
}

.visit-detail p {
  color: var(--warm-gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

.visit-detail a {
  color: var(--coral);
}

.visit-detail a:hover {
  color: var(--coral-soft);
  text-decoration: underline;
}

/* ── Contact ─────────────────────────────── */
.contact {
  padding: 120px 0;
  background: var(--charcoal-deep);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-text .section-title {
  color: var(--white);
  margin-bottom: 20px;
}

.contact-text p {
  color: var(--warm-gray-light);
  font-size: 1.05rem;
  line-height: 1.8;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-gray-light);
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--white);
  transition: border-color var(--transition), background var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--warm-gray);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--coral);
  background: rgba(255,255,255,0.08);
}

.form-success {
  display: none;
  padding: 16px 20px;
  background: rgba(232, 115, 74, 0.12);
  border: 1px solid rgba(232, 115, 74, 0.3);
  border-radius: var(--radius);
  color: var(--coral-soft);
  font-size: 0.95rem;
  text-align: center;
}

.form-success.show {
  display: block;
  animation: fadeUp 0.4s forwards;
}

/* ── Footer ──────────────────────────────── */
.footer {
  background: var(--charcoal-deep);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 64px 0 40px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 48px;
}

.footer-tagline {
  color: var(--warm-gray);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  margin-top: 12px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--warm-gray);
}

.footer-bottom a {
  color: var(--warm-gray-light);
}

.footer-bottom a:hover {
  color: var(--coral);
}

/* ── Scroll Animations ───────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 1024px) {
  .about-grid,
  .visit-content,
  .contact-grid {
    gap: 48px;
  }

  .about-images { height: 480px; }

  .menu-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--charcoal-deep);
    padding: 100px 40px 40px;
    transition: right var(--transition);
    box-shadow: -10px 0 40px rgba(0,0,0,0.3);
  }

  .nav.open { right: 0; }

  .nav-list {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }

  .nav-list a { font-size: 1.1rem; }

  .hero h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); }

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

  .about-images {
    height: 400px;
    order: -1;
  }

  .about-stats { gap: 24px; }

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

  .gallery-item--wide,
  .gallery-item--tall {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 4/3;
  }

  .visit-content,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn { width: 100%; max-width: 280px; }
}

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

  .about, .menu, .gallery, .visit, .contact {
    padding: 80px 0;
  }

  .about-images { height: 320px; }

  .about-stats {
    flex-direction: column;
    gap: 20px;
  }

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

  .gallery-item--wide,
  .gallery-item--tall,
  .gallery-item:not(.gallery-item--wide):not(.gallery-item--tall) {
    grid-column: span 1;
    aspect-ratio: 4/3;
  }

  .menu-card { padding: 36px 24px; }
}
