/* =========================================================
   Swarna Jewellers — design tokens
   Palette: ivory ground, kasavu-border maroon, muted gold accent
   Type: Cormorant Garamond (display) + Jost (body/utility)
   ========================================================= */
:root {
    --ivory: #FBF6EC;
    --cream: #F3E7D2;
    --maroon: #6E1423;
    --maroon-dark: #470D17;
    --gold: #B4912E;
    --gold-light: #E7CD82;
    --ink: #2B221A;
    --ink-soft: #6b5f54;
    --line: #e4d8c3;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Jost', Arial, sans-serif;

    --radius: 2px;
    --shadow: 0 18px 40px -20px rgba(43, 34, 26, 0.35);
    --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--ivory);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0 0 .5em; color: var(--maroon-dark); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.btn--gold {
    background: var(--maroon);
    color: var(--gold-light);
    border-color: var(--maroon);
}
.btn--gold:hover { background: var(--maroon-dark); transform: translateY(-2px); }
.btn--ghost {
    background: transparent;
    color: var(--ivory);
    border-color: rgba(251,246,236,.55);
}
.btn--ghost:hover { background: rgba(251,246,236,.12); transform: translateY(-2px); }
.btn--outline {
    background: transparent;
    color: var(--maroon);
    border-color: var(--maroon);
}
.btn--outline:hover { background: var(--maroon); color: var(--gold-light); }

/* =========================================================
   Utility bar + Header
   ========================================================= */
.utility-bar {
    background: var(--maroon-dark);
    color: var(--gold-light);
    font-size: 12px;
}
.utility-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
    letter-spacing: .04em;
}
.utility-bar__item { opacity: .9; }
.utility-bar__social { display: flex; gap: 12px; }
.social-icon { width: 16px; height: 16px; color: var(--gold-light); opacity: .8; transition: opacity .2s; }
.social-icon:hover { opacity: 1; }
.social-icon svg { width: 100%; height: 100%; }
.footer__social .social-icon { width: 18px; height: 18px; }

.site-header {
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 82px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo__mark {
    width: 40px; height: 40px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--maroon);
    flex-shrink: 0;
}
.logo__text {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--maroon-dark);
    letter-spacing: .02em;
}
.logo__text em { font-style: normal; color: var(--gold); font-weight: 500; margin-left: 6px; }
.logo--footer .logo__mark { border-color: var(--gold-light); color: var(--gold-light); }
.logo--footer .logo__text { color: var(--ivory); }
.logo--footer .logo__text em { color: var(--gold-light); }

.site-nav ul { display: flex; gap: 34px; }
.site-nav a {
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--ink);
    position: relative;
    padding: 6px 0;
}
.site-nav a::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 2px; background: var(--gold);
    transform: scaleX(0); transform-origin: left;
    transition: transform .25s ease;
}
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }
.site-nav a.active { color: var(--maroon); }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px; height: 34px;
    background: none; border: none; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--maroon-dark); border-radius: 2px; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    background: linear-gradient(150deg, rgba(71,13,23,.88), rgba(110,20,35,.72)), url('../images/banner1.jpg') center 25%/cover no-repeat;
    color: var(--ivory);
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 82% 18%, rgba(231,205,130,.18), transparent 45%);
    pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 640px; padding: 100px 0; }
.hero .eyebrow { color: var(--gold-light); }
.hero h1 {
    color: var(--ivory);
    font-size: clamp(40px, 6vw, 64px);
    line-height: 1.08;
    margin-bottom: 22px;
}
.hero h1 span { color: var(--gold-light); font-style: italic; }
.hero p { color: rgba(251,246,236,.85); font-size: 17px; max-width: 480px; }
.hero__ctas { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

/* ---------- Ticker (signature element) ---------- */
.ticker {
    background: var(--maroon);
    color: var(--gold-light);
    overflow: hidden;
    border-bottom: 1px solid rgba(231,205,130,.25);
    position: relative;
}
.ticker::before, .ticker::after {
    content: '';
    position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--maroon), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--maroon), transparent); }
.ticker__track {
    display: flex;
    width: max-content;
    animation: ticker-scroll 28s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__set { display: flex; }
.ticker__item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 13px 40px;
    white-space: nowrap;
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
    border-right: 1px solid rgba(231,205,130,.25);
}
.ticker__item strong {
    font-family: var(--font-display);
    font-size: 17px;
    color: var(--ivory);
    text-transform: none;
    letter-spacing: 0;
}
@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* =========================================================
   Sections generic
   ========================================================= */
.section { padding: 96px 0; }
.section--cream { background: var(--cream); }
.section__head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.section__head h2 { font-size: clamp(30px, 4vw, 44px); }
.section__head p { color: var(--ink-soft); }
.section__head.align-left { margin-left: 0; text-align: left; }

.divider {
    width: 70px; height: 2px; background: var(--gold);
    margin: 18px auto 0;
}
.align-left + .divider, .align-left .divider { margin-left: 0; }

/* =========================================================
   Collections
   ========================================================= */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.collection-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3/4;
    box-shadow: var(--shadow);
    display: block;
}
.collection-card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s ease;
}
.collection-card:hover img { transform: scale(1.08); }
.collection-card__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(29,10,14,.92) 0%, rgba(29,10,14,.15) 55%, transparent 75%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 28px;
    color: var(--ivory);
}
.collection-card__overlay .eyebrow { color: var(--gold-light); margin-bottom: 6px; }
.collection-card__overlay h3 { color: var(--ivory); font-size: 28px; margin-bottom: 8px; }
.collection-card__overlay p { font-size: 13px; color: rgba(251,246,236,.8); margin-bottom: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s ease, opacity .4s ease, margin .4s ease; }
.collection-card:hover .collection-card__overlay p { max-height: 100px; opacity: 1; margin-bottom: 10px; }
.collection-card__cta { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-light); border-bottom: 1px solid var(--gold-light); display: inline-block; width: fit-content; }

/* =========================================================
   Heritage timeline
   ========================================================= */
.timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}
.timeline::before {
    content: '';
    position: absolute; top: 20px; left: 8%; right: 8%; height: 1px;
    background: var(--line);
    display: block;
}
.timeline-step { position: relative; padding-top: 56px; text-align: center; }
.timeline-step__dot {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--ivory);
    border: 1px solid var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 600; color: var(--maroon);
    font-size: 13px;
    z-index: 1;
}
.timeline-step h3 { font-size: 22px; margin-bottom: 10px; }
.timeline-step p { color: var(--ink-soft); font-size: 14px; }

/* =========================================================
   Gallery
   ========================================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.gallery-grid--preview { grid-template-columns: repeat(6, 1fr); }
.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 1/1;
    position: relative;
    cursor: zoom-in;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item::after {
    content: '+';
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(71,13,23,0);
    color: transparent;
    font-size: 34px; font-family: var(--font-display);
    transition: background .3s ease, color .3s ease;
}
.gallery-item:hover::after { background: rgba(71,13,23,.45); color: var(--ivory); }
.section__foot { text-align: center; margin-top: 48px; }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; background: rgba(20,10,10,.92);
    display: none; align-items: center; justify-content: center;
    z-index: 200; padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 82vh; border: 6px solid var(--ivory); box-shadow: var(--shadow); }
.lightbox__close, .lightbox__prev, .lightbox__next {
    position: absolute; background: rgba(251,246,236,.1); border: 1px solid rgba(251,246,236,.4);
    color: var(--ivory); width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 20px; transition: background .2s;
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: rgba(251,246,236,.25); }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 24px; top: 50%; transform: translateY(-50%); }

/* =========================================================
   Trust badges
   ========================================================= */
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.badge { text-align: center; padding: 30px 16px; }
.badge__icon {
    width: 56px; height: 56px; margin: 0 auto 16px;
    border: 1px solid var(--gold); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--maroon);
}
.badge__icon svg { width: 26px; height: 26px; }
.badge h4 { font-size: 16px; font-family: var(--font-body); font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.badge p { font-size: 13px; color: var(--ink-soft); margin: 0; }

/* =========================================================
   Visit / CTA band
   ========================================================= */
.visit-band {
    background: var(--maroon-dark);
    color: var(--ivory);
    padding: 70px 0;
}
.visit-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.visit-band h2 { color: var(--ivory); margin-bottom: 10px; }
.visit-band p { color: rgba(251,246,236,.8); margin: 0; }

/* =========================================================
   About page
   ========================================================= */
.about-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.about-split__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-split__body .eyebrow { }
.values-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 20px; }
.value-item { border-top: 2px solid var(--gold); padding-top: 14px; }
.value-item h4 { font-size: 16px; margin-bottom: 6px; }
.value-item p { font-size: 13px; color: var(--ink-soft); }

/* =========================================================
   Collection detail page
   ========================================================= */
.category-nav {
    display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 48px; justify-content: center;
}
.category-nav a {
    padding: 10px 22px; border: 1px solid var(--line); border-radius: 30px;
    font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft);
    transition: all .2s;
}
.category-nav a:hover { border-color: var(--gold); color: var(--maroon); }
.category-nav a.active { background: var(--maroon); border-color: var(--maroon); color: var(--gold-light); }
.category-hero {
    display: flex; align-items: center; gap: 48px; margin-bottom: 64px;
}
.category-hero img { width: 280px; height: 280px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); flex-shrink: 0; }

/* =========================================================
   Forms
   ========================================================= */
.form-card {
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}
.form-row { margin-bottom: 20px; }
.form-row label {
    display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
    color: var(--ink-soft); margin-bottom: 8px; font-weight: 600;
}
.form-row input, .form-row textarea, .form-row select {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--ink);
    transition: border-color .2s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
    border-color: var(--gold);
    outline: none;
}
.form-row textarea { resize: vertical; min-height: 110px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-alert { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 24px; font-size: 14px; }
.form-alert--success { background: #eaf3ea; border: 1px solid #b7d8b7; color: #2e5c31; }
.form-alert--error { background: #fbeaea; border: 1px solid #e6b6b6; color: #7a2a2a; }

/* Contact page layout */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 28px; }
.contact-info-item__icon {
    width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--gold);
    color: var(--maroon); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-item__icon svg { width: 20px; height: 20px; }
.contact-info-item h4 { font-size: 15px; margin-bottom: 4px; font-family: var(--font-body); }
.contact-info-item p, .contact-info-item a { font-size: 14px; color: var(--ink-soft); margin: 0; display: block; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 12px; }
.map-frame iframe { width: 100%; height: 260px; border: 0; display: block; }

/* Career listings */
.job-list { display: flex; flex-direction: column; gap: 16px; }
.job-card {
    display: flex; justify-content: space-between; align-items: center; gap: 20px;
    padding: 22px 26px; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--ivory); flex-wrap: wrap;
}
.job-card__id { font-size: 11px; letter-spacing: .1em; color: var(--gold); text-transform: uppercase; margin-bottom: 4px; }
.job-card h4 { font-size: 19px; margin-bottom: 4px; }
.job-card__meta { font-size: 13px; color: var(--ink-soft); }

/* =========================================================
   Inner page banner
   ========================================================= */
.page-banner {
    background: linear-gradient(150deg, rgba(71,13,23,.92), rgba(110,20,35,.82)), url('../images/inner_bnr.jpg') center/cover;
    color: var(--ivory);
    padding: 80px 0 64px;
    text-align: center;
}
.page-banner h1 { color: var(--ivory); font-size: clamp(34px, 5vw, 48px); margin-bottom: 10px; }
.page-banner p { color: rgba(251,246,236,.8); max-width: 520px; margin: 0 auto; }
.breadcrumb { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 14px; }
.breadcrumb a { color: var(--gold-light); border-bottom: 1px solid transparent; }
.breadcrumb a:hover { border-color: var(--gold-light); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--maroon-dark); color: rgba(251,246,236,.75); }
.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding: 72px 0 48px;
}
.footer__col h4 {
    color: var(--gold-light); font-family: var(--font-body); font-size: 13px;
    letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; font-weight: 600;
}
.footer__col p { font-size: 14px; color: rgba(251,246,236,.7); max-width: 260px; }
.footer__links li { margin-bottom: 10px; }
.footer__links a { font-size: 14px; transition: color .2s; }
.footer__links a:hover { color: var(--gold-light); }
address { font-style: normal; font-size: 14px; line-height: 1.9; }
address a:hover { color: var(--gold-light); }
.footer__social { margin-top: 18px; }
.footer__bottom { border-top: 1px solid rgba(251,246,236,.12); }
.footer__bottom-inner {
    display: flex; justify-content: space-between; padding: 20px 24px;
    font-size: 12px; color: rgba(251,246,236,.5); flex-wrap: wrap; gap: 8px;
}

/* =========================================================
   Reveal-on-scroll (progressive enhancement)
   ========================================================= */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
    .collections-grid { grid-template-columns: 1fr; }
    .timeline { grid-template-columns: 1fr; gap: 36px; }
    .timeline::before { display: none; }
    .badges { grid-template-columns: repeat(2, 1fr); }
    .about-split { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-grid--preview { grid-template-columns: repeat(3, 1fr); }
    .category-hero { flex-direction: column; text-align: center; }
}

@media (max-width: 720px) {
    .site-nav {
        position: fixed; top: 118px; left: 0; right: 0; bottom: 0;
        background: var(--ivory);
        transform: translateX(100%);
        transition: transform .35s ease;
        padding: 30px 24px;
        z-index: 49;
        overflow-y: auto;
    }
    .site-nav.is-open { transform: translateX(0); }
    .site-nav ul { flex-direction: column; gap: 4px; }
    .site-nav a { display: block; padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
    .nav-toggle { display: flex; }
    .utility-bar__item { font-size: 10px; }
    .badges { grid-template-columns: 1fr 1fr; }
    .gallery-grid, .gallery-grid--preview { grid-template-columns: repeat(2, 1fr); }
    .form-grid-2 { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; padding: 56px 0 32px; }
    .visit-band__inner { flex-direction: column; text-align: center; }
    .job-card { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   WordPress-required helpers
   ========================================================= */
.screen-reader-text {
    border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
    height: 1px; width: 1px; overflow: hidden; position: absolute !important;
    word-wrap: normal !important;
}
.site-nav li.current-menu-item > a,
.site-nav li.current_page_item > a { color: var(--maroon); }
.site-nav li.current-menu-item > a::after { transform: scaleX(1); }

/* WYSIWYG content typed into the block editor (e.g. collection blurb) */
.entry-content p { margin: 0 0 1em; }
.entry-content a { color: var(--maroon); text-decoration: underline; }
