/*
Theme Name: Vigyan Calcium Colour
Author: Vigyan Lime
Description: Green-and-gold single-page calcium carbonate website.
Version: 3.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: vigyan-calcium-color
*/

:root {
    --green: #064b37;
    --deep: #032f25;
    --gold: #a66e02;
    --gold-light: #f3cc60;
    --ink: #173b30;
    --muted: #586961;
    --cream: #fbfaf4;
    --line: #dbe5dc;
    --shadow: 0 18px 55px rgba(10, 56, 36, .09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 116px; }
body { margin: 0; color: var(--ink); background: #fff; font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.7; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline-offset: 2px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; letter-spacing: -.04em; }
h2 { margin-bottom: 23px; font-size: clamp(34px, 4vw, 54px); }
h3 { font-size: 23px; }
p { color: var(--muted); }
em { color: var(--gold); font-style: normal; }
.container { width: min(1280px, calc(100% - 64px)); margin-inline: auto; }
.section { padding-block: 92px; }
.eyebrow { margin-bottom: 17px; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .2em; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 20px; min-height: 49px; padding: 12px 23px; border: 1px solid transparent; border-radius: 7px; font-size: 13px; font-weight: 700; line-height: 1.3; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 9px 23px rgba(0, 50, 30, .15); }
.btn-green { color: #fff; background: linear-gradient(125deg, #0c6348, var(--deep)); }
.btn-gold { color: #173325; background: linear-gradient(120deg, #ffeaa2, #e3ad29); }
.btn-outline { color: var(--green); border-color: var(--gold); background: rgba(255,255,255,.92); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--green); font-size: 14px; font-weight: 700; padding: 9px 0; border-bottom: 1px solid #c9b274; }
.text-link:hover { color: var(--gold); }
.skip-link { position: absolute; top: -90px; left: 20px; padding: 12px; z-index: 1000; background: #fff; color: var(--green); }
.skip-link:focus { top: 10px; }

/* Header */
.topbar { background: var(--deep); color: #fff; font-size: 10px; letter-spacing: .11em; }
.topbar-inner { display: flex; justify-content: space-between; gap: 20px; padding-block: 9px; }
.topbar b { color: var(--gold-light); padding-inline: 10px; }
.topbar a { color: #f8df9b; letter-spacing: .03em; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); border-bottom: 1px solid rgba(6,75,55,.08); box-shadow: 0 3px 22px rgba(5,35,20,.035); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 100px; }
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand img { width: 76px; height: 76px; object-fit: contain; border-radius: 50%; background: #fff; }
.brand strong { display: block; font-size: 17px; line-height: 1.3; letter-spacing: -.035em; }
.brand small { display: block; margin-top: 5px; font-size: 8px; letter-spacing: .15em; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { padding-block: 12px; font-size: 12px; font-weight: 700; position: relative; }
.site-nav a::after { content: ''; position: absolute; left: 0; bottom: 4px; width: 0; height: 2px; background: var(--gold); transition: width .2s; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { width: 100%; }
.menu-toggle { display: none; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--green); padding: 9px 12px; }
.admin-bar .site-header { top: 32px; }

/* Hero */
.hero { position: relative; isolation: isolate; min-height: 650px; display: flex; align-items: center; overflow: hidden; background: #edf5ee; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -2; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(250,252,248,.96), rgba(250,252,248,.94) 31%, rgba(250,252,248,.42) 53%, transparent 70%); }
.hero-content { padding-block: 70px 90px; animation: entrance .75s ease-out both; }
.hero .eyebrow { color: var(--green); }
.hero h1 { max-width: 720px; margin-bottom: 14px; color: var(--deep); font-size: clamp(44px, 4.6vw, 69px); line-height: 1.035; }
.hero h1 span { color: var(--gold); }
.hero-tagline { margin-bottom: 16px; color: var(--green); font: bold clamp(25px, 2.3vw, 33px)/1.2 Georgia, serif; }
.hero-copy { margin-bottom: 28px; max-width: 430px; color: #385149; }
.actions { display: flex; flex-wrap: wrap; gap: 13px; }
.hero-facts { display: flex; gap: 24px; margin-top: 35px; }
.hero-facts > div { padding-right: 24px; border-right: 1px solid #bdcfc0; }
.hero-facts > div:last-child { border: 0; }
.hero-facts strong, .hero-facts small { display: block; }
.hero-facts strong { font-size: 18px; color: var(--green); }
.hero-facts small { font-size: 10px; }
.benefits { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: -38px; padding: 27px 20px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.benefit { display: flex; align-items: center; gap: 15px; padding-inline: 20px; border-right: 1px solid var(--line); }
.benefit:last-child { border: 0; }
.benefit h2 { margin-bottom: 7px; font: 700 14px/1.35 Arial, sans-serif; letter-spacing: 0; }
.benefit p { margin: 0; font-size: 11px; line-height: 1.5; }
.icon { flex-shrink: 0; width: 42px; height: 42px; color: var(--green); }
.icon svg { width: 100%; height: 100%; }

/* About */
.about { background: linear-gradient(145deg, #fff 65%, #f3f7ed); }
.about-grid { display: grid; grid-template-columns: 1fr 1.08fr; align-items: center; gap: 70px; }
.about-visual { position: relative; }
.about-visual > img { width: 100%; height: 445px; object-fit: cover; border-radius: 12px 70px 12px 12px; }
.image-label { position: absolute; bottom: 24px; right: -20px; min-width: 195px; padding: 20px 28px; background: var(--deep); border-left: 4px solid var(--gold-light); color: #fff; box-shadow: var(--shadow); }
.image-label strong, .image-label span { display: block; }
.image-label strong { font: 26px Georgia, serif; }
.image-label span { margin-top: 7px; color: #f2d683; font-size: 14px; }
.about-copy > p:not(.eyebrow) { font-size: 14px; }
.about-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin: 25px 0 16px; }
.about-points span { color: var(--green); font-size: 11px; line-height: 1.45; }
.about-points svg { display: block; width: 30px; height: 30px; margin-bottom: 10px; }

/* Product and application cards */
.products { background: var(--cream); border-block: 1px solid #efeee1; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; margin-bottom: 36px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 350px; margin-bottom: 3px; font-size: 14px; }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.product-card { display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: box-shadow .3s, transform .3s; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-image { position: relative; min-height: 315px; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover img { transform: scale(1.035); }
.product-image > span { position: absolute; left: 16px; top: 16px; padding: 5px 13px; border-radius: 4px; background: var(--green); color: #fff; font-size: 12px; font-weight: 700; }
.product-body { padding: 28px 24px; }
.product-body .eyebrow { margin-bottom: 12px; font-size: 9px; }
.product-body h3 { font-family: Georgia, serif; margin-bottom: 17px; font-size: 26px; }
.product-body p { font-size: 13px; }
.product-body small { display: block; color: var(--muted); font-size: 10px; margin-bottom: 15px; }
.product-body .text-link { font-size: 12px; }
.application-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.application-card { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: white; transition: transform .25s, box-shadow .25s; }
.application-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.application-card > img { width: 100%; aspect-ratio: 1.15; object-fit: cover; }
.application-card > div { padding: 15px 12px 10px; }
.application-card h3 { font: 700 12px/1.4 Arial, sans-serif; margin-bottom: 7px; }
.application-card p { font-size: 10px; line-height: 1.55; margin: 0; }
.application-card span { display: block; margin-top: 6px; color: var(--gold); font-size: 21px; }

/* Dark legacy banner */
.legacy { position: relative; isolation: isolate; overflow: hidden; background: var(--deep); color: white; }
.legacy > img { position: absolute; z-index: -2; right: 0; top: 0; width: 64%; height: 100%; object-fit: cover; }
.legacy::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #033c2d 25%, rgba(3,60,45,.91) 48%, rgba(3,60,45,.62)); }
.legacy-inner { display: grid; grid-template-columns: 1.35fr 1fr; gap: 80px; align-items: center; padding-block: 64px; }
.legacy h2 { font-size: clamp(35px, 3.5vw, 48px); color: #fff; }
.legacy p { max-width: 540px; color: #e1eee1; font-size: 14px; }
.legacy .eyebrow { color: var(--gold-light); }
.legacy-values { display: grid; gap: 22px; justify-self: end; }
.legacy-values span { display: grid; grid-template-columns: 45px 1fr; column-gap: 15px; font-size: 12px; }
.legacy-values svg { width: 37px; height: 37px; grid-row: span 2; color: var(--gold-light); }
.legacy-values b { letter-spacing: .13em; font-size: 11px; }

/* Quality */
.quality { background: #fcfcf8; }
.quality-grid { display: grid; grid-template-columns: .9fr 1.3fr; align-items: center; gap: 80px; }
.quality-grid p { font-size: 14px; }
.quality-panel { padding: 34px; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.quality-panel h3 { font-size: 13px; margin-bottom: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 27px; }
.chips span { padding: 7px 11px; border: 1px solid #d8e9dc; border-radius: 5px; color: #17573c; background: #f2f8f2; font-size: 11px; }
.chips-gold span { color: #795310; background: #fffaec; border-color: #f2e3b9; }
.standards { font-size: 12px; line-height: 2; }
.standards b { padding-inline: 5px; color: var(--gold); }

/* Contact */
.contact { background: radial-gradient(ellipse at left bottom, #dfebd2, transparent 50%), linear-gradient(120deg, #f5f9ed, #fff7e6); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 75px; align-items: center; }
.contact-copy > p { max-width: 360px; font-size: 14px; }
.contact-email { display: inline-block; margin: 8px 0 20px; font-size: 22px; font-weight: 700; color: var(--green); overflow-wrap: anywhere; }
.phones { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; font-size: 14px; }
.phones a:hover, .office a:hover, .contact-email:hover { text-decoration: underline; }
.office { margin-top: 26px; }
.office strong { display: block; margin-bottom: 8px; color: var(--gold); font-size: 10px; letter-spacing: .13em; }
.office a { font-size: 13px; }
.enquiry-form { min-width: 0; padding: 36px; background: #fff; border: 1px solid #e4e7d8; border-radius: 14px; box-shadow: var(--shadow); }
.enquiry-form h3 { margin-bottom: 8px; color: var(--green); font: bold 29px Georgia, serif; }
.form-intro { margin-bottom: 23px; font-size: 11px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.form-grid label { min-width: 0; color: var(--green); font-size: 11px; font-weight: 700; }
.form-grid input, .form-grid select, .form-grid textarea { display: block; width: 100%; min-width: 0; margin-top: 7px; padding: 12px; color: var(--ink); background: #fbfcfa; border: 1px solid #d7dfd4; border-radius: 5px; font-size: 13px; font-weight: 400; }
.form-grid input, .form-grid select { min-height: 46px; }
.form-grid textarea { resize: vertical; min-height: 112px; }
.form-grid .full { grid-column: 1/-1; }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.submit-button { width: 100%; margin-top: 21px; }
.form-status { margin: 13px 0 0; color: var(--green); font-size: 12px; overflow-wrap: anywhere; }
.form-status.error { color: #a02323; }
.email-fallback { display: inline-block; margin-top: 13px; color: var(--green); font-size: 11px; text-decoration: underline; }

/* Footer and non-home pages */
.site-footer { color: #fff; background: var(--deep); }
.footer-grid { display: grid; grid-template-columns: 1.45fr .75fr 1.1fr; gap: 65px; padding-block: 52px; }
.footer-brand strong { font-size: 17px; }
.footer-brand small { color: #d8e6d5; }
.footer-grid p { margin: 19px 0 10px; color: #d0dfd4; font-size: 12px; }
.footer-grid h2 { font: 700 14px Arial, sans-serif; letter-spacing: 0; margin-bottom: 20px; color: #f8df99; }
.footer-grid > div > a:not(.brand) { display: block; margin-bottom: 10px; font-size: 12px; color: #e0ecdf; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-bottom { background: #806018; color: #fff8e7; padding-block: 17px; }
.footer-bottom > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 10px; }
.mobile-actions { display: none; }
.entry-content { min-height: 60vh; overflow-wrap: anywhere; }
.entry-content h1 { font-size: clamp(32px, 5vw, 54px); }
.entry-content article { margin-bottom: 45px; }

/* Motion is short and non-looping; content remains visible without JavaScript. */
@keyframes entrance { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.reveal.is-visible { animation: entrance .65s ease-out both; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Tablet */
@media (max-width: 1180px) {
    .container { width: min(1080px, calc(100% - 48px)); }
    .header-inner { gap: 16px; }
    .brand strong { font-size: 15px; }
    .brand img { width: 65px; height: 65px; }
    .site-nav { gap: 15px; }
    .header-cta { padding-inline: 15px; font-size: 11px; }
    .benefit { padding-inline: 13px; gap: 10px; }
    .benefit h2 { font-size: 12px; }
    .icon { width: 31px; height: 31px; }
    .about-grid, .quality-grid, .contact-grid { gap: 45px; }
    .product-card { grid-template-columns: 1fr; }
    .product-image { height: 230px; min-height: 0; }
    .application-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { gap: 35px; }
}
@media (max-width: 980px) {
    .header-inner { flex-wrap: wrap; padding-block: 10px; min-height: 85px; }
    .header-cta { display: none; }
    .site-nav { flex: 0 0 100%; justify-content: center; flex-wrap: wrap; }
    .js-enabled .menu-toggle { display: inline-flex; margin-left: auto; }
    .js-enabled .site-nav { display: none; }
    .js-enabled .site-nav.is-open { display: flex; padding-block: 14px; border-top: 1px solid var(--line); }
    .hero { min-height: 625px; }
    .hero::before { background: linear-gradient(90deg, rgba(250,252,248,.97), rgba(250,252,248,.85) 45%, rgba(250,252,248,.12)); }
    .hero h1 { font-size: clamp(45px, 6.4vw, 64px); max-width: 650px; }
    .benefits { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
    .benefit:nth-child(2) { border: 0; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .about-visual { max-width: 650px; }
    .about-copy { max-width: 650px; }
    .section-heading { align-items: flex-start; }
    .quality-grid { grid-template-columns: 1fr; }
    .quality-grid > div:first-child { max-width: 600px; }
    .legacy-inner { gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:first-child { grid-column: 1/-1; }
}

/* Mobile */
@media (max-width: 600px) {
    html { scroll-padding-top: 91px; }
    .container { width: calc(100% - 36px); }
    .section { padding-block: 60px; }
    .topbar-inner { justify-content: center; font-size: 8px; letter-spacing: .065em; }
    .topbar a { display: none; }
    .brand { gap: 9px; }
    .brand img { width: 52px; height: 52px; }
    .brand strong { font-size: 12px; }
    .brand small { font-size: 6px; letter-spacing: .08em; }
    .header-inner { min-height: 76px; gap: 8px; }
    .menu-toggle { font-size: 11px; padding: 8px; }
    .site-nav { gap: 12px 22px; }
    .site-nav a { font-size: 12px; }
    .admin-bar .site-header { top: 0; }
    .hero { min-height: 735px; align-items: flex-start; }
    .hero-image { top: auto; bottom: 0; height: 350px; object-position: 76% center; }
    .hero::before { background: linear-gradient(180deg, #f8fbf8 47%, rgba(248,251,248,.93) 57%, rgba(248,251,248,.05) 76%); }
    .hero-content { padding-block: 39px 300px; }
    .hero .eyebrow { font-size: 8px; letter-spacing: .15em; }
    .hero h1 { font-size: clamp(35px, 9vw, 51px); }
    .hero-tagline { font-size: 24px; }
    .hero-copy { font-size: 13px; margin-bottom: 22px; }
    .actions { gap: 9px; }
    .actions .btn { padding: 12px 13px; font-size: 10px; gap: 9px; }
    .hero-facts { margin-top: 24px; gap: 12px; }
    .hero-facts > div { padding-right: 12px; }
    .hero-facts strong { font-size: 13px; }
    .hero-facts small { font-size: 8px; }
    .benefits { padding: 20px 10px; margin-top: -30px; gap: 20px 0; }
    .benefit { padding-inline: 9px; align-items: flex-start; gap: 8px; }
    .benefit h2 { font-size: 11px; }
    .benefit p { font-size: 9px; }
    .benefit .icon { width: 25px; height: 25px; }
    .about-visual > img { height: 315px; border-top-right-radius: 45px; }
    .image-label { right: 9px; bottom: 16px; min-width: 170px; padding: 16px 22px; }
    .image-label strong { font-size: 22px; }
    .about-grid { gap: 38px; }
    .about-points { gap: 12px; }
    .about-points span { font-size: 10px; }
    .section-heading { display: block; }
    .section-heading > p { margin-top: 20px; }
    .product-grid { grid-template-columns: 1fr; gap: 22px; }
    .product-image { height: 235px; }
    .product-body { padding: 25px; }
    .application-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
    .application-card h3 { font-size: 13px; }
    .application-card p { font-size: 11px; }
    .legacy-inner { grid-template-columns: 1fr; gap: 32px; padding-block: 52px; }
    .legacy > img { width: 100%; }
    .legacy::before { background: rgba(3,52,38,.9); }
    .legacy-values { justify-self: stretch; grid-template-columns: 1fr; }
    .quality-panel { padding: 25px 20px; }
    .chips { gap: 7px; }
    .chips span { font-size: 10px; padding: 7px 9px; }
    .contact-grid { gap: 35px; }
    .enquiry-form { padding: 25px 20px; }
    .enquiry-form h3 { font-size: 26px; }
    .form-grid { grid-template-columns: 1fr; gap: 14px; }
    .form-grid input, .form-grid select, .form-grid textarea { font-size: 16px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; padding-block: 42px; }
    .footer-brand img { width: 65px; height: 65px; }
    .footer-brand strong { font-size: 14px; }
    .footer-bottom { padding-bottom: 87px; }
    .footer-bottom > div { flex-direction: column; align-items: flex-start; gap: 9px; }
    .mobile-actions { display: grid; grid-template-columns: 1fr 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 105; padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--green); border-top: 1px solid #c8d9c5; }
    .mobile-actions a { padding: 16px 8px; text-align: center; font-size: 12px; font-weight: 700; color: white; }
    .mobile-actions a:last-child { background: var(--gold-light); color: var(--deep); }
}
@media (min-width: 601px) and (max-width: 782px) {
    .admin-bar .site-header { top: 46px; }
}
