/*
Theme Name: Agent Design Lab
Theme URI: https://agentdesignlab.com
Author: Agent Design Lab
Description: Custom theme for Agent Design Lab — modern uniforms & custom workwear, Sri Lanka. Editorial big-type layout with video hero, quote-based catalog and Journal.
Version: 1.0.0
Requires PHP: 8.0
License: Proprietary
Text Domain: adl
*/

/* ─── TOKENS ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --ink: #0f0e0c;
  --paper: #ffffff;
  --stone: #f5f3ef;
  --sand: #c4a882;
  --sand-dark: #94764c;
  --body: #46423b;
  --body-soft: #5c574f;
  --line: #e8e4dd;
  --gutter: 4vw;
  --nav-h: 76px;
}
html { scroll-behavior: smooth; font-size: 17px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  font-family: 'Josefin Sans', sans-serif;
  background: var(--paper); color: var(--ink);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; -webkit-tap-highlight-color: rgba(196,168,130,0.25); }
.fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.skip-link { position: absolute; top: -100%; left: 1rem; z-index: 300; background: var(--ink); color: var(--paper); padding: 0.6rem 1.2rem; font-size: 0.8rem; text-decoration: none; }
.skip-link:focus { top: 0; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ─── ANNOUNCE + NAV ─── */
.announce { background: var(--ink); color: var(--paper); text-align: center; padding: 0.55rem 1rem; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 300; }
.announce b { color: var(--sand); font-weight: 500; }
.nav-wrap { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-nav { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 1rem var(--gutter); min-height: var(--nav-h); }
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 44px; width: auto; filter: invert(1); }
.nav-links { display: flex; gap: 2.2rem; list-style: none; align-items: center; }
.nav-links a { text-decoration: none; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; padding-bottom: 3px; border-bottom: 1px solid transparent; transition: border-color 0.3s, color 0.3s; }
.nav-links a:hover { color: var(--sand-dark); border-color: var(--sand); }
.nav-links .current-menu-item > a { border-color: var(--sand); }
.nav-cta a, a.nav-cta { background: var(--ink); color: var(--paper) !important; padding: 0.7rem 1.6rem; border: 1px solid var(--ink) !important; }
.nav-cta a:hover, a.nav-cta:hover { background: var(--paper); color: var(--ink) !important; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; width: 46px; height: 46px; align-items: center; justify-content: center; }
.menu-toggle span { width: 24px; height: 1.5px; background: var(--ink); transition: transform 0.3s, opacity 0.3s; }

/* ─── BUTTONS ─── */
.btn { display: inline-block; margin-top: 2rem; text-decoration: none; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; padding: 1.05rem 2.6rem; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); transition: background 0.3s, color 0.3s; min-height: 48px; cursor: pointer; font-family: inherit; }
.btn:hover { background: transparent; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }

/* ─── SCAFFOLD ─── */
section, .section { padding: 5.5rem var(--gutter); }
.shell { max-width: 1320px; margin: 0 auto; }
.shell-narrow { max-width: 820px; margin: 0 auto; }
.sec-head { text-align: center; margin-bottom: 3rem; }
.eyebrow { font-size: 0.62rem; letter-spacing: 0.38em; text-transform: uppercase; color: var(--sand-dark); font-weight: 600; margin-bottom: 0.9rem; }
.sec-title { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: clamp(1.7rem, 4vw, 2.7rem); line-height: 1.15; text-wrap: balance; }

/* ─── VIDEO HERO ─── */
.vhero { position: relative; height: min(86vh, 900px); min-height: 480px; overflow: hidden; background: var(--ink); }
.vhero video, .vhero img.vhero-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vhero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,14,12,0.55) 0%, rgba(15,14,12,0.08) 45%); }
.vhero-copy { position: absolute; inset: auto 0 0 0; z-index: 2; text-align: center; padding: 0 var(--gutter) clamp(2.5rem, 6vh, 4.5rem); color: var(--paper); }
.vhero-copy h1 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: clamp(2.4rem, 6.5vw, 4.6rem); line-height: 1.06; text-wrap: balance; }
.vhero-copy p { margin-top: 1rem; font-weight: 300; font-size: 0.95rem; letter-spacing: 0.04em; color: rgba(255,255,255,0.85); }
.vhero-copy .btn { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.vhero-copy .btn:hover { background: transparent; color: var(--paper); }

/* ─── EDITORIAL STATEMENT (signature) ─── */
.statement { background: var(--paper); text-align: center; padding: clamp(4rem, 10vw, 7rem) var(--gutter); }
.statement p.small { font-size: 0.62rem; letter-spacing: 0.38em; text-transform: uppercase; color: var(--sand-dark); font-weight: 600; margin-bottom: 1.2rem; }
.statement h2 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1.08; text-wrap: balance; max-width: 900px; margin: 0 auto; }
.statement.on-stone { background: var(--stone); }

/* ─── SPLIT EDITORIAL (image + big type) ─── */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); max-width: 1320px; margin: 0 auto; }
.split-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.split-copy h2 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.1; margin-bottom: 1.4rem; text-wrap: balance; }
.split-copy p { font-size: 0.92rem; font-weight: 400; color: var(--body); line-height: 1.9; margin-bottom: 1rem; }
.split.flip .split-media { order: 2; }

/* ─── INDUSTRY TILES ─── */
.ind-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.tile { text-decoration: none; display: block; }
.tile-media { aspect-ratio: 3 / 4; overflow: hidden; position: relative; }
.tile-media img { transition: transform 0.6s ease; }
.tile:hover .tile-media img { transform: scale(1.04); }
.tile h3 { margin-top: 0.9rem; font-weight: 500; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; text-align: center; }
.tile span { display: block; text-align: center; margin-top: 0.35rem; font-size: 0.68rem; color: var(--body-soft); font-weight: 400; }

/* ─── BRAND WALL ─── */
.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.brand-slot { aspect-ratio: 3 / 2; position: relative; background: var(--stone); border-radius: 14px; overflow: hidden; }
.brand-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 1.1rem; }

/* ─── INSTAGRAM ─── */
.insta-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.insta-slot { aspect-ratio: 1; position: relative; overflow: hidden; display: block; background: var(--stone); }
.insta-link { display: block; text-align: center; margin-top: 2rem; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; color: var(--sand-dark); font-weight: 600; padding: 0.9rem; }
.insta-link:hover { color: var(--ink); }

/* ─── CTA BANNER ─── */
.cta-banner { background: var(--sand); text-align: center; }
.cta-banner .sec-title { color: var(--ink); }
.cta-banner p { margin-top: 1rem; font-size: 0.9rem; font-weight: 400; color: #3b3225; }

/* ─── CATALOG ─── */
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cat-card { text-decoration: none; display: block; }
.cat-card-media { aspect-ratio: 4 / 5; position: relative; overflow: hidden; background: var(--stone); }
.cat-card-media img { transition: transform 0.6s ease; }
.cat-card:hover .cat-card-media img { transform: scale(1.04); }
.cat-card h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 1.35rem; margin-top: 1rem; line-height: 1.25; }
.cat-card .cat-ind { font-size: 0.6rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--sand-dark); font-weight: 600; margin-top: 0.4rem; }
.cat-filter { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; margin-bottom: 2.6rem; }
.cat-filter a { text-decoration: none; font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; padding: 0.65rem 1.3rem; border: 1px solid var(--line); transition: all 0.3s; }
.cat-filter a:hover, .cat-filter a.active { border-color: var(--ink); background: var(--ink); color: var(--paper); }

/* single uniform */
.uniform-single { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 5rem); max-width: 1320px; margin: 0 auto; align-items: start; }
.uniform-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone); }
.uniform-info h1 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.12; margin-bottom: 0.7rem; }
.uniform-info .cat-ind { margin-bottom: 1.6rem; }
.uniform-info .entry-content p { font-size: 0.92rem; color: var(--body); line-height: 1.9; margin-bottom: 1rem; }
.uniform-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.uniform-actions .btn { margin-top: 0; }

/* ─── JOURNAL ─── */
.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { text-decoration: none; display: block; background: var(--paper); border: 1px solid var(--line); }
.post-card-media { aspect-ratio: 16 / 10; position: relative; overflow: hidden; background: var(--stone); }
.post-card-body { padding: 1.4rem 1.5rem 1.7rem; }
.post-card .date { font-size: 0.6rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--sand-dark); font-weight: 600; }
.post-card h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 1.3rem; margin-top: 0.5rem; line-height: 1.25; }
.post-card p { margin-top: 0.6rem; font-size: 0.8rem; font-weight: 400; color: var(--body); line-height: 1.7; }

/* single post / page prose */
.prose { max-width: 760px; margin: 0 auto; }
.prose-hero { position: relative; aspect-ratio: 21 / 9; overflow: hidden; background: var(--stone); margin-bottom: 3rem; }
.prose h1.entry-title { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; margin-bottom: 0.8rem; text-wrap: balance; }
.prose .meta { font-size: 0.64rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--sand-dark); font-weight: 600; margin-bottom: 2.4rem; }
.prose .entry-content p { font-size: 0.98rem; color: var(--body); line-height: 1.95; margin-bottom: 1.3rem; }
.prose .entry-content h2 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 1.7rem; margin: 2.4rem 0 1rem; }
.prose .entry-content h3 { font-size: 1rem; letter-spacing: 0.06em; margin: 2rem 0 0.8rem; }
.prose .entry-content img { margin: 2rem 0; }
.prose .entry-content ul, .prose .entry-content ol { margin: 0 0 1.3rem 1.4rem; color: var(--body); line-height: 1.9; font-size: 0.98rem; }
.prose .entry-content a { color: var(--sand-dark); }
.prose .entry-content blockquote { border-left: 2px solid var(--sand); padding-left: 1.4rem; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.25rem; margin: 2rem 0; }

/* ─── QUOTE FORM ─── */
.quote-form { max-width: 720px; margin: 0 auto; }
.quote-form .field { margin-bottom: 1.6rem; }
.quote-form label { display: block; font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; margin-bottom: 0.55rem; color: var(--ink); }
.quote-form label small { display: block; text-transform: none; letter-spacing: 0.02em; font-weight: 400; color: var(--body-soft); font-size: 0.72rem; margin-top: 0.25rem; }
.quote-form input[type=text], .quote-form input[type=email], .quote-form input[type=tel], .quote-form select, .quote-form textarea { width: 100%; padding: 0.95rem 1rem; border: 1px solid var(--line); background: var(--paper); font-family: inherit; font-size: 0.9rem; color: var(--ink); border-radius: 0; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: 2px solid var(--sand); outline-offset: 0; border-color: var(--sand); }
.quote-form textarea { min-height: 140px; resize: vertical; }
.quote-form input[type=file] { width: 100%; padding: 0.8rem; border: 1.5px dashed var(--sand); background: var(--stone); font-size: 0.82rem; font-family: inherit; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.quote-aside { text-align: center; margin-top: 2.4rem; font-size: 0.85rem; color: var(--body); }
.quote-aside a { color: var(--sand-dark); font-weight: 500; }

/* ─── FOOTER ─── */
.site-footer { background: var(--ink); color: var(--paper); padding: 4.5rem var(--gutter) 2rem; }
.foot-grid { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 3.5rem; }
.foot-brand img { height: 40px; width: auto; filter: brightness(10); margin-bottom: 1.4rem; }
.foot-brand p { font-size: 0.78rem; font-weight: 300; color: #b5b0a7; line-height: 1.8; max-width: 280px; }
.foot-col h5 { font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--sand); margin-bottom: 1.4rem; font-weight: 600; }
.foot-col a, .foot-col address { display: block; text-decoration: none; font-style: normal; font-size: 0.78rem; font-weight: 300; color: #b5b0a7; margin-bottom: 0.75rem; transition: color 0.3s; line-height: 1.7; }
.foot-col a:hover { color: var(--paper); }
.foot-col ul { list-style: none; }
.socials { display: flex; gap: 0.9rem; margin-top: 1.6rem; }
.socials a { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; transition: border-color 0.3s, background 0.3s; }
.socials a:hover { border-color: var(--sand); background: rgba(196,168,130,0.12); }
.socials svg { width: 15px; height: 15px; fill: #b5b0a7; transition: fill 0.3s; }
.socials a:hover svg { fill: var(--sand); }
.foot-bottom { max-width: 1320px; margin: 3rem auto 0; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,0.07); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem; }
.foot-bottom p { font-size: 0.64rem; color: #8e8981; font-weight: 300; letter-spacing: 0.08em; }

/* ─── REVEAL ─── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ─── PAGINATION ─── */
.pagination { display: flex; gap: 0.6rem; justify-content: center; margin-top: 3rem; }
.pagination .page-numbers { padding: 0.6rem 1rem; border: 1px solid var(--line); text-decoration: none; font-size: 0.75rem; }
.pagination .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ══════════ TABLET ══════════ */
@media (max-width: 1080px) {
  .ind-tiles { grid-template-columns: repeat(3, 1fr); }
  .catalog-grid, .journal-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 2.8rem; }
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ══════════ MOBILE ══════════ */
@media (max-width: 760px) {
  :root { --gutter: 6vw; --nav-h: 66px; }
  html { font-size: 16px; }
  section, .section { padding: 3.75rem var(--gutter); }
  .announce { font-size: 0.6rem; letter-spacing: 0.14em; line-height: 1.7; }
  .announce .sep { display: none; }
  .announce b { display: block; }
  .site-nav { padding: 0.7rem var(--gutter); }
  .nav-logo img { height: 36px; }
  .menu-toggle { display: flex; z-index: 120; margin-right: -10px; }
  .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }
  .nav-links { display: none; }
  .nav-links.active { display: flex; flex-direction: column; position: fixed; inset: 0; background: rgba(255,255,255,0.985); justify-content: center; align-items: center; gap: 0; z-index: 110; padding: 5rem 2rem 2rem; overflow-y: auto; }
  .nav-links.active li { width: 100%; max-width: 320px; }
  .nav-links.active a { display: block; text-align: center; font-size: 0.95rem; letter-spacing: 0.22em; padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
  .vhero { height: 70vh; min-height: 420px; }
  .btn { display: block; width: 100%; max-width: 380px; margin-left: auto; margin-right: auto; padding: 1.15rem 1.5rem; }
  .uniform-actions .btn { width: auto; display: inline-block; }
  .split, .uniform-single { grid-template-columns: 1fr; gap: 2rem; }
  .split.flip .split-media { order: 0; }
  .ind-tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .catalog-grid, .journal-grid { grid-template-columns: 1fr; gap: 18px; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .insta-grid { grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); gap: 2.2rem 1.5rem; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}
@media (max-width: 400px) {
  html { font-size: 15px; }
  .ind-tiles { gap: 8px; }
  .tile span { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .insta-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (hover: none) {
  .nav-links a:hover { color: inherit; border-color: transparent; }
  .btn:hover { background: var(--ink); color: var(--paper); }
  .btn.ghost:hover { background: transparent; color: var(--ink); }
}
