/*
Theme Name: Drinks247Planets
Theme URI: https://example.com
Author: DRINKS247PLANETS
Description: Wholesale beverage & F&B distributor theme for DRINKS247PLANETS. Built for WooCommerce, with a request-a-quote friendly homepage.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: drinks247planets
*/

:root{
  --ink:#0B1230;
  --ink-soft:#182248;
  --paper:#EFFBF6;
  --teal:#0F6B63;
  --teal-dark:#084F49;
  --orange:#FF6B35;
  --orange-dark:#C74E22;
  --lime:#C6FF4D;
  --lime-dark:#5B7A0F;
  --text:#10241F;
  --muted:#4B6058;
  --line:#D3E6DE;
}
*{box-sizing:border-box;margin:0;padding:0;}
body{
  font-family:'Inter',sans-serif;
  background:var(--paper);
  color:var(--text);
  line-height:1.5;
}
h1,h2,h3{font-family:'Space Grotesk',sans-serif;font-weight:700;letter-spacing:-0.02em;}
.mono{font-family:'IBM Plex Mono',monospace;}
.wrap{max-width:1180px;margin:0 auto;padding:0 32px;}
a{color:inherit;text-decoration:none;}
img{max-width:100%;display:block;}

/* top bar */
.topbar{background:var(--ink);color:#B9C6E0;font-size:12.5px;}
.topbar .wrap{display:flex;justify-content:space-between;align-items:center;height:36px;}
.topbar .live{color:var(--lime);}
.topbar .live::before{content:"\25CF ";}
.topbar nav a{margin-left:20px;color:#8FA1C9;}
.topbar nav a:hover{color:#fff;}

/* header */
header#site-header{background:var(--ink);padding:20px 0 26px;}
header#site-header .wrap{display:flex;justify-content:space-between;align-items:center;}
.logo{display:flex;align-items:baseline;gap:6px;color:#fff;font-size:21px;}
.logo .num{background:var(--lime);color:var(--lime-dark);font-family:'IBM Plex Mono';font-size:13px;font-weight:500;padding:2px 6px;border-radius:3px;}
.logo .planets{color:#7FE0CF;}
nav.main{display:flex;gap:30px;font-size:14.5px;color:#C7D3EE;}
nav.main ul{list-style:none;display:flex;gap:30px;}
nav.main a:hover{color:#fff;}
.cta{background:var(--orange);color:#3A1608;font-weight:500;font-size:14px;padding:11px 20px;border-radius:4px;display:inline-block;border:none;cursor:pointer;}
.cta:hover{background:#FF7F52;}
.cta.outline{background:transparent;border:1px solid #3A4B7A;color:#E4E9F7;}
.cta.outline:hover{border-color:#7FE0CF;}
.cta.lime{background:var(--lime);color:#233407;}

/* hero */
.hero{background:var(--ink);padding:64px 0 0;color:#fff;}
.hero .wrap{display:grid;grid-template-columns:1.05fr 0.85fr;gap:40px;align-items:center;}
.eyebrow{font-family:'IBM Plex Mono';font-size:12px;letter-spacing:.12em;color:var(--lime);margin-bottom:18px;}
.hero h1{font-size:46px;line-height:1.08;color:#fff;margin-bottom:20px;}
.hero p.lead{color:#B9C6E0;font-size:16.5px;max-width:480px;margin-bottom:28px;}
.hero .btn-row{display:flex;gap:14px;margin-bottom:34px;}
.stat-row{display:flex;gap:26px;font-family:'IBM Plex Mono';font-size:12.5px;color:#8FA1C9;border-top:1px solid #26315C;padding-top:18px;flex-wrap:wrap;}
.stat-row b{color:#fff;font-weight:500;}

.globe-wrap{position:relative;display:flex;justify-content:center;}
.hub-label{font-family:'IBM Plex Mono';font-size:9.5px;fill:#7FE0CF;}
.route{stroke:var(--lime);stroke-width:1.2;fill:none;stroke-dasharray:5 6;animation:dash 3.2s linear infinite;opacity:.8;}
@keyframes dash{to{stroke-dashoffset:-88;}}
.hub-dot{fill:var(--lime);}
.hub-pulse{fill:none;stroke:var(--lime);stroke-width:1;opacity:.6;animation:pulse 2.4s ease-out infinite;}
@keyframes pulse{0%{r:4;opacity:.7;}100%{r:16;opacity:0;}}

/* ticker */
.ticker{background:var(--ink-soft);border-top:1px solid #26315C;border-bottom:1px solid #26315C;overflow:hidden;margin-top:50px;}
.ticker-track{display:flex;white-space:nowrap;animation:scroll 26s linear infinite;padding:12px 0;}
.ticker-track span{font-family:'IBM Plex Mono';font-size:12.5px;color:#9FE1CB;letter-spacing:.08em;padding:0 26px;border-right:1px solid #2B3766;}
@keyframes scroll{from{transform:translateX(0);}to{transform:translateX(-50%);}}

section{padding:76px 0;}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:34px;flex-wrap:wrap;gap:16px;}
.section-head .eyebrow{color:var(--teal);}
.section-head h2{font-size:28px;color:var(--text);}
.section-head p{color:var(--muted);font-size:14.5px;max-width:340px;}

/* categories */
.cat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;}
.cat-card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:22px;display:flex;flex-direction:column;gap:14px;}
.stamp{width:44px;height:44px;border-radius:50%;border:1.5px solid var(--teal);color:var(--teal-dark);display:flex;align-items:center;justify-content:center;font-family:'IBM Plex Mono';font-size:12px;font-weight:500;}
.cat-card h3{font-size:16.5px;color:var(--text);}
.cat-card .count{font-family:'IBM Plex Mono';font-size:12px;color:var(--muted);}
.cat-card .view{font-size:13.5px;color:var(--orange-dark);font-weight:500;margin-top:auto;}
.chip-list{display:flex;flex-wrap:wrap;gap:6px;}
.chip{font-family:'IBM Plex Mono';font-size:11px;color:var(--teal-dark);background:#E1F5EE;border-radius:3px;padding:4px 8px;}
.cat-card.all{align-items:center;justify-content:center;text-align:center;background:var(--teal-dark);border:none;}
.cat-card.all h3{color:#fff;}
.cat-card.all .view{color:var(--lime);}

/* manifest / why us */
.manifest{background:var(--ink);color:#fff;}
.manifest .section-head h2{color:#fff;}
.manifest .section-head p{color:#8FA1C9;}
.manifest .section-head .eyebrow{color:var(--lime);}
.ticket-row{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;}
.ticket{background:var(--ink-soft);border-top:2px dashed #3A4B7A;padding:20px 16px;border-radius:0 0 8px 8px;}
.ticket .label{font-family:'IBM Plex Mono';font-size:11px;color:#7FE0CF;letter-spacing:.08em;margin-bottom:8px;}
.ticket .val{font-size:20px;font-family:'Space Grotesk';color:#fff;margin-bottom:6px;}
.ticket .sub{font-size:12.5px;color:#8FA1C9;}

/* products */
.prod-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;}
.prod-card{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden;}
.prod-swatch{height:120px;display:flex;align-items:center;justify-content:center;font-family:'Space Grotesk';font-size:44px;font-weight:700;}
.prod-swatch.a{background:#FFE4D6;color:var(--orange-dark);}
.prod-swatch.b{background:#D6F0E9;color:var(--teal-dark);}
.prod-swatch.c{background:#F2FADB;color:var(--lime-dark);}
.prod-swatch.d{background:#E4E9F7;color:#2E3D6E;}
.prod-info{padding:16px;}
.prod-info h3{font-size:14.5px;margin-bottom:4px;}
.prod-info .pack{font-family:'IBM Plex Mono';font-size:11.5px;color:var(--muted);margin-bottom:10px;}
.prod-info .price{font-size:15px;font-weight:600;margin-bottom:12px;}
.prod-info button, .prod-info .add-to-quote{width:100%;padding:9px;border:1px solid var(--teal);background:transparent;color:var(--teal-dark);border-radius:4px;font-size:13px;font-weight:500;font-family:'Inter';cursor:pointer;display:block;text-align:center;}
.prod-info button:hover, .prod-info .add-to-quote:hover{background:var(--teal);color:#fff;}

/* testimonials */
.tag-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
.tag{background:#fff;border:1px solid var(--line);border-radius:6px;padding:26px 22px 20px;position:relative;}
.tag::before{content:"";position:absolute;top:14px;left:22px;width:8px;height:8px;border:1.5px solid var(--muted);border-radius:50%;}
.tag p{font-size:14.5px;color:var(--text);margin:14px 0 16px;}
.tag .who{font-family:'IBM Plex Mono';font-size:12px;color:var(--muted);}

/* cta banner */
.banner{background:var(--teal-dark);color:#fff;text-align:center;padding:64px 0;}
.banner h2{font-size:30px;color:#fff;margin-bottom:12px;}
.banner p{color:#BFE4DC;margin-bottom:26px;}
.banner .btn-row{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;}

/* footer */
footer#site-footer{background:var(--ink);color:#8FA1C9;padding:56px 0 24px;font-size:13.5px;}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:30px;padding-bottom:36px;border-bottom:1px solid #26315C;}
.foot-grid h4{font-family:'IBM Plex Mono';font-size:12px;color:#fff;letter-spacing:.06em;margin-bottom:14px;}
.foot-grid a{display:block;color:#8FA1C9;margin-bottom:9px;}
.foot-grid a:hover{color:#fff;}
.foot-grid ul{list-style:none;}
.newsletter{display:flex;gap:8px;margin-top:12px;}
.newsletter input{flex:1;background:var(--ink-soft);border:1px solid #2B3766;border-radius:4px;padding:9px 10px;color:#fff;font-family:'IBM Plex Mono';font-size:12px;}
.newsletter button{background:var(--orange);border:none;color:#3A1608;font-weight:500;padding:0 16px;border-radius:4px;cursor:pointer;}
.bottom-bar{display:flex;justify-content:space-between;padding-top:20px;font-size:12px;flex-wrap:wrap;gap:8px;}

/* social icons */
.d247-social-links{display:flex;gap:10px;margin-top:16px;}
.d247-social-links .social-icon{width:32px;height:32px;border-radius:50%;background:var(--ink-soft);border:1px solid #2B3766;display:flex;align-items:center;justify-content:center;color:#B9C6E0;transition:background .15s,color .15s,border-color .15s;}
.d247-social-links .social-icon:hover{background:var(--teal);border-color:var(--teal);color:#fff;}
.topbar .d247-social-links{margin-top:0;gap:14px;}
.topbar .d247-social-links .social-icon{width:20px;height:20px;background:transparent;border:none;color:#8FA1C9;}
.topbar .d247-social-links .social-icon:hover{color:var(--lime);background:transparent;}

/* floating whatsapp button */
.d247-whatsapp-float{
  position:fixed;
  bottom:24px;
  right:24px;
  width:56px;
  height:56px;
  border-radius:50%;
  background:#25D366;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 4px 14px rgba(0,0,0,0.25);
  z-index:999;
  transition:transform .15s ease;
}
.d247-whatsapp-float:hover{transform:scale(1.08);}
.d247-whatsapp-float svg{width:28px;height:28px;}
@media (max-width:560px){
  .d247-whatsapp-float{bottom:16px;right:16px;width:50px;height:50px;}
  .d247-whatsapp-float svg{width:24px;height:24px;}
}

/* responsive */
.d247-mobile-nav-toggle{display:none;}
.d247-hamburger{display:none;}
.d247-mobile-cta{display:none;}

@media (max-width: 900px){
  .hero .wrap{grid-template-columns:1fr;}
  .hero h1{font-size:34px;}
  .hero .btn-row{flex-wrap:wrap;}

  header#site-header .wrap{flex-wrap:wrap;position:relative;}
  .d247-desktop-cta{display:none;}
  .d247-hamburger{
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:5px;
    width:32px;
    height:32px;
    cursor:pointer;
  }
  .d247-hamburger span{display:block;width:100%;height:2px;background:#fff;border-radius:2px;}

  nav.main{
    display:none;
    width:100%;
    order:3;
    flex-direction:column;
    gap:0;
    margin-top:18px;
    border-top:1px solid #26315C;
  }
  nav.main ul{
    flex-direction:column;
    gap:0;
    width:100%;
  }
  nav.main ul li{
    border-bottom:1px solid #26315C;
  }
  nav.main ul li a{
    display:block;
    padding:14px 4px;
  }
  .d247-mobile-cta{
    display:inline-block;
    margin-top:16px;
    text-align:center;
  }

  .d247-mobile-nav-toggle:checked ~ nav.main{
    display:flex;
  }

  .cat-grid, .prod-grid, .tag-grid{grid-template-columns:repeat(2,1fr);}
  .ticket-row{grid-template-columns:repeat(2,1fr);}
  .foot-grid{grid-template-columns:1fr 1fr;}
  .section-head{align-items:flex-start;}
  .section-head p{max-width:none;}
}

@media (max-width: 560px){
  .wrap{padding:0 20px;}
  .cat-grid, .prod-grid, .tag-grid, .ticket-row, .foot-grid{grid-template-columns:1fr;}
  .hero h1{font-size:28px;}
  .hero p.lead{font-size:15px;}
  .stat-row{gap:14px 20px;}
  .banner h2{font-size:24px;}
  .banner .btn-row{flex-direction:column;align-items:stretch;}
  .banner .btn-row .cta{text-align:center;}
  .bottom-bar{flex-direction:column;align-items:flex-start;}
  .topbar .wrap{height:auto;padding:8px 20px;flex-wrap:wrap;gap:6px;justify-content:space-between;}
  .topbar .live{font-size:11px;}
}
