/* Stone L'Oven Newton - Mobile-first styles */

:root {
  --color-wood: #8b6914;
  --color-wood-dark: #5c4610;
  --color-red: #c41e3a;
  --color-red-dark: #9a1830;
  --color-cream: #faf6f0;
  --color-cream-dark: #f0e8dc;
  --color-charcoal: #2d2a26;
  --color-text: #333;
  --color-text-muted: #666;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  --ribbon-height: 72px; /* Logo + location + padding on desktop; toggle + padding on mobile */
  --touch-min: 44px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-cream);
}

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

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

a:hover {
  text-decoration: underline;
}

/* Ribbon Navigation */
.ribbon {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-charcoal);
  color: var(--color-cream);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ribbon-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-right: 0.5rem;
}

.ribbon-logo img {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.ribbon-location {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-cream);
  opacity: 0.9;
  margin-top: 1px;
}

.ribbon-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.ribbon-link {
  color: var(--color-cream);
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  min-height: var(--touch-min);
  display: inline-flex;
  align-items: center;
  transition: background 0.2s;
}

.ribbon-link:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.ribbon-link-external::after {
  content: " ↗";
  font-size: 0.75em;
  opacity: 0.8;
}

.ribbon-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: var(--touch-min);
  height: var(--touch-min);
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-cream);
}

.ribbon-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

/* Mobile: hamburger menu */
@media (max-width: 768px) {
  .ribbon-inner {
    justify-content: space-between;
  }

  .ribbon-logo img {
    height: 32px;
  }

  .ribbon-link {
    display: none;
  }

  .ribbon.expanded .ribbon-link {
    display: inline-flex;
    width: 100%;
    justify-content: center;
  }

  .ribbon.expanded .ribbon-logo {
    display: none;
  }

  .ribbon.expanded .ribbon-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .ribbon-toggle {
    display: flex;
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--ribbon-height);
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

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

.hero-slideshow .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(45, 42, 38, 0.35) 0%,
    rgba(45, 42, 38, 0.55) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 600px;
}

.hero-logo {
  max-width: 320px;
  width: 80%;
  height: auto;
  margin: 0 auto 0.5rem;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  color: var(--color-cream);
  margin: 0 0 0.25rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-location {
  font-size: clamp(1.5rem, 4.5vw, 2.25rem);
  font-weight: 600;
  color: var(--color-cream);
  margin: 0 0 0.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 1.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hero-phone {
  display: inline-block;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-cream);
  padding: 0.5rem 1rem;
  min-height: var(--touch-min);
  line-height: 1.4;
}

.hero-phone:hover {
  text-decoration: none;
  color: var(--color-cream);
  opacity: 0.9;
}

.hero-hours {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  color: var(--color-cream);
  opacity: 0.95;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  min-height: var(--touch-min);
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--color-red-dark);
  text-decoration: none;
}

.btn-secondary {
  background: var(--color-wood);
  color: white;
}

.btn-secondary:hover {
  background: var(--color-wood-dark);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--color-red);
  border: 2px solid var(--color-red);
}

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

/* Sections */
.section {
  padding: 4rem 1.5rem;
  scroll-margin-top: var(--ribbon-height);
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-charcoal);
  margin: 0 0 0.25rem;
  text-align: center;
}

.section-location {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-red);
  text-align: center;
  margin: 0 0 1rem;
  letter-spacing: 0.05em;
}

.section-intro {
  text-align: center;
  color: var(--color-text-muted);
  margin: 0 0 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Menu Section */
.section-menu {
  background: white;
}

.menu-pdf-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-height: 600px;
}

.menu-pdf {
  width: 100%;
  height: 70vh;
  min-height: 500px;
  border: none;
}

.menu-pdf-wrapper p {
  padding: 2rem;
  text-align: center;
  margin: 0;
}

.menu-download-link {
  display: block;
  text-align: center;
  margin-top: 1rem;
  font-size: 0.95rem;
}

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

.about-content {
  max-width: 700px;
  margin: 0 auto 2rem;
}

.about-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-charcoal);
  margin: 1.5rem 0 0.5rem;
}

.about-content h3:first-child {
  margin-top: 0;
}

.about-content p {
  margin: 0 0 1rem;
  line-height: 1.6;
}

.about-content .about-formula {
  font-style: italic;
  padding-left: 1rem;
  border-left: 3px solid var(--color-red);
}

.about-content ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
  line-height: 1.7;
}

.about-content li {
  margin-bottom: 0.5rem;
}

/* Find Us Section */
.section-find-us {
  background: white;
}

.find-us-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.find-us-info {
  text-align: center;
}

.find-us-info h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: var(--color-charcoal);
}

.find-us-address {
  margin: 0 0 0.5rem;
  line-height: 1.6;
}

.find-us-phone {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.find-us-hours {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.find-us-map {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-height: 300px;
}

.find-us-map iframe {
  width: 100%;
  height: 300px;
  border: none;
}

@media (min-width: 768px) {
  .find-us-grid {
    grid-template-columns: 1fr 1.5fr;
    align-items: start;
  }

  .find-us-info {
    text-align: left;
  }

  .find-us-map iframe {
    height: 350px;
  }
}

/* Reviews Section */
.section-reviews {
  background: white;
}

.reviews-widget {
  margin-bottom: 2rem;
  min-height: 120px;
}

.reviews-cta {
  text-align: center;
  padding: 2rem;
  background: var(--color-cream);
  border-radius: 8px;
}

.reviews-cta p {
  margin: 0 0 1rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.drawing-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.drawing-form input[type="text"],
.drawing-form input[type="email"] {
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  min-width: 180px;
}

.drawing-form .btn {
  white-space: normal;
  text-align: center;
  max-width: 320px;
}


/* Forms */
.section-feedback,
.section-join {
  background: var(--color-cream-dark);
}

.form {
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--color-charcoal);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-red);
}

.form-group input.error,
.form-group textarea.error {
  border-color: var(--color-red);
}

.form-error {
  display: block;
  color: var(--color-red);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.form .btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* Footer */
.footer {
  background: var(--color-charcoal);
  color: var(--color-cream);
  padding: 2rem 1.5rem;
  text-align: center;
}

.footer a {
  color: var(--color-cream);
}

.footer a:hover {
  text-decoration: underline;
}

.footer-hours {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-cream);
  transition: background 0.2s;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.social-icon {
  width: 22px;
  height: 22px;
}
