/* ==========================================
   LA PIAZZETTA – GLOBAL PUBLIC THEME
   Scope:
   - local fonts
   - root tokens
   - typography base
   - theme base
   - reusable layout helpers
   - global navbar / footer
   - shared section system
   - shared cards / buttons
========================================== */

/* ==========================================
   01. LOCAL FONTS (WOFF2)
========================================== */

@font-face{
  font-family: 'Inter';
  src: url('../Fonts/inter/subset-Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: 'Inter';
  src: url('../Fonts/inter/subset-Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: 'Inter';
  src: url('../Fonts/inter/subset-Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: 'Cormorant Garamond';
  src: url('../Fonts/cormorant/subset-CormorantGaramond-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: 'Cormorant Garamond';
  src: url('../Fonts/cormorant/subset-CormorantGaramond-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: 'Cormorant Garamond';
  src: url('../Fonts/cormorant/subset-CormorantGaramond-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face{
  font-family: 'Great Vibes';
  src: url('../Fonts/greatvibes/subset-GreatVibes-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ==========================================
   02. ROOT TOKENS
========================================== */

:root{
  /* Typography */
  --lp-text: 16px;
  --lp-text-sm: 14px;
  --lp-text-lg: 18px;

  --lp-h2: clamp(30px, 3.6vw, 44px);
  --lp-h3: clamp(22px, 2.2vw, 30px);

  --lp-script-lg: clamp(54px, 6vw, 92px);
  --lp-script-md: clamp(34px, 4vw, 54px);

  --fs-kicker: clamp(12px, 1.4vw, 13px);
  --fs-h2: clamp(28px, 4.2vw, 44px);
  --fs-h3: clamp(20px, 2.6vw, 26px);
  --fs-lead: clamp(15px, 1.9vw, 18px);
  --fs-body: 15px;
  --fs-meta: 13px;

  --lh-body: 1.65;
  --lh-tight: 1.12;

  /* Colors */
  --lp-bg-dark: #3a1d16;
  --lp-bg-warm: #4a2720;

  --lp-red: #db2906;
  --lp-red-hover: #b92205;

  --lp-green: #1f6b3a;
  --lp-green-hover: #18562f;

  --lp-white: #ffffff;
  --lp-cream: #f7f4ee;

  --lp-text-light: var(--lp-cream);
  --lp-text-dark: #2a2521;
  --lp-text-muted: rgba(247,244,238,0.72);

  --lp-line: rgba(255,255,255,0.10);

  --lp-ember: #d96516;
  --lp-accent: var(--lp-ember);

  /* Layout */
  --lp-radius: 0;
  --sp-section-y: clamp(38px, 6vh, 72px);
  --sp-head-mb: clamp(18px, 3vh, 34px);
  --sp-stack-gap: clamp(14px, 2.2vh, 18px);
}

/* ==========================================
   03. TYPOGRAPHY BASE
========================================== */

body{
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: var(--lp-text);
}

h1, h2, h3, h4, h5{
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
}

h2{
  letter-spacing: 0.5px;
}

.lp-text-sm{ font-size: var(--lp-text-sm); }
.lp-text-lg{ font-size: var(--lp-text-lg); }

.lp-h2{ font-size: var(--lp-h2); }
.lp-h3{ font-size: var(--lp-h3); }

.lp-script{
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  letter-spacing: 1px;
}
.lp-script-lg{ font-size: var(--lp-script-lg); }
.lp-script-md{ font-size: var(--lp-script-md); }

/* ==========================================
   04. PUBLIC THEME BASE
========================================== */

body.lp-theme{
  background: var(--lp-cream);
  color: var(--lp-text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.lp-theme a{
  color: inherit;
}

body.lp-theme h1,
body.lp-theme h2,
body.lp-theme h3,
body.lp-theme h4,
body.lp-theme h5{
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.5px;
}

body.lp-theme main{
  display: block;
  width: 100%;
  background: var(--lp-cream);
}

/* ==========================================
   05. GLOBAL LAYOUT HELPERS
========================================== */

.lp-container{
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
}

@media (max-width: 900px){
  .lp-container{
    padding: 0 20px;
  }
}

.lp-grid{
  display: grid;
  gap: 22px;
}

.lp-grid-2{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px){
  .lp-grid-2{
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   06. NAVBAR
========================================== */

body.lp-theme .lp-navbar{
  position: relative;
  background: var(--lp-bg-dark) !important;
  border-bottom: 1px solid rgba(0,0,0,0.35);
  transition: background-color .25s ease, box-shadow .25s ease;
}

body.lp-theme .lp-navbar.scrolled{
  background: var(--lp-bg-dark) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  backdrop-filter: none;
}

body.lp-theme .lp-navbar .navbar-brand{
  color: var(--lp-cream);
  text-shadow: 0 1px 10px rgba(0,0,0,0.18);
}

body.lp-theme .lp-navbar .navbar-brand:hover,
body.lp-theme .lp-navbar .navbar-brand:focus{
  color: var(--lp-cream);
}

body.lp-theme .lp-navbar .nav-link{
  position: relative;
  color: rgba(247,244,238,0.88);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.08rem, 1.18vw, 1.28rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.035em;
  transition: color .22s ease, opacity .22s ease;
}

body.lp-theme .lp-navbar .nav-link:hover,
body.lp-theme .lp-navbar .nav-link:focus,
body.lp-theme .lp-navbar .nav-link.active{
  color: var(--lp-white);
}

body.lp-theme .lp-navbar .nav-link:not(.dropdown-toggle)::after{
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.35rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(217,101,22,0),
    rgba(217,101,22,0.9),
    rgba(217,101,22,0)
  );
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .22s ease;
  opacity: 0.95;
}

body.lp-theme .lp-navbar .nav-link:not(.dropdown-toggle):hover::after,
body.lp-theme .lp-navbar .nav-link:not(.dropdown-toggle):focus::after,
body.lp-theme .lp-navbar .nav-link.active:not(.dropdown-toggle)::after{
  transform: scaleX(1);
}

/* ==========================================
   06.1 NAVBAR – DROPDOWN
========================================== */

body.lp-theme .lp-navbar .dropdown-menu{
  background: var(--lp-cream);
  border: 1px solid #000;
  border-radius: 0;
  box-shadow:
    0 14px 28px rgba(0,0,0,0.14),
    0 2px 0 rgba(217,101,22,0.22);
  padding: 8px 0;
  margin-top: 10px;
  min-width: 240px;
}

body.lp-theme .lp-navbar .dropdown-item{
  color: var(--lp-text-dark);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.025em;
  padding: 10px 16px;
  background: transparent;
  transition: background-color .18s ease, color .18s ease, padding-left .18s ease;
}

body.lp-theme .lp-navbar .dropdown-item:hover,
body.lp-theme .lp-navbar .dropdown-item:focus{
  background: rgba(58,29,22,0.06);
  color: var(--lp-bg-dark);
  padding-left: 20px;
}

body.lp-theme .lp-navbar .dropdown-divider{
  border-top: 1px solid rgba(0,0,0,0.18);
  margin: 6px 0;
}

/* ==========================================
   07. GENERIC SECTION SYSTEM
========================================== */

.lp-section{
  width: 100%;
  padding: 0 0 clamp(32px, 5vh, 56px);
  background: transparent;
}

.lp-section-box{
  background: var(--lp-white);
  border: 1px solid rgba(58,29,22,0.10);
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.lp-section-head{
  background: var(--lp-bg-dark);
  color: var(--lp-cream);
  padding: 16px 22px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  border-radius: 0;
  margin: 0;
}

.lp-section-head--compact{
  padding-top: 14px;
  padding-bottom: 14px;
}

.lp-section-head .lp-kicker{
  color: rgba(247,244,238,0.72);
  opacity: 1;
  margin-bottom: 4px;
}

.lp-section-head .lp-title{
  color: var(--lp-cream);
  margin: 0;
  line-height: 1.05;
}

.lp-section-head .lp-lead{
  color: rgba(247,244,238,0.84);
  opacity: 1;
  width: 100%;
  margin: 8px 0 0;
}

.lp-section-body{
  background: var(--lp-white);
  padding: clamp(20px, 3vw, 32px);
  border-radius: 0;
}

.lp-section-action{
  margin-top: 14px;
}

.lp-section-action--center{
  text-align: center;
}

@media (max-width: 900px){
  .lp-section-head{
    padding: 14px 16px;
  }

  .lp-section-body{
    padding: 18px;
  }
}

/* ==========================================
   08. SHARED HEADING / TEXT STYLES
========================================== */

.lp-heading{
  margin-bottom: var(--sp-head-mb);
  text-align: center;
}

.lp-heading--left{
  text-align: left;
}

.lp-heading--left .lp-lead{
  margin: 0;
  width: min(58ch, 100%);
}

.lp-kicker{
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: var(--fs-kicker);
  color: rgba(42,37,33,0.58);
  opacity: 1;
  margin: 0 0 6px;
}

.lp-title{
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: var(--fs-h2);
  line-height: 1.06;
  margin: 10px 0 8px;
  color: var(--lp-text-dark);
}

.lp-lead{
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: var(--fs-lead);
  color: rgba(42,37,33,0.78);
  width: min(62ch, 100%);
  margin: 0 auto;
}

/* ==========================================
   09. GENERIC CARD + BUTTONS
========================================== */

.lp-card{
  background: var(--lp-white);
  border: 1px solid rgba(58,29,22,0.10);
  border-radius: 0;
  box-shadow: none;
  padding: 24px;
}

.lp-card:hover{
  transform: none;
  border-color: rgba(58,29,22,0.10);
  box-shadow: none;
}

.lp-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 0;
  text-decoration: none;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  transition: .2s ease;
}

.lp-btn,
.lp-btn:visited,
.lp-btn:hover,
.lp-btn:focus,
.lp-btn:active{
  color: var(--lp-cream);
  text-decoration: none;
}



.lp-btn--dark{
  background: var(--lp-bg-dark);
  border-color: rgba(0,0,0,0.10);
}

.lp-btn--dark:hover{
  background: var(--lp-bg-warm);
  color: var(--lp-cream);
}


.lp-btn--green{
  background: var(--lp-green);
  border-color: rgba(0,0,0,0.10);
}

.lp-btn--green:hover{
  background: var(--lp-green-hover);
  color: var(--lp-cream);
}


/* ==========================================
   10. OPTIONAL LIGHT / DARK HELPERS
========================================== */

.lp-section-light{
  background: var(--lp-cream);
  color: var(--lp-text-dark);
}

.lp-section-dark{
  background: transparent;
  color: inherit;
}

/* ==========================================
   11. FOOTER
========================================== */

body.lp-theme .lp-footer{
  background: linear-gradient(180deg, var(--lp-bg-warm), var(--lp-bg-dark));
  color: var(--lp-text-light);
  border-top: 1px solid var(--lp-line);
  position: relative;
}

body.lp-theme .lp-footer::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:2px;
  background: linear-gradient(90deg, transparent, var(--lp-accent), transparent);
  opacity: .8;
}

body.lp-theme .lp-footer small{
  color: var(--lp-text-muted);
}

body.lp-theme .lp-footer .footer-links .nav-link{
  color: rgba(245,242,236,0.85);
  padding: 0;
  text-decoration: none;
  position: relative;
}

body.lp-theme .lp-footer .footer-links .nav-link:hover{
  color: #fff;
}

body.lp-theme .lp-footer .footer-links .nav-link::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--lp-green);
  transition: width .25s ease;
}

body.lp-theme .lp-footer .footer-links .nav-link:hover::after{
  width: 100%;
}