/*
Theme Name: Carilo — Ülker Baltics
Theme URI: https://carilo.lt/
Author: Carilo
Description: A clean, editorial WordPress theme for presenting Ülker products in the Baltics. Inspired by modern FMCG brand websites, with an original layout.
Version: 4.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: carilo-ulker
*/

:root{
  --red:#e9002b;
  --red-dark:#c90025;
  --ink:#151515;
  --muted:#6f6f73;
  --cream:#f7f5f0;
  --white:#fff;
  --line:#e8e6e1;
  --max:1240px;
  --radius:24px;
  --shadow:0 18px 55px rgba(0,0,0,.09);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--white);line-height:1.55}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
.container{width:min(calc(100% - 48px),var(--max));margin-inline:auto}
.site-header{position:absolute;z-index:20;top:0;left:0;right:0;padding:24px 0;color:#fff}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand img{width:150px;display:block}
.nav{display:flex;align-items:center;gap:30px;font-size:14px;font-weight:600}
.nav a{opacity:.95;transition:.2s}
.nav a:hover{opacity:1;color:#fff}
.nav-cta{padding:11px 18px;border:1px solid rgba(255,255,255,.65);border-radius:999px}
.menu-toggle{display:none;background:none;border:0;color:#fff;font-size:28px}

.hero{min-height:780px;display:flex;align-items:center;position:relative;overflow:hidden;background:
radial-gradient(circle at 78% 25%,rgba(255,255,255,.28),transparent 24%),
linear-gradient(118deg,#9c001f 0%,#e9002b 42%,#f33b58 100%);color:#fff}
.hero:before{content:"";position:absolute;width:760px;height:760px;border-radius:50%;right:-220px;top:-250px;border:1px solid rgba(255,255,255,.22)}
.hero:after{content:"";position:absolute;width:420px;height:420px;border-radius:50%;right:80px;bottom:-280px;background:rgba(255,255,255,.08)}
.hero-content{position:relative;z-index:2;padding:150px 0 90px;max-width:780px}
.eyebrow{text-transform:uppercase;letter-spacing:.18em;font-size:12px;font-weight:800;margin-bottom:20px}
.hero h1{font-size:clamp(54px,8vw,104px);line-height:.92;letter-spacing:-.055em;margin:0 0 30px;font-weight:800}
.hero p{font-size:20px;max-width:650px;opacity:.92;margin:0 0 34px}
.button{display:inline-flex;align-items:center;gap:10px;background:#fff;color:var(--red);padding:15px 23px;border-radius:999px;font-weight:800}
.button.dark{background:var(--ink);color:#fff}
.button.outline{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.6)}
.hero-stamp{position:absolute;right:7%;bottom:95px;width:190px;height:190px;border:1px solid rgba(255,255,255,.5);border-radius:50%;display:grid;place-items:center;text-align:center;text-transform:uppercase;font-size:11px;letter-spacing:.13em;font-weight:800;transform:rotate(-12deg)}
.hero-stamp span{display:block;max-width:105px}

.section{padding:105px 0}
.section.cream{background:var(--cream)}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:45px}
.section-head h2{font-size:clamp(38px,5vw,68px);line-height:.98;letter-spacing:-.045em;margin:0;max-width:720px}
.section-head p{color:var(--muted);max-width:430px;margin:0}
.kicker{color:var(--red);text-transform:uppercase;letter-spacing:.16em;font-size:11px;font-weight:900;margin-bottom:12px}

.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.category-card{min-height:320px;padding:28px;border-radius:var(--radius);position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:end;color:#fff;background:linear-gradient(145deg,#b90025,#ed2348)}
.category-card:nth-child(2){background:linear-gradient(145deg,#64250f,#c76b31)}
.category-card:nth-child(3){background:linear-gradient(145deg,#151515,#5d5d5d)}
.category-card:nth-child(4){background:linear-gradient(145deg,#4d111f,#c91646)}
.category-card:before{content:"";position:absolute;width:210px;height:210px;border-radius:50%;right:-55px;top:-60px;background:rgba(255,255,255,.12)}
.category-card:after{content:"";position:absolute;width:150px;height:150px;border-radius:32px;right:30px;top:45px;background:rgba(255,255,255,.08);transform:rotate(16deg)}
.category-card > *{position:relative;z-index:2}
.category-card h3{font-size:29px;letter-spacing:-.03em;margin:0 0 7px}
.category-card p{margin:0;opacity:.78;font-size:14px}
.arrow{position:absolute;right:25px;bottom:25px;font-size:24px}

.products{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.product-card{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:#fff;transition:transform .25s,box-shadow .25s}
.product-card:hover{transform:translateY(-5px);box-shadow:var(--shadow)}
.product-image{height:330px;display:grid;place-items:center;background:#f0ede7;overflow:hidden}
.product-placeholder{width:160px;height:220px;border-radius:10px 10px 18px 18px;background:linear-gradient(150deg,#fff,#ddd);box-shadow:0 25px 30px rgba(0,0,0,.14);display:flex;align-items:center;justify-content:center;text-align:center;padding:20px;font-size:12px;font-weight:800;color:#888;transform:rotate(-4deg)}
.product-card:nth-child(2) .product-placeholder{background:linear-gradient(150deg,#f6d49a,#9b4b1c)}
.product-card:nth-child(3) .product-placeholder{background:linear-gradient(150deg,#eee,#555)}
.product-info{padding:24px}
.product-info .tag{font-size:10px;color:var(--red);font-weight:900;text-transform:uppercase;letter-spacing:.14em}
.product-info h3{font-size:25px;margin:7px 0 8px}
.product-info p{color:var(--muted);font-size:14px;margin:0}

.story{display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:center}
.story-visual{min-height:560px;border-radius:34px;background:linear-gradient(145deg,#f0e8dc,#d9c8b7);position:relative;overflow:hidden}
.story-visual:before{content:"1944";position:absolute;font-size:180px;font-weight:900;letter-spacing:-.09em;color:rgba(255,255,255,.56);left:-15px;bottom:-35px}
.story-card{position:absolute;background:#fff;border-radius:22px;padding:24px;box-shadow:var(--shadow);right:34px;top:34px;width:220px}
.story-card strong{font-size:44px;line-height:1}
.story-copy h2{font-size:clamp(40px,5vw,66px);line-height:.98;letter-spacing:-.045em;margin:0 0 25px}
.story-copy p{color:var(--muted);font-size:17px;max-width:560px}
.story-copy .button{margin-top:14px}

.split-banner{background:var(--ink);color:#fff;border-radius:34px;padding:70px;display:grid;grid-template-columns:1.4fr .6fr;align-items:end;gap:50px}
.split-banner h2{font-size:clamp(42px,6vw,78px);line-height:.92;letter-spacing:-.055em;margin:0}
.split-banner p{color:#bbb;margin:18px 0 0;max-width:650px}
.split-banner .button{justify-self:end}

.contact{display:grid;grid-template-columns:1fr 1fr;gap:60px}
.contact h2{font-size:clamp(42px,5vw,68px);line-height:.95;letter-spacing:-.05em;margin:0 0 20px}
.contact p{color:var(--muted);max-width:550px}
.contact-box{background:var(--cream);border-radius:30px;padding:38px}
.contact-row{padding:20px 0;border-bottom:1px solid #ddd9d0}
.contact-row:last-child{border-bottom:0}
.contact-row small{text-transform:uppercase;letter-spacing:.14em;color:#888;font-weight:800;font-size:10px}
.contact-row strong{display:block;font-size:19px;margin-top:4px}

.site-footer{background:#0f0f10;color:#fff;padding:65px 0 28px}
.footer-top{display:grid;grid-template-columns:1fr 1fr 1fr;gap:50px;padding-bottom:60px}
.footer-logo{width:145px;background:#fff;padding:10px;border-radius:4px}
.site-footer h3{margin:0 0 14px;font-size:14px;text-transform:uppercase;letter-spacing:.12em}
.site-footer p,.site-footer a{color:#a7a7aa;font-size:14px}
.footer-bottom{border-top:1px solid #29292b;padding-top:22px;color:#777;font-size:12px;display:flex;justify-content:space-between;gap:20px}

.page-hero{background:var(--red);color:#fff;padding:180px 0 90px}
.page-hero h1{font-size:clamp(50px,8vw,100px);line-height:.9;letter-spacing:-.06em;margin:0}
.content-area{padding:80px 0}
.content-area h2{font-size:42px;letter-spacing:-.04em}
.content-area p{max-width:800px;color:#555}

@media(max-width:900px){
  .nav{display:none}.menu-toggle{display:block}
  .category-grid{grid-template-columns:repeat(2,1fr)}
  .products{grid-template-columns:1fr 1fr}
  .story,.contact{grid-template-columns:1fr;gap:35px}
  .story-visual{min-height:430px}
  .split-banner{grid-template-columns:1fr;padding:45px}
  .split-banner .button{justify-self:start}
  .footer-top{grid-template-columns:1fr 1fr}
}
@media(max-width:600px){
  .container{width:min(calc(100% - 30px),var(--max))}
  .site-header{padding:16px 0}.brand img{width:125px}
  .hero{min-height:720px}.hero-content{padding:125px 0 70px}.hero h1{font-size:58px}
  .hero p{font-size:17px}
  .hero-stamp{display:none}
  .section{padding:75px 0}
  .section-head{display:block}.section-head p{margin-top:18px}
  .category-grid,.products{grid-template-columns:1fr}
  .category-card{min-height:250px}
  .product-image{height:290px}
  .footer-top{grid-template-columns:1fr}
  .footer-bottom{display:block}.footer-bottom span{display:block;margin-top:8px}
}

.category-card.has-photo{background-size:cover;background-position:center}
.product-image img{width:100%;height:100%;object-fit:contain;padding:22px}
.product-detail{display:grid;grid-template-columns:1fr 1fr;gap:50px}
.product-detail .product-image{height:500px;border-radius:24px}
@media(max-width:700px){.product-detail{grid-template-columns:1fr}}

/* V3 editable navigation, footer, and category image fit */
.nav-list{list-style:none;margin:0;padding:0;display:flex;gap:28px;align-items:center}.nav-list li{margin:0;padding:0}.footer-links{list-style:none;margin:0;padding:0}.footer-links li{margin:0 0 12px}.footer-links a{color:#a7a7aa}
.category-card{isolation:isolate}.category-card .category-photo{position:absolute;inset:0;z-index:-2;background-image:var(--category-image);background-size:var(--category-fit,cover);background-position:var(--category-position,center);background-repeat:no-repeat}.category-card.has-photo{background-color:var(--category-background,#f5f0e7)}.category-card .category-overlay{position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,rgba(0,0,0,.78),rgba(0,0,0,.03) 80%)}.category-card:not(.has-photo) .category-overlay{display:none}.category-card.has-photo h3,.category-card.has-photo p{z-index:1}
.gallery-filters{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:32px}.filter-chip{border:1px solid #dedbd5;background:#fff;border-radius:99px;padding:10px 18px;font-weight:700;font-size:14px}.filter-chip.active,.filter-chip:hover{background:#151515;color:#fff}.gallery-pages{margin-top:40px}.gallery-pages .page-numbers{margin:0 6px}.hero-stamp span{white-space:normal}
@media(max-width:900px){.menu-toggle{border:1px solid #ffffff80;border-radius:8px;background:transparent;color:#fff;padding:5px 12px;font-size:25px;cursor:pointer}.nav{display:none;position:absolute;top:75px;left:20px;right:20px;background:#99102c;border-radius:16px;padding:20px;flex-direction:column;align-items:stretch;box-shadow:0 15px 30px #0002}.nav.is-open{display:flex}.nav-list{flex-direction:column;align-items:stretch;gap:16px}.nav-cta{display:inline-block;text-align:center}}

/* V4 pages, catalogues, private partner portal */
.hero{background-repeat:no-repeat!important;background-size:cover!important;background-position:center center!important}
body:not(.home) .site-header{position:relative;background:#9e0929}
.content-area{padding:55px 0 95px;min-height:40vh}.content-area .container{max-width:1120px}
.content-area h2{font-size:clamp(26px,3vw,38px);line-height:1.15;margin:36px 0 15px}.content-area p{font-size:17px;line-height:1.8;max-width:850px}
.content-area a:not(.button){color:#c90025;text-decoration:underline}
.carilo-catalogs,.carilo-inline-gallery{margin:45px 0 70px}.catalog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:25px 0}
.catalog-tile{background:#f7f5f0;padding:28px;border-radius:20px;min-height:190px}.catalog-tile h3{font-size:21px}.catalog-icon{font-weight:800;color:#d0002a;font-size:12px;letter-spacing:2px}
.carilo-login{background:#f7f5f0;padding:35px;border-radius:20px;max-width:550px}.carilo-login input{max-width:100%}.carilo-login input[type=text],.carilo-login input[type=password]{display:block;padding:12px;width:100%;border:1px solid #ccc;border-radius:7px}
.private-files li{padding:10px 0}.carilo-inline-gallery .products{margin-bottom:30px}
@media(max-width:680px){.catalog-grid{grid-template-columns:1fr}.content-area{padding:35px 0}}
