/* ============================================
   Cafe Cicely — Styles
   ============================================ */

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

:root {
  --terracotta: #C0623C;
  --terracotta-dark: #A84E2D;
  --terracotta-light: #D4856A;
  --sand: #F5EDE3;
  --sand-light: #FAF6F1;
  --sand-dark: #E8DDD0;
  --cream: #FFFCF8;
  --brown-dark: #3D2B1F;
  --brown-mid: #6B4F3A;
  --brown-light: #96745C;
  --white: #FFFFFF;
  --text: #3D2B1F;
  --text-light: #7A6050;
  --shadow-sm: 0 2px 8px rgba(61, 43, 31, 0.06);
  --shadow-md: 0 4px 20px rgba(61, 43, 31, 0.10);
  --shadow-lg: 0 8px 40px rgba(61, 43, 31, 0.12);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-xl: 48px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

h1, h2, h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  line-height: 1.2;
  color: var(--brown-dark);
}

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

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

a:hover {
  color: var(--terracotta-dark);
}

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

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

/* ========== SECTION SHARED ========== */
.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--terracotta-light), var(--terracotta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.section-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  line-height: 1.8;
}

.section-header {
  margin-bottom: 60px;
}

.section-header .section-desc {
  margin: 0 auto;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
  box-shadow: 0 4px 16px rgba(192, 98, 60, 0.3);
}

.btn-primary:hover {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(192, 98, 60, 0.4);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--brown-dark);
  border-color: var(--brown-dark);
}

.btn-secondary:hover {
  background: var(--brown-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-nav {
  background: var(--terracotta);
  color: var(--white);
  padding: 10px 24px;
  font-size: 0.85rem;
}

.btn-nav:hover {
  background: var(--terracotta-dark);
  color: var(--white);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ========== HEADER ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 252, 248, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(192, 98, 60, 0.08);
  transition: box-shadow var(--transition);
}

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

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--brown-dark);
}

.logo-text {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
}

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

.nav-list a {
  padding: 8px 16px;
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-xl);
  transition: all var(--transition);
}

.nav-list a:hover {
  color: var(--terracotta);
  background: rgba(192, 98, 60, 0.08);
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

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

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(255, 252, 248, 0.98);
  backdrop-filter: blur(20px);
  align-items: center;
  justify-content: center;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.mobile-menu a {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.8rem;
  color: var(--brown-dark);
  text-decoration: none;
  transition: color var(--transition);
}

.mobile-menu a:hover {
  color: var(--terracotta);
}

.btn-mobile {
  margin-top: 12px;
  font-size: 1rem;
  padding: 14px 40px;
}

/* ========== HERO ========== */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(160deg, var(--sand-light) 0%, var(--cream) 50%, var(--sand) 100%);
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

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

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--terracotta-light), var(--terracotta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--brown-dark);
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-headline em {
  font-style: italic;
  color: var(--terracotta);
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--white);
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brown-mid);
  box-shadow: var(--shadow-sm);
}

/* Hero image */
.hero-image {
  position: relative;
  height: 600px;
}

.hero-img-main {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

.hero-img-float {
  position: absolute;
  bottom: -30px;
  left: -40px;
  width: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
}

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

.hero-accent-circle {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--terracotta-light), var(--terracotta));
  opacity: 0.15;
  z-index: -1;
}

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

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

.about-image {
  position: relative;
}

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

.about-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--terracotta);
  opacity: 0.1;
  z-index: -1;
}

.about-content .section-desc {
  margin-bottom: 16px;
}

.about-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--sand-dark);
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2rem;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--sand-dark);
}

/* ========== PRODUCTS ========== */
.products {
  padding: 120px 0;
  background: var(--sand-light);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

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

.product-img {
  height: 220px;
  overflow: hidden;
}

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

.product-card:hover .product-img img {
  transform: scale(1.05);
}

.product-body {
  padding: 28px;
}

.product-body h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--brown-dark);
}

.product-body p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}

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

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

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

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

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

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ========== VISIT ========== */
.visit {
  padding: 120px 0;
  background: linear-gradient(160deg, var(--sand) 0%, var(--sand-light) 100%);
}

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

.visit-info .section-desc {
  margin-bottom: 40px;
}

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

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

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

.visit-detail strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--terracotta);
  margin-bottom: 4px;
  font-weight: 800;
}

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

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

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

.visit-map {
  height: 450px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* ========== CONTACT ========== */
.contact {
  padding: 120px 0;
  background: var(--cream);
}

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

.contact-text .section-desc {
  margin-bottom: 0;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brown-mid);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--sand-dark);
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--sand-light);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--terracotta);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(192, 98, 60, 0.1);
}

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

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 16px 20px;
  background: rgba(74, 124, 89, 0.08);
  border-radius: var(--radius-sm);
  color: #4A7C59;
  font-weight: 700;
  font-size: 0.95rem;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--brown-dark);
  color: var(--sand);
  padding: 80px 0 0;
}

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

.footer-brand .logo-text {
  color: var(--sand);
}

.footer-brand p {
  margin-top: 16px;
  color: rgba(245, 237, 227, 0.6);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-links strong,
.footer-contact strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--terracotta-light);
  margin-bottom: 20px;
  font-weight: 800;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a,
.footer-contact a {
  color: rgba(245, 237, 227, 0.6);
  font-size: 0.95rem;
  transition: color var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--terracotta-light);
}

.footer-bottom {
  border-top: 1px solid rgba(245, 237, 227, 0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(245, 237, 227, 0.4);
}

/* ========== ANIMATIONS ========== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero-image {
    height: 450px;
  }

  .about-grid,
  .visit-grid,
  .contact-wrapper {
    gap: 48px;
  }
}

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

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-image {
    height: 350px;
    order: -1;
  }

  .hero-img-float {
    width: 140px;
    left: -10px;
    bottom: -20px;
  }

  .hero-headline {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

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

  .hero-actions .btn {
    text-align: center;
    justify-content: center;
  }

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

  .about-image {
    height: 350px;
  }

  .about-image img {
    height: 100%;
  }

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

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

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

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

  .visit-map {
    height: 300px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-form {
    padding: 28px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

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

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

  .hero {
    padding: 90px 0 50px;
  }

  .hero-badges {
    flex-direction: column;
  }

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

  .stat-divider {
    width: 40px;
    height: 1px;
  }

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

  .contact-form {
    padding: 20px;
  }
}
