/* ============================================================
   DeFratta Winery — Custom CSS
   Dark luxury wine brand design system
   ============================================================ */

/* --- CSS Variables ----------------------------------------- */
:root{
  --df-bg:#0d0d0f; --df-bg-2:#111215; --df-bg-3:#17181c;
  --df-accent:#a24a27; --df-accent-2:#7f3a1f;
  --df-text:#ffffff; --df-muted:rgba(255,255,255,0.65);
  --df-border:rgba(255,255,255,0.08);
  --df-font:"DM Sans",sans-serif;
  --df-serif:"EB Garamond",serif;
  --df-script:"skriptni_font",serif;
}

/* --- Custom Fonts ------------------------------------------ */
@font-face{
  font-family:"skriptni_font";
  src:url("../fonts/skriptni_font.woff2") format("woff2"),
      url("../fonts/skriptni_font.woff") format("woff");
  font-weight:400;
  font-style:normal;
  font-display:swap;
}

@font-face{
  font-family:"skriptni_font";
  src:url("../fonts/skriptni_font_italic.woff2") format("woff2"),
      url("../fonts/skriptni_font_italic.woff") format("woff");
  font-weight:400;
  font-style:italic;
  font-display:swap;
}

/* --- Base -------------------------------------------------- */
html{
  scroll-behavior:smooth;
  overflow-x:hidden;
}

body{
  font-family:var(--df-font);
  background:var(--df-bg);
  color:var(--df-text);
  overflow-x:hidden;
}

/* --- Typography -------------------------------------------- */
.skriptni_font,
.skriptni_font_hero{
  font-family:var(--df-script);
  font-weight:400;
  letter-spacing:1px;
  color:var(--df-text);
}

.skriptni_font{
  font-size:clamp(48px, 7vw, 100px);
}

.skriptni_font_hero{
  font-size:clamp(58px, 11vw, 150px);
}

/* When used as section-caption, suppress template text-transform */
.section-caption.skriptni_font{ text-transform:none !important; }

/* Standalone section-caption (non-script, non-garamond) — small label above headings */
.section-caption:not(.skriptni_font):not(.garamond-h2):not(.garamond-h3){
  font-size:13px;
  letter-spacing:2.5px;
  text-transform:uppercase;
  color:rgba(255,255,255,.45);
  font-weight:500;
  margin-bottom:14px;
}

.garamond-h2,
.garamond-h3{
  font-family:var(--df-serif);
  font-weight:500;
  line-height:1.2;
  color:var(--df-text);
  margin-bottom:20px;
}

.garamond-h2{ font-size:clamp(26px, 3.5vw, 46px); }
.garamond-h3{ font-size:clamp(20px, 2.5vw, 30px); }

.df-winery-text{
  font-size:clamp(15px, 1.3vw, 17px);
  line-height:1.9;
  color:var(--df-muted);
  max-width:680px;
  margin:0 auto;
}

/* --- Logo -------------------------------------------------- */
.logo-img{ width:200px; height:auto; }

/* --- Sections ---------------------------------------------- */
.after-hero-section{
  background:#111;
  position:relative;
}

/* Left dark gradient over image */
.df-left-gradient{ position:relative; overflow:hidden; }

.df-left-gradient::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    90deg,
    rgba(0,0,0,.92) 0%,
    rgba(0,0,0,.85) 25%,
    rgba(0,0,0,.65) 45%,
    rgba(0,0,0,.35) 65%,
    rgba(0,0,0,0) 85%
  );
  z-index:1;
}

.df-left-gradient .container{ position:relative; z-index:2; }

/* --- Title decorative line --------------------------------- */
.df-title-line{
  position:relative;
  display:inline-block;
  line-height:1.0;
  padding-bottom:10px;
}

.df-title-line::after{
  content:"";
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom:2px;
  width:130%;
  height:20px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 20'%3E%3Cdefs%3E%3ClinearGradient id='cg' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%23a24a27' stop-opacity='0'/%3E%3Cstop offset='.25' stop-color='%23a24a27' stop-opacity='.75'/%3E%3Cstop offset='.75' stop-color='%237f3a1f' stop-opacity='.65'/%3E%3Cstop offset='1' stop-color='%237f3a1f' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 10 C120 7 240 13 360 9 C480 5 540 11 600 9' fill='none' stroke='url(%23cg)' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
  background-size:100% 100%;
}

/* --- Award medals ------------------------------------------ */
/* Small badge overlay on wine slider cards */
.df-wine-media{ position:relative; }
.df-wine-medal{
  position:absolute;
  top:8px;
  right:8px;
  width:58px;
  height:58px;
  object-fit:contain;
  filter:drop-shadow(0 2px 8px rgba(0,0,0,.55));
  pointer-events:none;
  z-index:2;
}

/* Larger medal next to heading in preview sections */
.df-preview-medals{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:20px;
  flex-wrap:wrap;
}
.df-preview-medal{
  width:80px;
  height:80px;
  object-fit:contain;
  filter:drop-shadow(0 3px 10px rgba(0,0,0,.45));
  flex-shrink:0;
}

/* --- Utility ----------------------------------------------- */
.pb-80{ padding-bottom:80px; }

/* --- Buttons ----------------------------------------------- */
.btn-korten{
  display:inline-block;
  padding:9px 24px;
  font-size:10px;
  font-weight:600;
  letter-spacing:2px;
  text-transform:uppercase;
  border-radius:2px;
  color:#f3eee9;
  text-decoration:none;
  background:linear-gradient(135deg,#2c140e,#a24a27,#2a120c);
  border:1px solid #5e2c17;
  transition:.3s ease;
}
.btn-korten:hover{
  transform:translateY(-2px);
  box-shadow:0 4px 18px rgba(162,74,39,.25);
  color:#fff;
}

.btn-blackgrad{
  display:inline-block;
  padding:9px 24px;
  font-size:10px;
  font-weight:600;
  letter-spacing:2px;
  text-transform:uppercase;
  color:var(--df-text);
  text-decoration:none;
  background:linear-gradient(180deg,#0a0a0b,#1b1b1f);
  border:1px solid rgba(255,255,255,.12);
  transition:.3s ease;
}
.btn-blackgrad:hover{ transform:translateY(-2px); color:#fff; }

/* --- Custom Header ----------------------------------------- */
.df-header{
  position:fixed;
  top:0; left:0; right:0;
  z-index:1000;
  transition:background .35s ease, box-shadow .35s ease;
}

.df-header-inner{
  display:flex;
  align-items:center;
  height:68px;
  padding:0 36px;
  gap:0;
  position:relative;
}

.df-header.df-scrolled{
  background:rgba(10,10,12,.96);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}

/* Logo */
.df-logo{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  text-decoration:none;
  margin-right:36px;
}
.df-logo img{ height:28px; width:auto; display:block; }

/* Desktop nav */
.df-nav{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  flex:none;
}

.df-nav-list{
  display:flex;
  align-items:center;
  list-style:none;
  margin:0; padding:0;
  gap:0;
}
.df-nav-list li{ display:inline-block; }
.df-nav-list a{
  display:block;
  padding:0 13px;
  font-size:10.5px;
  letter-spacing:1.8px;
  text-transform:uppercase;
  font-weight:500;
  color:rgba(255,255,255,.62);
  text-decoration:none;
  transition:color .2s;
  white-space:nowrap;
}
.df-nav-list a:hover{ color:#fff; }
.df-nav-list a.is-active{
  color:#fff;
  position:relative;
}
.df-nav-list a.is-active::after{
  content:"";
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom:-14px;
  width:130%;
  height:20px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 20'%3E%3Cdefs%3E%3ClinearGradient id='cg' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%23a24a27' stop-opacity='0'/%3E%3Cstop offset='.25' stop-color='%23a24a27' stop-opacity='.75'/%3E%3Cstop offset='.75' stop-color='%237f3a1f' stop-opacity='.65'/%3E%3Cstop offset='1' stop-color='%237f3a1f' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 10 C120 7 240 13 360 9 C480 5 540 11 600 9' fill='none' stroke='url(%23cg)' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
  background-size:100% 100%;
  pointer-events:none;
}

/* Header right: lang + social */
.df-header-right{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:14px;
  margin-left:auto;
}

/* Language switcher */
.df-lang-switch{ display:flex; align-items:center; gap:4px; }
.df-lang{
  font-size:9.5px;
  font-weight:700;
  letter-spacing:1.5px;
  text-transform:uppercase;
  color:rgba(255,255,255,.35);
  text-decoration:none;
  transition:.2s;
  line-height:1;
}
.df-lang:hover{ color:rgba(255,255,255,.8); }
.df-lang-active{ color:rgba(255,255,255,.72); }
.df-lang-sep{ color:rgba(255,255,255,.15); font-size:9px; }

/* Header social */
.df-header-social{ display:flex; align-items:center; gap:12px; }
.df-header-social a{
  color:rgba(255,255,255,.4);
  font-size:15px;
  text-decoration:none;
  transition:.2s;
  display:flex; align-items:center;
}
.df-header-social a:hover{ color:#fff; }

/* Hamburger button */
.df-hamburger{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  background:none;
  border:none;
  cursor:pointer;
  padding:6px;
  margin-left:auto;
}
.df-hamburger span{
  display:block;
  width:22px; height:1.5px;
  background:rgba(255,255,255,.8);
  transition:transform .3s ease, opacity .2s ease;
  transform-origin:center;
}
.df-hamburger.df-ham-active span:nth-child(1){ transform:translateY(6.5px) rotate(45deg); }
.df-hamburger.df-ham-active span:nth-child(2){ opacity:0; transform:scaleX(0); }
.df-hamburger.df-ham-active span:nth-child(3){ transform:translateY(-6.5px) rotate(-45deg); }

/* Mobile dropdown */
.df-mobile-menu{
  display:block;
  max-height:0;
  overflow:hidden;
  background:rgba(8,8,10,.98);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  transition:max-height .4s cubic-bezier(0.4,0,0.2,1);
}
.df-mobile-menu.df-mobile-open{
  max-height:600px;
  border-top:1px solid rgba(255,255,255,.05);
}

.df-mobile-list{
  list-style:none;
  margin:0; padding:8px 28px 4px;
}
.df-mobile-list li{ border-bottom:1px solid rgba(255,255,255,.05); }
.df-mobile-list li:last-child{ border-bottom:none; }
.df-mobile-list a{
  display:block;
  padding:15px 0;
  font-size:12px;
  letter-spacing:2px;
  text-transform:uppercase;
  font-weight:500;
  color:rgba(255,255,255,.7);
  text-decoration:none;
  transition:color .2s;
}
.df-mobile-list a:hover,
.df-mobile-list a.is-active{ color:#fff; }

.df-mobile-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 28px 24px;
  border-top:1px solid rgba(255,255,255,.05);
}
.df-mobile-social{ display:flex; gap:18px; }
.df-mobile-social a{
  color:rgba(255,255,255,.5);
  font-size:18px;
  text-decoration:none;
  transition:.2s;
}
.df-mobile-social a:hover{ color:#fff; }

/* Responsive header breakpoints */
@media(max-width:1200px){
  .df-nav-list a{ padding:0 10px; font-size:10px; }
  .df-header-inner{ padding:0 24px; }
}
@media(max-width:960px){
  .df-nav{ display:none; }
  .df-header-right{ display:none; }
  .df-hamburger{ display:flex; }
}

/* --- Experience gallery ------------------------------------ */
.df-experience-section{
  padding:100px 0 100px;
  background:var(--df-bg);
}
.df-experience-head{
  text-align:center;
  padding-bottom:60px;
}
.df-exp-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:5px;
}
.df-exp-item{
  overflow:hidden;
  position:relative;
  display:block;
}
.df-exp-item img{
  width:100%; height:100%;
  object-fit:cover; display:block;
  min-height:220px;
  transition:transform .5s ease;
}
.df-exp-item:hover img{ transform:scale(1.06); }

/* Featured items — larger cells */
.df-exp-item:nth-child(1){ grid-column:span 2; grid-row:span 2; }
.df-exp-item:nth-child(1) img{ min-height:446px; }
.df-exp-item:nth-child(6){ grid-column:span 2; }
.df-exp-item:nth-child(6) img{ min-height:220px; }
.df-exp-item:nth-child(10){ grid-column:span 2; grid-row:span 2; }
.df-exp-item:nth-child(10) img{ min-height:446px; }

@media(max-width:767px){
  .df-exp-grid{ grid-template-columns:repeat(2,1fr); }
  .df-exp-item:nth-child(1),
  .df-exp-item:nth-child(6),
  .df-exp-item:nth-child(10){ grid-column:span 1; grid-row:span 1; }
  .df-exp-item img,
  .df-exp-item:nth-child(1) img,
  .df-exp-item:nth-child(10) img{ min-height:160px; }
}
@media(max-width:480px){
  .df-exp-grid{ grid-template-columns:1fr; gap:3px; }
  .df-exp-item img{ min-height:200px; }
}

/* --- Wines slider ------------------------------------------ */
.df-wines-section{
  background:radial-gradient(120% 140% at 50% 0%,#000 0%,#16171b 100%);
  padding:100px 0;
}

.df-wines-head{ text-align:center; margin-bottom:50px; }
.df-wines-wrap{ width:100vw; margin-left:calc(50% - 50vw); }
.df-wine-item{ padding:20px; }

.df-wine-card{ text-align:center; transition:.35s ease; }
.df-wine-card:hover{ transform:translateY(-8px); }

.df-wine-title{
  font-family:var(--df-serif);
  font-size:clamp(16px,1.5vw,22px);
  font-weight:300;
  margin-bottom:20px;
  color:rgba(255,255,255,.85);
}

.df-wine-media{
  height:480px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  margin-bottom:20px;
  position:relative;
}

.df-wine-media img:not(.df-wine-medal){
  height:100%;
  width:auto;
  object-fit:contain;
  filter:drop-shadow(0 20px 25px rgba(0,0,0,.4));
}

/* Owl carousel nav */
.df-wines-slider{ position:relative; }
.df-wines-slider .owl-dots,
.df-wines-slider .owl-pagination,
.df-wines-slider .owl-controls{ display:none !important; }

/* --- Gallery ----------------------------------------------- */
.post-prev-img{
  height:350px;
  overflow:hidden;
  border-radius:2px;
}
.post-prev-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .4s ease;
}
.post-prev-img:hover img{ transform:scale(1.04); }

.df-gallery-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .4s ease;
}

/* --- Footer brand top area --------------------------------- */
.df-footer-top{
  text-align:center;
  padding:70px 0 50px;
  margin-bottom:60px;
  border-bottom:1px solid var(--df-border);
}

.df-footer-tagline-wrap{ display:inline-block; position:relative; }

.df-footer-logo{
  display:block;
  width:160px;
  height:auto;
  margin:0 auto 4px;
  filter:brightness(0) invert(1);
  opacity:.85;
}

.df-footer-wave{
  display:block;
  width:100%;
  height:40px;
  margin-top:2px;
  opacity:.75;
}

/* Footer column titles */
.fw-title{
  font-size:10px !important;
  font-weight:700 !important;
  letter-spacing:2.5px !important;
  text-transform:uppercase !important;
  color:rgba(255,255,255,.35) !important;
  margin-bottom:18px !important;
}

.fw-menu{ list-style:none; padding:0; margin:0; }
.fw-menu li{ margin-bottom:9px; }
.fw-menu a{ font-size:14px; color:rgba(255,255,255,.6); text-decoration:none; transition:.2s; }
.fw-menu a:hover{ color:#fff; padding-left:4px; }

/* Contact lines */
.clearlinks{ margin-bottom:10px; }
.clearlinks strong{
  display:block;
  font-size:9px;
  letter-spacing:2px;
  text-transform:uppercase;
  color:rgba(255,255,255,.3);
  margin-bottom:2px;
}
.clearlinks,
.clearlinks a{
  font-size:14px;
  color:rgba(255,255,255,.6);
  text-decoration:none;
  transition:.2s;
}
.clearlinks a:hover{ color:#fff; }

/* Bottom bar */
.df-footer-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:22px 0;
  border-top:1px solid var(--df-border);
  font-size:12px;
  color:rgba(255,255,255,.28);
  letter-spacing:.4px;
  flex-wrap:wrap;
  gap:12px;
}
.df-footer-bottom a{ color:rgba(255,255,255,.28); text-decoration:none; transition:.2s; }
.df-footer-bottom a:hover{ color:rgba(255,255,255,.65); }

.df-scroll-top{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border:1px solid rgba(255,255,255,.15);
  border-radius:50%;
  color:rgba(255,255,255,.5);
  text-decoration:none;
  font-size:15px;
  transition:.25s;
}
.df-scroll-top:hover{
  border-color:rgba(255,255,255,.4);
  color:#fff;
  transform:translateY(-2px);
}

/* --- Responsive breakpoints -------------------------------- */
@media(max-width:1199px){
  /* tablet landscape — intentionally sparse; fluid sizing handles most cases */
}

@media(max-width:767px){
  .skriptni_font         { font-size:clamp(81px,7vw,100px); }
  .garamond-h2           { font-size:clamp(34px,3.5vw,46px); }
  .section-caption.garamond-h2 { font-size:clamp(23px,3.5vw,46px); }
  .section-caption.garamond-h2 + p { font-weight:300; }
  .garamond-h3           { font-size:clamp(33px,2.5vw,34px); }
  .home-content          { width:100%; text-align:center; }
  .home-section .min-height-100vh { min-height:70vh !important; }
  .logo-img { width:115px; }
}

@media(max-width:991px){
  .df-wine-media{ height:360px; }
  .df-footer-top{ padding:50px 0 40px; margin-bottom:48px; }
}

@media(max-width:767px){
  .df-wine-media{ height:432px; }
  .df-wine-title{ font-size:20px; }
}

@media(max-width:767px){
  .df-footer-bottom{ flex-direction:column; align-items:flex-start; gap:8px; }
  .df-footer-bottom .df-scroll-top{ align-self:flex-end; margin-top:-32px; }
}

@media(max-width:575px){
  .df-wine-media{ height:384px; }
  .post-prev-img{ height:260px; }
  .df-footer-top{ padding:40px 0 32px; margin-bottom:36px; }
}
