/* =====================================================
   SOFFIO PIZZERIA — stylesheet
   ===================================================== */

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

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

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  color: #1a1a1a;
  background: #ffffff;
  overflow-x: hidden;
}

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

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

/* =====================================================
   HEADER
   ===================================================== */
#header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #ffffff;
  border-bottom: 1px solid #e6e2de;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 52px;
}

/* Logo (script font) */
.logo {
  font-family: 'Great Vibes', cursive;
  font-size: 44px;
  line-height: 1;
  color: #1a1a1a;
  letter-spacing: 0.01em;
}

/* Nav */
#main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

#main-nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #1a1a1a;
  text-transform: lowercase;
  transition: opacity 0.2s;
}

#main-nav a:hover { opacity: 0.5; }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 28px;
  height: 28px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: #1a1a1a;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}

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

/* =====================================================
   SHARED — outline button
   ===================================================== */
.btn-outline {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #1a1a1a;
  border: 1px solid #1a1a1a;
  padding: 11px 32px;
  text-transform: lowercase;
  transition: background 0.25s, color 0.25s;
  cursor: pointer;
}

.btn-outline:hover {
  background: #1a1a1a;
  color: #ffffff;
}

/* =====================================================
   SECTION 1 — HERO
   ===================================================== */
.s-hero { /* full bleed — no padding */ }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 88vh;
}

.hero-img {
  overflow: hidden;
}

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

.hero-text {
  display: flex;
  align-items: center;
  padding: 72px 72px 72px 68px;
}

.hero-text p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.85;
  text-align: justify;
  color: #1a1a1a;
  max-width: 460px;
}

/* Awards bar */
.awards-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 32px 52px;
  border-top: 1px solid #e6e2de;
}

.awards-bar span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #1a1a1a;
  text-align: center;
}

/* =====================================================
   SECTION 2 — CHEF
   ===================================================== */
.s-chef { /* no top padding */ }

.chef-full-img {
  width: 100%;
  height: 64vh;
  overflow: hidden;
}

.chef-full-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.chef-bio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 88px 52px 100px;
  gap: 0;
  align-items: start;
}

.chef-bio-left {
  padding-right: 64px;
}

.chef-name {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(80px, 8.8vw, 130px);
  line-height: 0.88;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  margin-bottom: 44px;
}

.chef-bio-left p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.85;
  text-align: justify;
  color: #1a1a1a;
  margin-bottom: 22px;
}

.chef-bio-right {
  overflow: hidden;
  max-height: 680px;
}

.chef-bio-right img {
  width: 100%;
  height: 100%;
  max-height: 680px;
  object-fit: cover;
  object-position: center top;
}

/* =====================================================
   SECTION 3 — MENU
   ===================================================== */
.s-menu { /* no padding wrapper — subsections have own padding */ }

.menu-intro {
  max-width: 620px;
  margin: 0 auto;
  padding: 96px 32px 80px;
  text-align: center;
}

.menu-intro p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.85;
  text-align: justify;
  color: #1a1a1a;
  margin-bottom: 40px;
}

.menu-banner {
  width: 100%;
  height: 54vh;
  overflow: hidden;
}

.menu-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

/* Reserve sub-section */
.s-reserve {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  padding: 80px 52px 96px;
  align-items: start;
}

.reserve-left {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.reserve-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-style: normal;
}

.reserve-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-style: normal;
  font-size: clamp(44px, 5.2vw, 76px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: #1a1a1a;
  display: block;
}

.reserve-heading em {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(28px, 3.4vw, 50px);
  line-height: 1.2;
  color: #1a1a1a;
  display: block;
}

.reserve-left p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.85;
  color: #1a1a1a;
}

.reserve-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  height: 420px;
}

.reserve-imgs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* =====================================================
   SECTION 4 — CONTATO
   ===================================================== */
.s-contact {
  border-top: 1px solid #e6e2de;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 74vh;
}

.contact-form-col {
  padding: 88px 68px 88px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-style: normal;
  font-size: clamp(44px, 5.2vw, 76px);
  line-height: 1;
  letter-spacing: 0.01em;
  color: #1a1a1a;
  margin-bottom: 52px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 460px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #999;
  text-transform: lowercase;
}

.field input,
.field textarea {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-style: italic;
  color: #1a1a1a;
  background: transparent;
  border: none;
  border-bottom: 1px solid #d0ccc7;
  border-radius: 0;
  outline: none;
  padding: 6px 0 8px;
  width: 100%;
  resize: none;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: #1a1a1a;
}

.contact-form .btn-outline {
  align-self: flex-start;
  margin-top: 8px;
  background: none;
  border-color: #1a1a1a;
  color: #1a1a1a;
}

.contact-img-col {
  overflow: hidden;
}

.contact-img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: #2b2a2a;
  color: #ffffff;
  padding: 52px 52px 48px;
}

.footer-top {
  display: flex;
  align-items: center;
  gap: 44px;
  margin-bottom: 40px;
}

.footer-logo {
  color: #ffffff;
  font-size: 46px;
  line-height: 1;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.social-icon:hover { opacity: 1; }

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-bottom {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 36px;
}

.footer-col {
  flex: 1;
  min-width: 160px;
}

.footer-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 9.5px;
  letter-spacing: 0.15em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 10px;
}

.footer-col p:not(.footer-label) {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.footer-col a {
  color: inherit;
  transition: opacity 0.2s;
}

.footer-col a:hover { opacity: 0.65; }

/* =====================================================
   RESPONSIVE — tablet 1024px
   ===================================================== */
@media (max-width: 1024px) {
  .header-inner { padding: 16px 36px; }

  .hero-text { padding: 56px 48px; }
  .hero-text p { font-size: 17px; }

  .chef-bio { padding: 72px 36px 80px; }
  .chef-bio-left { padding-right: 40px; }

  .menu-intro { padding: 72px 32px 64px; }

  .s-reserve { padding: 64px 36px 80px; gap: 40px; }

  .contact-form-col { padding: 72px 48px 72px 36px; }

  .site-footer { padding: 48px 36px 44px; }
  .footer-bottom { gap: 32px; }
}

/* =====================================================
   RESPONSIVE — mobile 768px
   ===================================================== */
@media (max-width: 768px) {
  /* Header */
  .header-inner { padding: 14px 24px; }
  .logo { font-size: 38px; }

  #main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 240px;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 32px;
    padding: 48px 32px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 24px rgba(0,0,0,0.08);
  }

  #main-nav.open { transform: translateX(0); }

  #main-nav a { font-size: 13px; letter-spacing: 0.15em; }

  .menu-toggle { display: flex; }

  /* Hero */
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-img { height: 56vw; min-height: 220px; }

  .hero-text { padding: 44px 24px 40px; }
  .hero-text p { font-size: 16px; max-width: 100%; }

  .awards-bar {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px;
  }

  .awards-bar .sep { display: none; }

  /* Chef */
  .chef-full-img { height: 48vw; min-height: 200px; }

  .chef-bio {
    grid-template-columns: 1fr;
    padding: 48px 24px 56px;
    gap: 36px;
  }

  .chef-bio-left { padding-right: 0; }

  .chef-bio-right { max-height: 80vw; }

  /* Menu */
  .menu-intro { padding: 56px 24px 48px; }
  .menu-intro p { font-size: 16px; }

  .menu-banner { height: 50vw; min-height: 200px; }

  .s-reserve {
    grid-template-columns: 1fr;
    padding: 48px 24px 56px;
    gap: 36px;
  }

  .reserve-imgs {
    grid-template-columns: 1fr 1fr;
    height: 220px;
    gap: 8px;
  }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }

  .contact-form-col { padding: 48px 24px; }

  .contact-img-col { height: 60vw; min-height: 220px; }

  /* Footer */
  .site-footer { padding: 44px 24px 40px; }

  .footer-top { flex-wrap: wrap; gap: 28px; }

  .footer-bottom { gap: 28px; }

  .footer-col {
    flex: 0 0 calc(50% - 14px);
    min-width: 140px;
  }
}

/* =====================================================
   RESPONSIVE — small mobile 480px
   ===================================================== */
@media (max-width: 480px) {
  .footer-col { flex: 0 0 100%; }

  .s-reserve { gap: 32px; }

  .reserve-imgs {
    grid-template-columns: 1fr 1fr;
    height: 180px;
  }

  .chef-full-img { height: 62vw; }
}
