/* Google Fonts: Playfair Display for headers, Inter for body */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --primary: #FDFBF7; /* Cream */
  --text-dark: #2C1A14; /* Cocoa */
  --text-light: #7A635B; /* Light Cocoa for secondary text */
  --accent: #D4A373; /* Caramel/Gold */
  --accent-hover: #B88A58;
  --white: #FFFFFF;
  --bg-offset: #F4EAE1;
  
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  
  --transition-fast: 0.2s ease;
  --transition-slow: 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  --shadow-sm: 0 4px 12px rgba(44, 26, 20, 0.05);
  --shadow-md: 0 8px 30px rgba(44, 26, 20, 0.08);
  --shadow-lg: 0 20px 40px rgba(44, 26, 20, 0.12);
}

/* Base Safari */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--primary);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

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

/* Layout Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 6rem 0;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.875rem;
  transition: var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--text-dark);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--text-dark);
  color: var(--text-dark);
}

.btn-outline:hover {
  background-color: var(--text-dark);
  color: var(--white);
}

/* Typography styles */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  z-index: 1000;
  transition: var(--transition-fast);
  background: rgba(253, 251, 247, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(44, 26, 20, 0.05);
}

.navbar.scrolled {
  padding: 1rem 5%;
  box-shadow: var(--shadow-sm);
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  transition: var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.mobile-nav-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
  border: none;
  background: transparent;
}

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

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/images/hero.png');
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1.05);
  animation: heroZoom 20s infinite alternate linear;
}

@keyframes heroZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.15); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(253, 251, 247, 0.9) 0%, rgba(253, 251, 247, 0.7) 40%, rgba(253, 251, 247, 0.2) 100%);
  z-index: -1;
}

.hero-content {
  width: 100%;
  max-width: 1200px;
  padding: 0 2rem;
  padding-top: 80px;
}

.hero-tagline {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

.hero h1 {
  font-size: 4.5rem;
  max-width: 600px;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.hero p {
  font-size: 1.15rem;
  max-width: 500px;
  color: var(--text-light);
  margin-bottom: 2.5rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
}

/* Featured Cakes grid */
.cakes-section {
  background-color: var(--primary);
}

.cake-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.cake-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-slow);
  position: relative;
  display: flex;
  flex-direction: column;
}

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

.cake-img-wrapper {
  position: relative;
  height: 380px;
  overflow: hidden;
}

.cake-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.cake-card:hover .cake-img-wrapper img {
  transform: scale(1.08);
}

.cake-price {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(253, 251, 247, 0.95);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(4px);
}

.cake-details {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.cake-details h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.cake-flavor {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.cake-desc {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.cake-qualities {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.quality-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background-color: var(--bg-offset);
  border-radius: 4px;
  color: var(--text-light);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.quality-badge i {
  color: var(--accent);
}

.cake-card .btn {
  width: 100%;
}

/* Features/Qualities Section */
.features-section {
  background-color: var(--text-dark);
  color: var(--white);
}

.features-section .section-title {
  color: var(--white);
}

.features-section .section-subtitle {
  color: rgba(255,255,255,0.7);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.feature-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  transition: var(--transition-fast);
  background: rgba(255,255,255,0.02);
}

.feature-card:hover {
  background: rgba(255,255,255,0.05);
  transform: translateY(-5px);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(212, 163, 115, 0.1);
  color: var(--accent);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

/* Standard Page Header Formats (for About/Terms, etc) */
.page-header {
  background-color: var(--bg-offset);
  padding: 10rem 0 5rem;
  text-align: center;
  border-bottom: 1px solid rgba(44, 26, 20, 0.05);
}

.page-header h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
}

.prose h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.8rem;
}

.prose p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.prose ul, .prose ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-light);
}

.prose li {
  margin-bottom: 0.5rem;
}

/* FAQ Accordion */
.faq-container {
  margin-top: 3rem;
}

.faq-item {
  border-bottom: 1px solid rgba(44, 26, 20, 0.1);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  padding: 1rem 0;
  transition: var(--transition-fast);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  font-size: 1rem;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer p {
  padding-bottom: 1rem;
  color: var(--text-light);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* About Section Specifics */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* Footer */
.footer {
  background-color: var(--text-dark);
  color: var(--primary);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  max-width: 350px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-brand p {
  color: rgba(253, 251, 247, 0.7);
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(253, 251, 247, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.social-links a:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-links h4 {
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(253, 251, 247, 0.7);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(253, 251, 247, 0.1);
  color: rgba(253, 251, 247, 0.5);
  font-size: 0.9rem;
}

/* Media Queries */
@media (max-width: 900px) {
  .hero h1 {
    font-size: 3.5rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition-slow);
    padding: 2rem;
  }
  .nav-links.active {
    left: 0;
  }
  .nav-links a {
    font-size: 1.5rem;
  }
  .hero h1 {
    font-size: 2.8rem;
  }
  .hero-overlay {
    background: rgba(253, 251, 247, 0.85);
  }
}
