/* ==========================================================================
   3pm German Baking - Styles
   Design: Minimalist, elegant, matching line-art logo aesthetic
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables / Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colors - matching logo aesthetic */
  --color-background: #ffffff;
  --color-background-warm: #f9f7f4;
  --color-text: #1a1a1a;
  --color-text-light: #555555;
  --color-border: #1a1a1a;
  --color-border-light: #e0dcd7;
  
  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-background);
}

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

a {
  color: var(--color-text);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xs);
}

p {
  margin-bottom: var(--spacing-sm);
}

/* --------------------------------------------------------------------------
   Layout Components
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

section {
  padding: var(--spacing-xl) 0;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.header__inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.header__logo {
  height: 100px;
  width: auto;
}

.nav {
  display: flex;
  gap: var(--spacing-md);
}

.nav__link {
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  text-align: center;
  padding: var(--spacing-xl) 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-background-warm);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero--with-image {
  background-image: url('images/hero-couple-sharing-cake.jpg');
  background-position: center center;
}

.hero--with-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__logo {
  max-width: 320px;
  margin: 0 auto var(--spacing-md);
}

.hero__tagline {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--color-text);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   About Section
   -------------------------------------------------------------------------- */
.about {
  background-color: var(--color-background);
}

.about__content {
  text-align: center;
}

.about__text {
  font-size: 1.125rem;
  color: var(--color-text-light);
  max-width: 700px;
  margin: 0 auto;
}

/* Decorative divider - matching logo floral style */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--spacing-md) 0;
}

.divider::before,
.divider::after {
  content: '';
  width: 60px;
  height: 1px;
  background-color: var(--color-border);
}

.divider__icon {
  margin: 0 var(--spacing-sm);
  font-size: 1.25rem;
}

/* --------------------------------------------------------------------------
   Products Section
   -------------------------------------------------------------------------- */
.products {
  background-color: var(--color-background-warm);
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.product-card {
  background-color: var(--color-background);
  border: 1px solid var(--color-border-light);
  padding: var(--spacing-md);
  text-align: center;
  transition: box-shadow 0.2s ease;
}

.product-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Product image placeholder - ready for real photos */
.product-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--color-background-warm);
  border: 1px solid var(--color-border-light);
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder icon when no image */
.product-card__placeholder {
  font-size: 3rem;
  opacity: 0.3;
}

.product-card__name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xs);
}

.product-card__german {
  font-style: italic;
  color: var(--color-text-light);
  font-size: 0.875rem;
  margin-bottom: var(--spacing-xs);
}

.product-card__description {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Find Us Section
   -------------------------------------------------------------------------- */
.find-us {
  background-color: var(--color-background);
  text-align: center;
}

.find-us__message {
  background-color: var(--color-background-warm);
  border: 1px solid var(--color-border-light);
  padding: var(--spacing-lg);
  max-width: 600px;
  margin: 0 auto;
}

.find-us__heading {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.find-us__text {
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* Future: Location cards for when markets are added */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.location-card {
  border: 1px solid var(--color-border-light);
  padding: var(--spacing-md);
  text-align: left;
}

.location-card__name {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  margin-bottom: var(--spacing-xs);
}

.location-card__details {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--color-background-warm);
  padding: var(--spacing-lg) 0;
  text-align: center;
  border-top: 1px solid var(--color-border-light);
}

.footer__logo {
  height: 120px;
  margin: 0 auto var(--spacing-md);
}

.footer__contact {
  margin-bottom: var(--spacing-md);
}

.footer__email {
  font-size: 1rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 2px;
}

.footer__email:hover {
  opacity: 0.7;
}

.footer__copyright {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin: 0;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Responsive Design
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero {
    min-height: 60vh;
  }
  
  .hero__logo {
    max-width: 220px;
  }
  
  .hero__tagline {
    font-size: 1.25rem;
  }
  
  .about__text {
    font-size: 1rem;
  }
  
  .products__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .find-us__message {
    padding: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
  }
  
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .header__logo {
    height: 80px;
  }
  
  .hero {
    min-height: 50vh;
  }
  
  .hero__logo {
    max-width: 180px;
  }
  
  .hero__tagline {
    font-size: 1.1rem;
  }
  
  .footer__logo {
    height: 100px;
  }
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.text-center {
  text-align: center;
}

.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;
}
