/*
Theme Name:   WoodMart Child — Shrivastava & Associates
Description:  Design system, footer, 404 and disclaimer notice for Shrivastava & Associates. Requires WoodMart + Elementor (free).
Template:     woodmart
Version:      1.0.0
Text Domain:  woodmart-child-sa
*/

/* =========================================================
   1. TOKENS
   ========================================================= */
:root {
	--sa-navy: #101D35;
	--sa-royal: #1B2D4B;
	--sa-gold: #C5A46D;          /* decorative gold: rules, marks, text on navy */
	--sa-gold-text: #8A6B38;     /* gold for small text on light bg (WCAG AA) */
	--sa-ivory: #F8F6F0;
	--sa-white: #FFFFFF;
	--sa-ink: #2B3850;           /* body text */
	--sa-muted: #5A6578;
	--sa-line: #E4DED2;          /* warm neutral border */
	--sa-line-dark: rgba(197, 164, 109, .26);
	--sa-serif: "Cormorant Garamond", "Times New Roman", serif;
	--sa-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
	--sa-hindi: "Noto Sans Devanagari", "Mangal", sans-serif;
	--sa-radius: 2px;
	--sa-ease: cubic-bezier(.2, .7, .2, 1);
}

/* =========================================================
   2. BASE (scoped so WoodMart elsewhere is untouched)
   ========================================================= */
body { overflow-x: clip; }
body.sa-site { font-family: var(--sa-sans); color: var(--sa-ink); }
[lang="hi"], .sa-hi, .sa-hi p { font-family: var(--sa-hindi); }

/* Elementor pages: no WoodMart title bar, no top gap */
.elementor-page .page-title,
.elementor-page .wd-page-title { display: none !important; }
.elementor-page .main-page-wrapper { padding-top: 0 !important; margin-top: 0 !important; }

/* Top-level bands always run edge to edge, whatever wrapper WoodMart uses */
.elementor > .e-con.sa-section,
.elementor > .e-con.sa-404 {
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
}
.sa-section .elementor-widget:not(:last-child) { margin-bottom: 0; }
.sa-section p:last-child, .sa-footer p:last-child { margin-bottom: 0; }

/* =========================================================
   3. TYPOGRAPHY
   ========================================================= */
body .sa-display .elementor-heading-title,
body .sa-h1 .elementor-heading-title,
body .sa-h2 .elementor-heading-title,
body .sa-h3 .elementor-heading-title,
.sa-prose h2 {
	font-family: var(--sa-serif);
	color: var(--sa-navy);
	font-weight: 500;
	letter-spacing: -.005em;
	text-transform: none;
}
body .sa-display .elementor-heading-title { font-size: clamp(44px, 5.6vw, 78px); line-height: 1.02; }
body .sa-h1 .elementor-heading-title { font-size: clamp(38px, 4.6vw, 62px); line-height: 1.06; }
body .sa-h2 .elementor-heading-title { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.1; }
body .sa-h3 .elementor-heading-title { font-size: clamp(23px, 2vw, 27px); line-height: 1.2; font-weight: 600; }
body .sa-h3 em, body .sa-h2 em { font-style: italic; font-weight: 500; color: var(--sa-gold-text); }

body .sa-eyebrow .elementor-heading-title,
.sa-eyebrow-inline {
	font-family: var(--sa-sans);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--sa-gold-text);
	line-height: 1.5;
}

.sa-section .elementor-widget-text-editor { font-size: 17px; line-height: 1.75; color: var(--sa-ink); }
.sa-lead, .sa-body-lg { font-size: 19px !important; line-height: 1.7 !important; }
.sa-small { font-size: 15px !important; line-height: 1.7 !important; color: var(--sa-muted) !important; }

.sa-hi { font-size: 1.06em; line-height: 1.85; color: var(--sa-muted); }
.sa-section .sa-hi.elementor-widget-text-editor { font-size: 17.5px; color: var(--sa-muted); }
.sa-section .sa-hi--small.elementor-widget-text-editor { font-size: 15px; }
.sa-section .sa-hi--title.elementor-widget-text-editor { font-size: 18px; color: var(--sa-navy); font-weight: 500; }
.sa-section .sa-hi--lead.elementor-widget-text-editor { font-size: 20px; line-height: 1.8; color: var(--sa-navy); }

.sa-rule { display: block; width: 56px; height: 1px; background: var(--sa-gold); margin: 6px 0 4px; }
.sa-center .sa-rule, .sa-center { margin-left: auto; margin-right: auto; text-align: center; }

.sa-tagline {
	font-size: 12px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase;
	color: var(--sa-gold-text); margin: 0;
}
.sa-hero-names .sa-adv { font-family: var(--sa-serif); font-size: 27px; font-weight: 500; color: var(--sa-navy); margin: 0; line-height: 1.3; }
.sa-hero-names .sa-hi { margin: 2px 0 0; font-size: 17px; }

body .sa-numeral .elementor-heading-title {
	font-family: var(--sa-serif); font-size: 30px; font-weight: 600; color: var(--sa-gold-text); line-height: 1;
}
body .sa-numeral--lg .elementor-heading-title { font-size: 52px; }

/* placeholder marker — must be gone before launch */
.sa-ph { background: #FFF2D1; color: #6F531F; padding: 1px 6px; border-radius: 2px; font-size: .9em; font-weight: 500; }

/* =========================================================
   4. LINKS & BUTTONS
   ========================================================= */
.sa-links a,
.sa-section .elementor-widget-text-editor a:not(.elementor-button) { color: var(--sa-navy); text-decoration: none; border-bottom: 1px solid var(--sa-gold); transition: color .2s var(--sa-ease), border-color .2s var(--sa-ease); }
.sa-links a { font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding-bottom: 4px; }
.sa-links a::after { content: "→"; margin-left: 10px; letter-spacing: 0; display: inline-block; transition: transform .2s var(--sa-ease); }
.sa-links a:hover::after { transform: translateX(3px); }
.sa-section .elementor-widget-text-editor a:hover { color: var(--sa-gold-text); }

body .sa-btn .elementor-button {
	background: var(--sa-navy); color: var(--sa-ivory);
	font-family: var(--sa-sans); font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
	padding: 17px 30px; border: 1px solid var(--sa-navy); border-radius: var(--sa-radius); line-height: 1;
	transition: background-color .2s var(--sa-ease), color .2s var(--sa-ease), border-color .2s var(--sa-ease);
}
body .sa-btn .elementor-button:hover, body .sa-btn .elementor-button:focus-visible { background: var(--sa-royal); border-color: var(--sa-royal); color: var(--sa-white); }
body .sa-btn--ghost .elementor-button { background: transparent; color: var(--sa-navy); }
body .sa-btn--ghost .elementor-button:hover { background: var(--sa-navy); color: var(--sa-ivory); }

:where(.sa-section, .sa-footer, .sa-notice) a:focus-visible,
:where(.sa-section, .sa-footer, .sa-notice) button:focus-visible { outline: 2px solid var(--sa-gold); outline-offset: 3px; }

/* =========================================================
   5. HERO & PAGE HERO
   ========================================================= */
.sa-hero-art svg, .sa-art { display: block; width: 100%; height: auto; max-height: 640px; }
.sa-page-hero { border-bottom: 1px solid var(--sa-line-dark); }
.sa-crumbs { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--sa-gold); }
.sa-section .sa-crumbs a, .sa-crumbs a { color: var(--sa-gold) !important; text-decoration: none; border: 0 !important; }
.sa-crumbs span[aria-hidden] { margin: 0 10px; opacity: .6; }
.sa-crumbs [aria-current] { color: rgba(248, 246, 240, .7); }

/* everything on navy */
.sa-on-dark .elementor-heading-title,
body .sa-on-dark .elementor-heading-title { color: var(--sa-ivory) !important; }
body .sa-on-dark.sa-eyebrow .elementor-heading-title { color: var(--sa-gold) !important; }
.sa-section .sa-on-dark.elementor-widget-text-editor,
.sa-section .sa-on-dark.sa-hi.elementor-widget-text-editor { color: rgba(248, 246, 240, .78); }
.sa-on-dark .sa-links a, .sa-on-dark a { color: var(--sa-ivory) !important; }

/* =========================================================
   6. CARDS, LISTS, FACTS
   ========================================================= */
.e-con.sa-card { border: 1px solid var(--sa-line); border-radius: var(--sa-radius); transition: border-color .25s var(--sa-ease); }
.e-con.sa-card:hover { border-color: var(--sa-gold); }
.sa-card--practice { position: relative; }
.sa-card--practice::before { content: ""; position: absolute; left: 32px; top: 0; width: 32px; height: 2px; background: var(--sa-gold); }

.sa-doc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--sa-line-dark); }
.sa-doc-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--sa-line-dark); }
.sa-doc-en { font-family: var(--sa-serif); font-size: 24px; color: var(--sa-ivory); }
.sa-doc-en em { font-size: 17px; color: var(--sa-gold); }
.sa-doc-hi { font-family: var(--sa-hindi); font-size: 16px; color: rgba(248, 246, 240, .7); text-align: right; }

.sa-facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--sa-line); }
.sa-facts li { display: grid; grid-template-columns: minmax(160px, 38%) 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--sa-line); font-size: 16px; }
.sa-facts li > span { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--sa-muted); padding-top: 3px; }
.sa-facts li > strong { font-weight: 400; color: var(--sa-navy); }

.sa-list-areas { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--sa-line); }
.sa-list-areas li { padding: 16px 0; border-bottom: 1px solid var(--sa-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sa-list-areas li a { font-family: var(--sa-serif); font-size: 23px; border: 0 !important; color: var(--sa-navy) !important; }
.sa-list-areas li a:hover { color: var(--sa-gold-text) !important; }
.sa-list-areas li span { font-family: var(--sa-hindi); color: var(--sa-muted); font-size: 15px; }

.sa-contact-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 40px; }
.sa-contact-list li { display: flex; flex-direction: column; gap: 2px; }
.sa-contact-list span { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--sa-muted); }
.sa-contact-list a { font-family: var(--sa-serif); font-size: 24px; color: var(--sa-navy) !important; border: 0 !important; }

.sa-address address, .sa-footer address { font-style: normal; }
.sa-address { font-size: 18px !important; color: var(--sa-navy) !important; }
.sa-map iframe { border: 0; filter: grayscale(.85) contrast(1.05); border-radius: var(--sa-radius); }

/* photo slot with fine gold frame */
.sa-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; outline: 1px solid var(--sa-gold); outline-offset: 12px; border-radius: 0; background: var(--sa-ivory); }
.sa-photo { padding: 13px; }

/* documentation page */
.sa-doc-rows .e-con.sa-doc-row { border-bottom: 1px solid var(--sa-line); }
.sa-doc-rows .e-con.sa-doc-row:first-child { padding-top: 0 !important; }
.sa-callout { border-left: 2px solid var(--sa-gold); background: var(--sa-ivory); padding: 22px 26px; font-size: 15.5px; line-height: 1.7; }
.sa-callout p { margin: 0 0 10px; }

.sa-declaration { max-width: 760px; margin: 0 auto; text-align: center; font-family: var(--sa-serif); font-size: 24px; color: var(--sa-navy); }
.sa-declaration .sa-sign { font-size: 19px; margin-top: 18px; }

/* long text pages */
.e-con.sa-narrow { max-width: 780px; }
.sa-prose h2 { font-size: 30px; margin: 40px 0 10px; }
.sa-prose h2:first-child { margin-top: 0; }
.sa-prose ol, .sa-prose ul { padding-left: 1.2em; margin: 0 0 20px; }
.sa-prose li { margin-bottom: 10px; }

.sa-note { font-size: 14px !important; color: var(--sa-muted) !important; text-align: center; max-width: 860px; margin: 0 auto; }
.sa-note-strip { border-top: 1px solid var(--sa-line); }

.sa-404-emblem, .sa-notice-emblem { width: 120px; height: auto; display: block; margin: 0 auto; }
.sa-notice-emblem { width: 84px; }

/* =========================================================
   7. FOOTER (rendered by functions.php from the "SA Footer" template)
   ========================================================= */
body.sa-has-footer .footer-container { display: none !important; }   /* hide WoodMart footer → no duplicate */
.sa-footer { color: rgba(248, 246, 240, .72); font-size: 15px; line-height: 1.75; }
.sa-footer-logo { width: 100%; max-width: 260px; height: auto; display: block; }
body .sa-footer-h .elementor-heading-title { font-family: var(--sa-sans); font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--sa-gold); }
.sa-footer .elementor-widget-text-editor { color: rgba(248, 246, 240, .72); font-size: 15px; }
.sa-footer a { color: rgba(248, 246, 240, .88); text-decoration: none; transition: color .2s; }
.sa-footer a:hover { color: var(--sa-gold); }
.sa-footer-nav { list-style: none; margin: 0; padding: 0; }
.sa-footer-nav li { margin-bottom: 8px; }
.sa-footer-contact { margin-top: 12px; }
.sa-footer-bottom > .e-con-inner { border-top: 1px solid var(--sa-line-dark); padding-top: 28px !important; }
.sa-footer-small, .sa-footer-small .elementor-widget-container { font-size: 13px !important; }
.sa-footer-legal span { margin: 0 10px; opacity: .5; }

/* =========================================================
   8. FIRST-VISIT DISCLAIMER NOTICE
   ========================================================= */
.sa-notice[hidden] { display: none; }
.sa-notice { position: fixed; inset: 0; z-index: 100000; background: rgba(16, 29, 53, .78); display: flex; align-items: center; justify-content: center; padding: 20px; }
.sa-notice__dialog { background: var(--sa-ivory); max-width: 640px; width: 100%; max-height: 90vh; overflow: auto; padding: 44px 44px 36px; border-top: 2px solid var(--sa-gold); border-radius: var(--sa-radius); }
.sa-notice__dialog .sa-prose, .sa-notice__dialog .elementor-widget-text-editor { font-size: 15px; line-height: 1.7; color: var(--sa-ink); }
.sa-notice__actions { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.sa-notice__actions button { font-family: var(--sa-sans); font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding: 16px 28px; border-radius: var(--sa-radius); cursor: pointer; border: 1px solid var(--sa-navy); min-height: 48px; }
.sa-notice__agree { background: var(--sa-navy); color: var(--sa-ivory); }
.sa-notice__leave { background: transparent; color: var(--sa-navy); }
body.sa-notice-open { overflow: hidden; }

/* =========================================================
   9. RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
	.sa-hero-art { max-width: 460px; }
}
@media (max-width: 767px) {
	.sa-section .elementor-widget-text-editor { font-size: 16px; }
	.sa-lead, .sa-body-lg { font-size: 17px !important; }
	.sa-hero-art { max-width: 340px; margin: 0 auto; }
	.sa-doc-list li { flex-direction: column; gap: 4px; }
	.sa-doc-hi { text-align: left; }
	.sa-facts li { grid-template-columns: 1fr; gap: 4px; }
	.sa-contact-list a { font-size: 21px; }
	.sa-notice__dialog { padding: 32px 22px 26px; }
	.sa-footer-bottom > .e-con-inner { align-items: flex-start !important; }
	.sa-photo { max-width: 360px; }
}
@media (prefers-reduced-motion: reduce) {
	.sa-section *, .sa-footer * { transition: none !important; }
}

/* 404 */
.error404 .page-title, .error404 .wd-page-title { display: none !important; }
.error404 .main-page-wrapper { padding-top: 0 !important; }

/* photo placeholder (replace with an Image widget once a real photo is approved) */
.sa-photo--ph svg { display: block; width: 100%; height: auto; outline: 1px solid var(--sa-gold); outline-offset: 12px; }
