/*
Theme Name: Twenty Twenty-Five Child
Template: twentytwentyfive
Version: 1.0.0
Description: Child theme for SOLAS Shapes
*/

/* ==========================================================
   GOOGLE FONTS
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700&family=JetBrains+Mono:wght@300;400;500&family=Inter+Tight:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================
   FULL-WIDTH OVERRIDE — defeat Twenty Twenty-Five's
   content width constraint on the homepage
   ========================================================== */
body.home .wp-site-blocks,
body.home .wp-site-blocks > *,
body.home main,
body.home main > *,
body.home .wp-block-post-content,
body.home .wp-block-post-content > *,
body.home .entry-content,
body.home .entry-content > *,
body.home .wp-block-group,
body.home .wp-block-group.is-layout-constrained,
body.home .wp-block-group.is-layout-flow,
body.home .wp-block-html,
body.home .is-layout-constrained > *:not(.alignwide):not(.alignfull) {
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Override the CSS variables that Twenty Twenty-Five uses to set content width */
body.home {
    --wp--style--global--content-size: 100% !important;
    --wp--style--global--wide-size: 100% !important;
}

/* Hide default header/footer on homepage only */
body.home > header,
body.home .wp-site-blocks > header,
body.home .wp-block-template-part[data-type="header"],
body.home header.wp-block-template-part,
body.home > footer,
body.home .wp-site-blocks > footer,
body.home .wp-block-template-part[data-type="footer"],
body.home footer.wp-block-template-part {
    display: none !important;
}

/* Hide auto-inserted page title */
body.home .wp-block-post-title,
body.home h1.entry-title,
body.home .entry-header {
    display: none !important;
}

/* Remove Twenty Twenty-Five's default section padding that's wrapping the content */
body.home .wp-block-group.has-global-padding {
    padding: 0 !important;
}
body.home .wp-site-blocks.has-global-padding,
body.home .has-global-padding {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ==========================================================
   SOLAS SHAPES — SITE STYLES
   ========================================================== */

:root {
    --bg:           #0a0b0d;
    --bg-elev:      #111317;
    --bg-elev-2:    #16191e;
    --border:       #23272e;
    --border-bright:#2f343d;
    --ink:          #f4f6f8;
    --ink-dim:      #a7adb5;
    --ink-mute:     #6b7078;
    --accent:       #d7ff00;
    --accent-dim:   #9fbf00;
    --accent-glow:  rgba(215,255,0,0.18);
    --hazard:       #ff4d2e;
    --radius:       14px;
    --maxw:         1280px;
    --ease:         cubic-bezier(.2,.7,.2,1);
}

body.home {
    font-family: 'Inter Tight', system-ui, sans-serif !important;
    background: var(--bg) !important;
    color: var(--ink) !important;
    line-height: 1.55 !important;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.home * { box-sizing: border-box; }

body.home::before {
    content: "";
    position: fixed; inset: 0;
    background:
      radial-gradient(ellipse 80% 50% at 50% -10%, var(--accent-glow), transparent 60%),
      linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px) 0 0 / 64px 64px,
      linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px) 0 0 / 64px 64px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse 120% 80% at 50% 20%, #000 40%, transparent 90%);
}

body.home a { color: inherit; text-decoration: none; }
body.home img { max-width: 100%; display: block; }

body.home .container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

/* NAV */
body.home nav.solas-nav {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(10,11,13,0.72);
    border-bottom: 1px solid var(--border);
}
body.home .nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 28px;
    max-width: var(--maxw); margin: 0 auto;
}
body.home .brand {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 800; letter-spacing: -0.02em; font-size: 18px;
}
body.home .brand-mark {
    width: 26px; height: 26px; border-radius: 6px;
    background: linear-gradient(135deg, var(--accent) 0%, #fff 100%);
    position: relative;
    box-shadow: 0 0 22px var(--accent-glow);
}
body.home .brand-mark::after {
    content: ""; position: absolute; inset: 5px;
    background: var(--bg);
    border-radius: 3px;
}
body.home .nav-links {
    display: flex; gap: 32px;
    font-size: 14px; color: var(--ink-dim);
    font-weight: 500;
}
body.home .nav-links a { transition: color .2s var(--ease); }
body.home .nav-links a:hover { color: var(--ink); }
body.home .nav-cta {
    font-size: 13px; font-weight: 600;
    padding: 9px 16px; border-radius: 999px;
    background: var(--ink); color: var(--bg);
    transition: transform .2s var(--ease), background .2s var(--ease);
}
body.home .nav-cta:hover { background: var(--accent); transform: translateY(-1px); }
@media (max-width: 720px) { body.home .nav-links { display: none; } }

/* HERO */
body.home .hero {
    padding: 110px 0 80px;
    position: relative;
}
body.home .eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px; color: var(--accent);
    text-transform: uppercase; letter-spacing: 0.14em;
    padding: 7px 14px; border-radius: 999px;
    background: rgba(215,255,0,0.06);
    border: 1px solid rgba(215,255,0,0.22);
    margin-bottom: 28px;
}
body.home .eyebrow .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; } 50% { opacity: 0.4; }
}

body.home h1.hero-title {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: clamp(44px, 7.5vw, 104px);
    line-height: 0.98;
    letter-spacing: -0.035em;
    max-width: 14ch;
    margin-bottom: 32px;
}
body.home h1.hero-title em {
    font-style: italic;
    font-weight: 300;
    color: var(--ink-dim);
}
body.home .shimmer {
    background: linear-gradient(
      90deg,
      var(--ink) 0%,
      var(--ink) 30%,
      #ffffff 45%,
      var(--accent) 52%,
      #ffffff 59%,
      var(--ink) 74%,
      var(--ink) 100%
    );
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 6s linear infinite;
}
@keyframes shimmer {
    0%   { background-position: 120% 0; }
    100% { background-position: -120% 0; }
}

body.home .hero-sub {
    font-size: clamp(16px, 1.4vw, 19px);
    color: var(--ink-dim);
    max-width: 56ch;
    margin-bottom: 44px;
}
body.home .hero-cta {
    display: flex; gap: 14px; flex-wrap: wrap;
}
body.home .btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 22px; border-radius: 999px;
    font-size: 15px; font-weight: 600;
    transition: all .2s var(--ease);
    border: 1px solid transparent;
    cursor: pointer;
}
body.home .btn-primary {
    background: var(--accent); color: #0a0b0d;
    box-shadow: 0 0 0 0 var(--accent-glow);
}
body.home .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px var(--accent-glow);
}
body.home .btn-ghost {
    background: transparent; color: var(--ink);
    border-color: var(--border-bright);
}
body.home .btn-ghost:hover { border-color: var(--ink); background: rgba(255,255,255,0.04); }

/* STATS STRIP */
body.home .stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 110px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
body.home .stat {
    padding: 32px 24px;
    border-right: 1px solid var(--border);
}
body.home .stat:last-child { border-right: none; }
body.home .stat-num {
    font-family: 'Fraunces', serif;
    font-size: clamp(36px, 4vw, 54px);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 10px;
}
body.home .stat-num .unit {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px; color: var(--ink-mute);
    letter-spacing: 0;
    margin-left: 6px;
    font-weight: 400;
}
body.home .stat-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; color: var(--ink-mute);
    text-transform: uppercase; letter-spacing: 0.1em;
}
@media (max-width: 780px) {
    body.home .stats { grid-template-columns: repeat(2, 1fr); }
    body.home .stat:nth-child(2n) { border-right: none; }
    body.home .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}

/* SECTION BASE */
body.home section.solas-section { padding: 120px 0; position: relative; }
body.home .section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px; color: var(--ink-mute);
    text-transform: uppercase; letter-spacing: 0.14em;
    margin-bottom: 24px;
    display: flex; align-items: center; gap: 14px;
}
body.home .section-label::before {
    content: ""; width: 24px; height: 1px; background: var(--accent);
}
body.home h2.solas-h2 {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.02;
    letter-spacing: -0.03em;
    max-width: 20ch;
    margin-bottom: 24px;
    color: var(--ink);
}
body.home h2.solas-h2 em { font-style: italic; font-weight: 300; color: var(--ink-dim); }
body.home .section-lede {
    font-size: 18px; color: var(--ink-dim);
    max-width: 60ch;
}

/* WHY */
body.home .why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    margin-top: 72px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
body.home .why-cell {
    background: var(--bg-elev);
    padding: 40px 36px;
    position: relative;
    transition: background .3s var(--ease);
}
body.home .why-cell:hover { background: var(--bg-elev-2); }
body.home .why-icon {
    width: 44px; height: 44px;
    border: 1px solid var(--border-bright);
    border-radius: 10px;
    display: grid; place-items: center;
    margin-bottom: 28px;
    color: var(--accent);
}
body.home .why-cell h3 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 24px;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--ink);
}
body.home .why-cell p {
    color: var(--ink-dim); font-size: 15px;
}
@media (max-width: 900px) {
    body.home .why-grid { grid-template-columns: 1fr; }
}

/* COMPARE */
body.home .compare {
    margin-top: 72px;
    padding: 44px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
body.home .compare-head {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 36px; gap: 20px; flex-wrap: wrap;
}
body.home .compare h3 {
    font-family: 'Fraunces', serif; font-weight: 500;
    font-size: 26px; letter-spacing: -0.02em;
    color: var(--ink);
}
body.home .compare-sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px; color: var(--ink-mute);
    text-transform: uppercase; letter-spacing: 0.1em;
}
body.home .bar-row {
    display: grid;
    grid-template-columns: 180px 1fr 90px;
    align-items: center;
    gap: 20px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
}
body.home .bar-label {
    font-size: 14px; color: var(--ink);
    font-weight: 500;
}
body.home .bar-label .sub {
    display: block; font-family: 'JetBrains Mono', monospace;
    font-size: 11px; color: var(--ink-mute);
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-top: 2px; font-weight: 400;
}
body.home .bar-track {
    height: 10px; border-radius: 999px;
    background: rgba(255,255,255,0.04);
    overflow: hidden; position: relative;
}
body.home .bar-fill {
    height: 100%; border-radius: 999px;
    background: var(--ink-mute);
    width: 0;
    animation: grow 1.6s var(--ease) forwards;
}
body.home .bar-fill.solas {
    background: linear-gradient(90deg, var(--accent) 0%, #fff 100%);
    box-shadow: 0 0 14px var(--accent-glow);
}
@keyframes grow { to { width: var(--w); } }
body.home .bar-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px; color: var(--ink-dim);
    text-align: right;
}
body.home .bar-val.hi { color: var(--accent); font-weight: 500; }
@media (max-width: 640px) {
    body.home .bar-row { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
    body.home .bar-val { text-align: left; }
}

/* PRODUCT GRID */
body.home .shop-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    gap: 32px; flex-wrap: wrap; margin-bottom: 56px;
}
body.home .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
body.home .product-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color .25s var(--ease), transform .25s var(--ease);
    display: flex; flex-direction: column;
    min-height: 340px;
}
body.home .product-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-3px);
}
body.home .product-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; color: var(--accent);
    text-transform: uppercase; letter-spacing: 0.1em;
    margin-bottom: 14px;
}
body.home .product-card h3 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 22px;
    letter-spacing: -0.015em;
    margin-bottom: 10px;
    color: var(--ink);
}
body.home .product-card p {
    color: var(--ink-dim); font-size: 14px; margin-bottom: 24px;
    flex: 1;
}
body.home .buy-slot {
    min-height: 56px;
    padding-top: 20px;
    border-top: 1px dashed var(--border);
    position: relative;
}
body.home .buy-slot:empty::before {
    content: "▸ Paste Shopify Buy Button embed here";
    position: absolute; top: 20px; left: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; color: var(--ink-mute);
    letter-spacing: 0.05em;
}

/* APPLICATIONS */
body.home .apps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 64px;
}
body.home .app-card {
    aspect-ratio: 3 / 4;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 28px;
    display: flex; flex-direction: column; justify-content: space-between;
    position: relative; overflow: hidden;
    background: var(--bg-elev);
    transition: transform .3s var(--ease), border-color .3s var(--ease);
}
body.home .app-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}
body.home .app-card::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 70% 20%, var(--accent-glow), transparent 60%);
    opacity: 0; transition: opacity .4s var(--ease);
}
body.home .app-card:hover::before { opacity: 1; }
body.home .app-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px; color: var(--ink-mute);
    letter-spacing: 0.1em;
    position: relative; z-index: 1;
}
body.home .app-body { position: relative; z-index: 1; }
body.home .app-card h3 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 26px;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    color: var(--ink);
}
body.home .app-card p {
    color: var(--ink-dim); font-size: 14px;
}
@media (max-width: 900px) { body.home .apps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { body.home .apps-grid { grid-template-columns: 1fr; } body.home .app-card { aspect-ratio: 16 / 10; } }

/* SPEC */
body.home .spec {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
body.home .spec-visual {
    aspect-ratio: 1;
    border-radius: var(--radius);
    background: var(--bg-elev);
    border: 1px solid var(--border);
    position: relative; overflow: hidden;
}
body.home .spec-visual img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
body.home .spec-visual::after {
    content: "";
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 80% 60% at 50% 50%, transparent 30%, rgba(10,11,13,0.55) 100%),
      linear-gradient(180deg, transparent 60%, rgba(10,11,13,0.8) 100%);
    pointer-events: none;
}
body.home .spec-caption {
    position: absolute;
    bottom: 16px; left: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px; color: var(--ink-dim);
    letter-spacing: 0.14em;
    z-index: 2;
}
body.home .spec-list {
    list-style: none; margin-top: 40px;
    padding: 0;
}
body.home .spec-list li {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 24px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}
body.home .spec-list li span:first-child {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px; color: var(--ink-mute);
    text-transform: uppercase; letter-spacing: 0.1em;
    padding-top: 3px;
}
body.home .spec-list li span:last-child { color: var(--ink); }
@media (max-width: 900px) { body.home .spec { grid-template-columns: 1fr; gap: 48px; } }

/* CTA BANNER */
body.home .cta-banner {
    padding: 88px 56px;
    background: linear-gradient(135deg, var(--bg-elev) 0%, var(--bg-elev-2) 100%);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius);
    text-align: center;
    position: relative; overflow: hidden;
}
body.home .cta-banner::before {
    content: ""; position: absolute; inset: 0;
    background:
      radial-gradient(circle at 20% 0%, var(--accent-glow), transparent 50%),
      radial-gradient(circle at 80% 100%, rgba(255,255,255,0.04), transparent 50%);
}
body.home .cta-banner > * { position: relative; z-index: 1; }
body.home .cta-banner h2.solas-h2 {
    margin: 0 auto 20px;
    max-width: 18ch;
}
body.home .cta-banner p {
    color: var(--ink-dim); font-size: 17px;
    max-width: 55ch; margin: 0 auto 36px;
}

/* FOOTER */
body.home footer.solas-footer {
    border-top: 1px solid var(--border);
    padding: 72px 0 40px;
    margin-top: 80px;
    position: relative; z-index: 1;
    display: block !important;
}
body.home .foot-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}
body.home .foot-brand p {
    color: var(--ink-dim); font-size: 14px; margin-top: 16px;
    max-width: 36ch;
}
body.home .foot-col h4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; color: var(--ink-mute);
    text-transform: uppercase; letter-spacing: 0.14em;
    margin-bottom: 18px;
}
body.home .foot-col ul { list-style: none; padding: 0; }
body.home .foot-col li { margin-bottom: 10px; }
body.home .foot-col a {
    font-size: 14px; color: var(--ink-dim);
    transition: color .2s var(--ease);
}
body.home .foot-col a:hover { color: var(--ink); }
body.home .foot-base {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 32px; border-top: 1px solid var(--border);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px; color: var(--ink-mute);
    gap: 16px; flex-wrap: wrap;
}
@media (max-width: 800px) {
    body.home .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    body.home .foot-brand { grid-column: 1 / -1; }
}

/* SCROLL REVEAL */
body.home .reveal {
    opacity: 0; transform: translateY(20px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}
body.home .reveal.in { opacity: 1; transform: none; }

/* ==========================================================
   REMOVE TOP GAP above the sticky nav on homepage
   ========================================================== */
body.home {
    margin: 0 !important;
    padding: 0 !important;
}

/* Kill top padding/margin on every WordPress wrapper */
body.home .wp-site-blocks,
body.home main,
body.home .wp-block-post-content,
body.home .entry-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Kill spacing above the first block (the Custom HTML block) */
body.home .wp-block-post-content > *:first-child,
body.home .entry-content > *:first-child,
body.home .wp-block-html:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Push nav to the absolute top */
body.home nav.solas-nav {
    margin-top: 0 !important;
}

/* If WordPress admin bar is showing, account for its 32px offset */
html[lang] { scroll-padding-top: 0 !important; }
body.home.admin-bar nav.solas-nav {
    top: 32px !important;
}
@media screen and (max-width: 782px) {
    body.home.admin-bar nav.solas-nav {
        top: 46px !important;
    }
}
/* ==========================================================
   SHOPIFY COLLECTION BUY BUTTON — integration with SOLAS theme
   ========================================================== */
body.home .shopify-collection-wrapper {
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

/* Give the Shopify iframe some breathing room */
body.home .shopify-buy__collection-products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 24px !important;
}

/* Override Shopify's product container if it conflicts */
body.home .shopify-buy__product {
    max-width: none !important;
    width: 100% !important;
    background: var(--bg-elev) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    padding: 20px !important;
    transition: border-color .25s var(--ease), transform .25s var(--ease) !important;
}

body.home .shopify-buy__product:hover {
    border-color: var(--border-bright) !important;
    transform: translateY(-3px) !important;
}

/* Ensure text inside Shopify products is readable on our dark background */
body.home .shopify-buy__product__title {
    color: var(--ink) !important;
    font-family: 'Fraunces', serif !important;
}

body.home .shopify-buy__product__price {
    color: var(--accent) !important;
    font-family: 'JetBrains Mono', monospace !important;
}