/* =============================
   PinoFood — styles.css (CLEAN)
   Primary: #203c69
   ============================= */

:root{
  --primary:#203c69;
  --primary-rgb:32,60,105;
  --primary-900:#182f52;
  --accent:#e67e22;
  --logo-red:#BB0420;
  --bg:#f7f9fc;
  --text:#2b2b2b;
}

*{ box-sizing:border-box; }
html,body{
  margin:0;
  padding:0;
  font-family: "OpenSauce", system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; height:auto; display:block; }
.container{ max-width:1100px; margin:0 auto; padding:0 20px; }
main{
  padding-top:80px;
}

/* font selection */
@font-face{
  font-family: "OpenSauce";
  src: url("fonts/Open-Sauce-Sans/OpenSauceSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: "OpenSauce";
  src: url("fonts/Open-Sauce-Sans/OpenSauceSans-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: "OpenSauce";
  src: url("fonts/Open-Sauce-Sans/OpenSauceSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: "OpenSauce";
  src: url("fonts/Open-Sauce-Sans/OpenSauceSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body{
  font-family: "OpenSauce", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}



/* =============================
   HEADER (default pages)
   ============================= */
.header{
  position:fixed;
  top:0;
  z-index:1000;
  background: var(--primary);
  color:#fff;
}

.header-inner{
  position:relative; /* required for mobile dropdown positioning */
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 20px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.brand img{
  max-height:70px;
  width:auto;
  border-radius:8px;
}

.nav{
  display:flex;
  gap:22px;
}

.nav a{
  color:#fff;
  font-weight:700;
  font-size:1.1rem;
  padding:8px 14px;
  border-radius:10px;
  transition:background .2s ease;
}

.nav a:hover{
  background: rgba(255,255,255,.12);
}

/* =============================
   HEADER OVER HERO (home / hero pages)
   Use: <header class="header header--hero">
   ============================= */ 

.header--hero::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  /* strong until around logo height, then fades */
  background: linear-gradient(
    to bottom,
    rgba(var(--primary-rgb),1)    0%,
    rgba(var(--primary-rgb),0.98) 24%,
    rgba(var(--primary-rgb),0.92) 42%,
    rgba(var(--primary-rgb),0.82) 56%,
    rgba(var(--primary-rgb),0.55) 68%,
    rgba(var(--primary-rgb),0.25) 78%,
    rgba(var(--primary-rgb),0.10) 86%,
    rgba(var(--primary-rgb),0.00) 94%
  );
}

/* Make sure gradient sits behind content */
.header--hero{
  position: fixed;
  left:0;
  right:0;
  top: 0;
  background: transparent;
  z-index: 1000;
}
.header--hero .header-inner{
  position: relative; /* needed for z-index + dropdown positioning */
  z-index: 2;
  padding: 18px 20px;
}

/* Desktop layout: left nav | logo | right nav */
.header-center{
  display: grid;
  grid-template-columns: max-content auto max-content;
  align-items: center;
  gap: 12px; /* distance from logo */
}

.nav-left{ justify-self: end;}
.nav-right{ justify-self: start; }

.brand-center{
  display:flex;
  align-items:center;
  justify-content:center;
}
.brand-center img{
  height: 70px;
  width: auto;
  border-radius: 0;
}

/* Desktop nav style */
.header--hero .nav{
  display: flex;
  gap: 12px;
  align-items: center;
}
.header--hero .nav a{
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 10px;
  border-radius: 10px;
}
.header--hero .nav a:hover{
  background: rgba(255,255,255,.14);
}

/* IMPORTANT: hide mobile stuff on desktop */
.nav-toggle{ display: none; }
.nav-mobile{ display: none; }

/* Mobile only */
@media (max-width: 820px){

  /* Hide desktop left/right menus */
  .header--hero .nav-left,
  .header--hero .nav-right{
    display: none;
  }

  /* Center just the logo, burger sits on the right */
  .header-center{
    grid-template-columns: 1fr auto 1fr;
  }
  .brand-center{ grid-column: 2; }
  .nav-toggle{ grid-column: 3; justify-self: end; }

  /* Burger button */
  .nav-toggle{
    display: block;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255,255,255,.10);
    cursor: pointer;
    padding: 10px;
  }
  .nav-toggle span{
    display:block;
    height:2px;
    background:#fff;
    border-radius:2px;
    margin:6px 0;
  }

  /* Dropdown */
  .nav-mobile{
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 20px;
    right: 20px;
    background: rgba(32,60,105,.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
    flex-direction: column;
    gap: 6px;
    z-index: 9999;
  }
  .nav-mobile.open{ display: flex; }

  .nav-mobile a{
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 12px 14px;
    border-radius: 12px;
    text-align: center;
  }
  .nav-mobile a:hover{
    background: rgba(187,4,32,.22);
  }
}

/* =============================
   HERO CAROUSEL
   ============================= */
.hero-carousel{
  position:relative;
  min-height:90vh;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-top:-80px;
}

.hero-slides{
  position:absolute;
  inset:0;
  z-index:1;
}

.hero-slide{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  opacity:0;
  transition:opacity 1.2s ease;
}

.hero-slide.active{ opacity:1; }

/* Hero text */
.hero-center{
  position:relative;
  z-index:3;
  text-align:center;
  color:#fff;
  max-width:900px;
  width:100%;
  padding:0 20px;

  transform: translateY(20px);
  opacity: 0;
  transition: opacity 1.2s ease, transform 1.2s ease;
}

/* when active */
.hero-center.show{
  opacity: 1;
  transform: translateY(0);
}



.hero-center h1{
  margin:0 0 12px;
  font-size:clamp(2rem,4vw,3.2rem);
  letter-spacing:.08em;
  text-transform:uppercase;
  text-shadow:0 10px 30px rgba(0,0,0,.35);
}

.hero-center p{
  margin:0 auto;
  max-width:760px;
  font-size:1.1rem;
  opacity:.95;
  text-shadow:0 8px 24px rgba(0,0,0,.35);
}

/* =============================
   HERO CAROUSEL DOTS
   ============================= */

.hero-dots{
  position:absolute;
  bottom:30px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:10px;
  z-index:4;
}

.hero-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:rgba(255,255,255,.45);
  cursor:pointer;
  transition:all .25s ease;
  flex: 0 0 auto;
  transform: none;
}

.hero-dot:hover{
  background:rgba(255,255,255,.75);
}

.hero-dot.active{
  background:#fff;
  transform:scale(1.25);
}

/* =============================
   VIDEO SECTION (after hero)
   ============================= */

.video-section{
  padding: 80px 0;
}

.hero-video{
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: block;

  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
}

@media (max-width: 768px){
  .video-section{
    padding: 40px 0;
  }

  .hero-video{
    border-radius: 16px;
  }
}

/* =============================
   WHO WE ARE / OUR PRINCIPLES
   ============================= */
.who{
  padding:80px 0;
}

.who-wrap{
  display:grid;
  grid-template-columns:420px 1fr;
  gap:56px;
  align-items:center;
}

.who-media img{
  width:100%;
  height:520px;
  object-fit:cover;
  border-radius:28px;
  box-shadow:0 18px 45px rgba(0,0,0,.12);
}

.who-content h2{
  margin:0 0 18px;
  font-size:clamp(2rem,4vw,3.2rem);
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--primary);
  text-align:left;
}

.who-content p{
  margin:0;
  max-width:720px;
  font-size:1.05rem;
  line-height:1.9;
  opacity:.9;
}



/* =============================
   ABOUT PAGE — tidy 2-column layout
   ============================= */

.about-section{
  padding: 70px 0;
  padding-top: 120px;
}

.about-row{
  display: grid;
  grid-template-columns: minmax(320px, 520px) minmax(360px, 1fr);
  gap: 56px;
  align-items: center;
  justify-items: center;
  justify-content: center;
}

/* If you alternate image/text, add .reverse on the row */
.about-row.reverse{
  grid-template-columns: minmax(360px, 1fr) minmax(320px, 520px);
}
.about-row.reverse .about-media{ order: 2; }
.about-row.reverse .about-text{ order: 1; }

/* media */
.about-media{
  display: flex;
  justify-content: center;
  margin-bottom: 0px;
}

.about-media img{
  width: 100%;
  max-width: 520px;
  height: 560px;              /* consistent “card” size */
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 18px 45px rgba(0,0,0,.12);
}

/* text */
.about-text{
  display: flex;
  flex-direction: column;
  justify-content: center;   /* vertical center */
  align-items: center;       /* horizontal center */
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.about-text h2{
  margin: 0 0 16px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--primary);
}

.about-text p{
  margin: 0;
  line-height: 1.9;
  opacity: .9;
}

.about-text,
.about-media{
  justify-self: center;
}

/* Give breathing room between multiple blocks */
.about-section + .about-section{
  padding-top: 0;
  margin-top: 40px;
}


.about-divider{
  width: 120px;
  height: 1px;
  margin: 90px auto;
  background: linear-gradient(
    to right,
    transparent,
    rgba(32,60,105,0.35),
    transparent
  );
}

/* Collapse earlier so columns don’t fight */
@media (max-width: 980px){
  .about-row,
  .about-row.reverse{
    grid-template-columns: 1fr;
    gap: 26px;
    align-items: center;
  }

  .about-media img{
    height: 380px;
  }

  .about-section{
    padding: 70px 0;
  }

  .about-media{
    margin-bottom: 24px;
  }

  .about-text{
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    padding: 0 10px;
  }

  .about-text p{
    margin: 0 auto;
  }
}

/* FORCE fixes */
.about-row > .about-text{
  justify-self: center !important; /* centers the whole text column inside the grid */
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* space below sticky header */
.about-section{
  padding-top: 110px !important;
}



/* =============================
   SECTIONS / CARDS
   ============================= */
.section{ padding:38px 0; }

.section h2{
  color:var(--primary);
  font-size:1.65rem;
  margin:0 0 12px;
  text-align:center;
}

.section p.lead{
  text-align:center;
  max-width:820px;
  margin:0 auto 22px;
  opacity:.9;
  line-height:1.55;
}

.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.card{
  background:#fff;
  border-radius:16px;
  box-shadow:0 6px 24px rgba(0,0,0,.08);
  padding:18px;
}

.card h3{ margin:0 0 10px; color:var(--primary); }

/* =============================
   FEATURES SECTION (home)
   Two centered image cards
   ============================= */

.features-section{
  position: relative;
  padding: 70px 0;
  background: none; /* remove background */
}

/* Center 2 cards */
.features-section .grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 420px));
  gap: 40px;
  justify-content: center; /* ✅ centers the two cards */
}

/* Card becomes an image container */
.features-section .card{
  background: none;
  padding: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,0.18);
  transition: transform .25s ease, box-shadow .25s ease;
}

/* Hover */
.features-section .card:hover{
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 28px 60px rgba(0,0,0,0.25);
}

/* Image fills the card */
.features-section .card img{
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

/* Make entire card clickable */
.features-section .card a{
  display: block;
}

/* wrapper */
.feature-item{
  text-align: center;
}

/* image card only */
.feature-card{
  display: block;
  padding: 0;                 /* remove inner padding */
  background: transparent;    /* no white background */
  box-shadow: none;           /* optional */
}

/* image */
.feature-card img{
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
  transition: transform .25s ease, box-shadow .25s ease;
}

/* hover */
.feature-card:hover img{
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 28px 60px rgba(0,0,0,.25);
}

/* title under image */
.feature-title{
  margin-top: 18px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
}

@media (max-width: 700px){
  .features-section .grid{
    grid-template-columns: 1fr;
  }

  .features-section .card img{
    height: 260px;
  }
}

/* =============================
   PRODUCTS OVERVIEW (products.html)
   ============================= */
.product-list{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:22px;
}

.product{
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
  text-align:center;
  transition:transform .18s ease, box-shadow .18s ease;
}

.product:hover{
  transform:translateY(-4px);
  box-shadow:0 16px 40px rgba(0,0,0,.12);
}

.product img{
  width:100%;
  height:350px;
  object-fit:cover;
}

.product .info{ padding:20px; }

.product .info h3{
  margin:0 0 8px;
  color:var(--primary);
  font-size:1.3rem;
}

.product .info p{
  margin:0 0 18px;
  opacity:.9;
  line-height:1.5;
}

.product .info a.cta{
  display:inline-block;
  padding:12px 20px;
  border-radius:12px;
  font-weight:700;
  background:var(--logo-red);
  color:#fff;
  box-shadow:0 10px 24px rgba(187,4,32,.25);
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.product .info a.cta:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 30px rgba(187,4,32,.35);
  filter:brightness(.95);
}

/* Detail page headings */
.product-block h2{
  text-align:center;
  font-size:2.2rem;
  letter-spacing:.5px;
  color:var(--primary);
}

/* =============================
   PRODUCT DETAIL PAGES
   Requires: <body class="product-page">
   ============================= */
body.product-page{
  background-image:url('img/uliveto3.png');
  background-size:cover;
  background-position:center;
  background-attachment:fixed;
  background-repeat:no-repeat;
}

/* Glass boxes */
body.product-page .product-card,
body.product-page .product-image-box{
  background:rgba(255,255,255,0.55) !important;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  border-radius:22px;
  box-shadow:0 20px 50px rgba(0,0,0,0.18);
}

.product-row{
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:20px;
  align-items:stretch;
}

.product-gallery{
  width:100%;
  max-width:420px;
  justify-self:end;
  display:flex;
  flex-direction:column;
}

.product-image-box{
  width:100%;
  padding:22px;
  position:relative;
  aspect-ratio:1/1;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.product-image-box img{
  width:100%;
  height:100%;
  object-fit:contain;
  transition:opacity .2s ease;
}

.slider-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:transparent;
  color:#fff;
  border:none;
  width:38px;
  height:38px;
  border-radius:50%;
  cursor:pointer;
  font-size:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all .2s ease;
}

.slider-btn:hover{
  background: rgba(32,60,105,.15);
  transform:translateY(-50%) scale(1.1);
}

.slider-btn.left{ left:12px; }
.slider-btn.right{ right:12px; }

.slider-dots{
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.slider-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(32,60,105,.35);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.slider-dot.active{
  background: var(--primary);
  transform: scale(1.3);
}

/* Optional olives background */
body.olives-page{
  background-image:url('img/olivefield.png');
  background-size:cover;
  background-position:center;
  background-attachment:fixed;
  background-repeat:no-repeat;
}


/* =============================
   FOOTER (TALL, 2-COLUMN)
   ============================= */

.footer{
  background: var(--primary-900);
  color: #d8e1ef;
  padding: 24px 20px; /* taller */
}

.footer-inner{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* LEFT */
.footer-brand img{
  height: 120px;
  margin-bottom: 0px;
}

.footer-brand{
  display:flex;
  align-items:center;
}

.footer-brand p{
  opacity: .85;
  font-size: .95rem;
}

/* RIGHT */
.footer-contact h4{
  margin: 0 0 14px;
  font-size: 1.05rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
}

.footer-contact p{
  margin: 0 0 12px;
  line-height: 1.5;
}

.footer-contact a{
  color: #ffdd99;
  font-weight: 700;
}

/* Social icons */
.footer-socials{
  display: flex;
  gap: 14px;
  margin-top: 10px;
}

.footer-socials a{
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.social-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
}

.social-icon:hover{
  color: var(--logo-red);
}

/* Bottom copyright */
.footer-bottom{
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  text-align: center;
  font-size: .85rem;
  opacity: .8;
}



/* =============================
   FOOTER RESPONSIVE
   ============================= */
@media (max-width: 700px){
  .footer-inner{
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .footer-socials{
    justify-content: center;
  }

  .footer-brand{
    justify-content:center;
  }

  .footer-brand img{
    margin: 0 auto 14px;
  }
}

/* =============================
   RESPONSIVE FIXES (ADD AT END)
   ============================= */

html, body{ overflow-x:hidden; } /* prevents random horizontal scroll */

/* Tablet + down */
@media (max-width: 900px){

  /* WHO section stacks */
  .who-wrap{
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .who-media img{
    height: 360px;
  }
  .who-content h2,
  .who-content p{
    text-align:center;
    margin-left:auto;
    margin-right:auto;
  }

  /* PRODUCT pages stack (this is the big missing piece) */
  .product-row{
    grid-template-columns: 1fr;
  }
  .product-gallery{
    max-width: 420px;
    justify-self: center;
    margin-top: 12px;
  }
}

/* Mobile */
@media (max-width: 820px){

  /* Hero overlap is too aggressive on mobile */
  .hero-carousel{
    margin-top: -20px;
    min-height: 80vh;
  }

  /* Disable "fixed" backgrounds on mobile (causes broken/janky rendering) */
  body.product-page,
  body.olives-page{
    background-attachment: scroll;
  }

  /* Make product cards breathe */
  body.product-page .product-card,
  body.product-page .product-image-box{
    border-radius: 18px;
  }
}