/* ============================================
   Ristorante La Marianna — Shared Stylesheet
   Aesthetic: Tuscan Editorial Warmth
   ============================================ */

/* --- Custom Properties --- */
:root {
  --primary: #2C4A3E;
  --secondary: #8B6914;
  --accent: #C2572A;
  --bg: #F5EDE3;
  --surface: #EBE0D2;
  --text: #2A2118;
  --text-muted: #6B5D50;
  --font-display: 'DM Serif Display', serif;
  --font-body: 'Crimson Pro', serif;
  --nav-height: 72px;
  --container-pad: 24px;
  --radius: 6px;
  --shadow-soft: 0 2px 16px rgba(42, 33, 24, 0.08);
  --shadow-card: 0 4px 24px rgba(42, 33, 24, 0.1);
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.75rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.625rem); }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

p {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text);
  max-width: 68ch;
}

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

a:hover {
  color: var(--accent);
}

/* --- Display / Section Typography --- */
.display-heading {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.05;
  color: var(--text);
  letter-spacing: -0.02em;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.15;
  color: var(--primary);
  margin-bottom: 1rem;
}

.body-text {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

/* --- Navigation --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  background-color: rgba(245, 237, 227, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42, 33, 24, 0.06);
  transition: background-color var(--transition), box-shadow var(--transition);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.nav-logo:hover {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  width: 100%;
  background-color: var(--primary);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1010;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background-color: var(--bg);
  z-index: 1005;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-mobile-menu.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.nav-mobile-menu .nav-link {
  font-size: 1.5rem;
}

/* --- Language Switcher --- */
.lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
  background: none;
  padding: 0;
  font-size: 1.25rem;
  line-height: 1;
}

.lang-flag:hover {
  border-color: var(--secondary);
  transform: scale(1.1);
}

.lang-flag.active {
  border-color: var(--primary);
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FFFFFF;
  background-color: var(--accent);
  border: none;
  padding: 14px 32px;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
  background-color: #A8461F;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(194, 87, 42, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background-color: transparent;
  border: 2px solid var(--primary);
  padding: 12px 30px;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* --- Card --- */
.card {
  background-color: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

/* --- Signature Detail: Editorial Pull-Quote --- */
.pull-quote {
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.2;
  color: var(--primary);
  max-width: 600px;
  z-index: 2;
  margin-top: -3rem;
  margin-bottom: -1rem;
  padding: 1.5rem 2rem;
  background-color: rgba(245, 237, 227, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.pull-quote::before {
  content: '\201C';
  position: absolute;
  top: -0.2em;
  left: -0.05em;
  font-family: var(--font-display);
  font-size: 5em;
  line-height: 1;
  color: var(--secondary);
  opacity: 0.25;
  pointer-events: none;
}

/* --- Inner-Page Header Strip --- */
.inner-hero {
  background-color: var(--primary);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  text-align: center;
}

.inner-hero .section-title {
  color: var(--bg);
  margin-bottom: 0.25rem;
}

.inner-hero .body-text {
  color: rgba(245, 237, 227, 0.75);
  font-size: 1rem;
}

/* --- Fade-in Animation --- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(12px);
}
.fade-in.visible {
  animation: fadeIn 0.35s ease-out forwards;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--primary);
  color: var(--bg);
  padding: clamp(3rem, 6vw, 5rem) 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.footer-inner a {
  color: rgba(245, 237, 227, 0.75);
  transition: color var(--transition);
}

.footer-inner a:hover {
  color: var(--bg);
}

.footer-inner h4,
.footer-inner h5 {
  font-family: var(--font-display);
  color: var(--bg);
  margin-bottom: 1rem;
  font-size: 1.15rem;
}

.footer-inner p {
  color: rgba(245, 237, 227, 0.7);
  font-size: 0.95rem;
  line-height: 1.65;
}

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

.footer-legal a {
  color: rgba(245, 237, 227, 0.55);
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: var(--bg);
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(245, 237, 227, 0.45);
}

/* ============================================
   Responsive — Tablet (768px)
   ============================================ */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
    --container-pad: 20px;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .pull-quote {
    font-size: clamp(1.5rem, 5vw, 2.25rem);
    margin-top: -2rem;
    padding: 1.25rem 1.5rem;
  }

  .section {
    padding-top: clamp(3rem, 6vw, 5rem);
    padding-bottom: clamp(3rem, 6vw, 5rem);
  }
}

/* ============================================
   Responsive — Large screens (1024px)
   ============================================ */
@media (min-width: 1024px) {
  .nav-links {
    gap: 2.5rem;
  }

  .pull-quote {
    margin-left: -2rem;
  }
}

/* --- Utility --- */
::selection {
  background-color: rgba(44, 74, 62, 0.2);
  color: var(--text);
}

/* ── Image quality defaults ── */
img { object-fit: cover; max-width: 100%; height: auto; }
img[class*="logo"], img[class*="icon"], img[class*="flag"] { object-fit: contain; }
