/* ==========================================================================
   Sundial Enterprises – main stylesheet
   ========================================================================== */

:root {
	--espresso: #241710;
	--coffee: #3b2a1f;
	--gold: #a8741a;
	--gold-dark: #8a5d11;
	--gold-light: #d9b36a;
	--cream: #fbf7f0;
	--sand: #f3ece0;
	--leaf: #4d6b2b;
	--ink: #2a211b;
	--muted: #6f6359;
	--line: #e8dfd1;
	--white: #fff;

	--font-display: "Fraunces", Georgia, "Times New Roman", serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--radius: 18px;
	--radius-sm: 10px;
	--shadow: 0 10px 30px rgba(36, 23, 16, .08);
	--shadow-lg: 0 24px 60px rgba(36, 23, 16, .16);
	--header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.7;
	color: var(--ink);
	background: var(--cream);
	-webkit-font-smoothing: antialiased;
}

img, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--gold-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--espresso); }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -.01em;
	color: var(--espresso);
	margin: 0 0 .5em;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); font-size: .9em; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 1000; background: var(--espresso); color: #fff;
	padding: 12px 18px; left: 12px; top: 12px; border-radius: 8px;
}

:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; border-radius: 4px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: .55em;
	padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent;
	font: 600 .95rem/1.2 var(--font-body); letter-spacing: .01em; cursor: pointer;
	transition: transform .2s, background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--espresso); color: #fff; box-shadow: 0 8px 20px rgba(36, 23, 16, .22); }
.btn-primary:hover { background: var(--gold-dark); color: #fff; }
.btn-gold { background: var(--gold-light); color: var(--espresso); }
.btn-gold:hover { background: #fff; color: var(--espresso); }
.btn-outline { border-color: var(--espresso); color: var(--espresso); background: transparent; }
.btn-outline:hover { background: var(--espresso); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; color: var(--gold-dark); }
.link-arrow .icon { width: 1.1em; height: 1.1em; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

.eyebrow {
	font: 600 .78rem/1.5 var(--font-body); letter-spacing: .18em; text-transform: uppercase;
	color: var(--gold); margin: 0 0 1em;
}

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100; height: var(--header-h);
	background: rgba(251, 247, 240, .88);
	-webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(36, 23, 16, .06); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img, .custom-logo { height: 44px; width: auto; }
.brand { display: flex; align-items: center; }

.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav .menu { display: flex; gap: 6px; }
.primary-nav .menu a {
	position: relative; display: block; padding: 8px 14px; border-radius: 999px;
	font-weight: 500; font-size: .96rem; color: var(--ink);
}
.primary-nav .menu a:hover { background: var(--sand); color: var(--espresso); }
.primary-nav .menu .current-menu-item > a,
.primary-nav .menu .current_page_item > a { background: var(--espresso); color: #fff; }
.nav-cta { padding: .7em 1.3em; }

.nav-toggle {
	display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
	background: #fff; color: var(--espresso); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden; padding: 72px 0 96px;
	background:
		radial-gradient(900px 500px at 85% 10%, rgba(217, 179, 106, .28), transparent 60%),
		radial-gradient(700px 400px at 0% 100%, rgba(77, 107, 43, .10), transparent 60%),
		var(--cream);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero-copy h1 { margin-bottom: .4em; }
.hero-text { font-size: 1.2rem; color: var(--muted); max-width: 34em; margin-bottom: 1.8em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual {
	position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
	gap: 18px; aspect-ratio: 1 / 1.02;
}
.hv { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; box-shadow: var(--shadow-lg); }
.hv-1 { grid-row: 1 / 3; border-radius: 120px 26px 26px 26px; }
.hv-2 { border-radius: 26px 120px 26px 26px; }
.hv-3 { border-radius: 26px 26px 26px 120px; }
.hero-badge {
	position: absolute; left: -26px; bottom: 34px; display: flex; align-items: center; gap: 14px;
	background: #fff; padding: 14px 20px 14px 16px; border-radius: 16px; box-shadow: var(--shadow-lg);
	font-size: .85rem; line-height: 1.35; color: var(--muted);
}
.hero-badge .icon { width: 34px; height: 34px; padding: 7px; border-radius: 12px; background: var(--sand); color: var(--gold-dark); }
.hero-badge strong { color: var(--espresso); font-size: .98rem; }

/* ---------- Value strip ---------- */
.value-strip { background: var(--espresso); color: #f1e6d3; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.strip-item { display: flex; align-items: center; justify-content: center; gap: 12px; font-weight: 500; letter-spacing: .02em; }
.strip-item .icon { color: var(--gold-light); width: 1.35em; height: 1.35em; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.section-head.center { justify-content: center; text-align: center; }
.section-head h2 { margin: 0; }

/* Product cards (home) */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card {
	display: flex; flex-direction: column; background: #fff; border-radius: var(--radius);
	overflow: hidden; border: 1px solid var(--line); color: var(--ink);
	transition: transform .3s, box-shadow .3s, border-color .3s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--ink); }
.product-card-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-card-body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; }
.product-card-body h3 { margin: 0; font-size: 1.25rem; }
.product-card-more { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--gold-dark); white-space: nowrap; }
.product-card-more .icon { width: 1.05em; height: 1.05em; transition: transform .2s; }
.product-card:hover .product-card-more .icon { transform: translateX(4px); }

/* About teaser */
.about-teaser { background: var(--sand); }
.teaser-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.teaser-media { position: relative; }
.teaser-media::before {
	content: ""; position: absolute; inset: 24px -24px -24px 24px; border-radius: 28px;
	background: var(--gold-light); opacity: .55; z-index: 0;
}
.teaser-media img { position: relative; z-index: 1; width: 100%; border-radius: 28px; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.2; object-fit: cover; }
.teaser-copy p { color: var(--muted); font-size: 1.08rem; }
.teaser-copy .btn { margin-top: .6em; }

/* Why choose us */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.why-card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
	transition: transform .3s, box-shadow .3s;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-icon {
	display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; margin-bottom: 18px;
	border-radius: 16px; background: linear-gradient(135deg, var(--sand), #efe2c9); color: var(--gold-dark);
}
.why-icon .icon { width: 28px; height: 28px; }
.why-card h3 { margin-bottom: .4em; }
.why-card p { margin: 0; color: var(--muted); }

/* CTA band */
.cta-band {
	position: relative; padding: 80px 0; color: #fff; background-color: var(--espresso);
	background-size: cover; background-position: center;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(36, 23, 16, .93), rgba(36, 23, 16, .78)); }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #e6d9c3; margin: 0; max-width: 34em; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Page banner ---------- */
.page-banner {
	position: relative; padding: 72px 0 80px; color: #fff; background-color: var(--espresso);
	background-size: cover; background-position: center;
}
.page-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36, 23, 16, .82), rgba(36, 23, 16, .94)); }
.page-banner .container { position: relative; }
.page-banner h1 { color: #fff; margin: 0; font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.breadcrumb { display: flex; gap: 10px; font-size: .85rem; letter-spacing: .04em; color: #d6c6ab; margin-bottom: 14px; }
.breadcrumb a { color: var(--gold-light); }
.breadcrumb a:hover { color: #fff; }

/* ---------- Products page ---------- */
.product-row { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--line); }
.product-row:first-child { padding-top: 0; }
.product-row:last-child { border-bottom: 0; padding-bottom: 0; }
.product-row:nth-child(even) { grid-template-columns: 7fr 5fr; }
.product-row:nth-child(even) .product-row-media { order: 2; }
.product-row-media img { width: 100%; aspect-ratio: 3 / 2.3; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-lg); }
.product-num { display: block; font: 600 .85rem/1 var(--font-body); letter-spacing: .2em; color: var(--gold); margin-bottom: 14px; }
.product-row-body h2 { margin-bottom: .45em; }
.product-row-body .entry-content p { color: var(--muted); }
.product-row-body .link-arrow { margin-top: .5em; }

/* ---------- About page ---------- */
.about-images { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 64px; }
.about-images img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.about-body { max-width: 860px; margin: 0 auto; }

/* ---------- Editor content (blocks) ---------- */
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2, .entry-content h3 { margin-top: 1.4em; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1.1em; }
.entry-content ol { padding-left: 1.4em; margin-bottom: 1.1em; }
.entry-content blockquote { margin: 1.6em 0; padding: .4em 0 .4em 1.4em; border-left: 4px solid var(--gold-light); font-family: var(--font-display); font-size: 1.25rem; }

.sd-lead, .entry-content .sd-lead {
	font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.3;
	color: var(--espresso); margin-bottom: 1em;
}
.wp-block-columns { display: flex; flex-wrap: wrap; gap: 24px; margin: 2.2em 0 0; }
.wp-block-column { flex: 1 1 280px; min-width: 0; }
.sd-card, .entry-content .sd-card {
	height: 100%; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold-light);
	border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
}
.sd-card h3 { margin-top: 0; }
.sd-card p:last-child { margin-bottom: 0; color: var(--muted); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 32px; align-items: start; }
.contact-card {
	background: var(--espresso); color: #e9ddc8; border-radius: var(--radius); padding: 40px;
	box-shadow: var(--shadow-lg);
}
.contact-card h2 { color: #fff; font-size: 1.8rem; margin-bottom: 1em; }
.contact-list { display: grid; gap: 26px; }
.contact-list li { display: flex; gap: 16px; }
.contact-list .icon {
	width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: rgba(255, 255, 255, .08); color: var(--gold-light);
}
.contact-list strong { color: #fff; font-weight: 600; }
.contact-list a { color: #e9ddc8; }
.contact-list a:hover { color: var(--gold-light); }

.contact-form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.contact-form-card h2 { font-size: 1.8rem; margin-bottom: 1em; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 8px; color: var(--espresso); }
.field input, .field textarea {
	width: 100%; padding: 14px 16px; font: inherit; font-size: 1rem; color: var(--ink);
	background: var(--cream); border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(168, 116, 26, .15); }
.field textarea { resize: vertical; min-height: 140px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 14px 18px; border-radius: 12px; margin-bottom: 24px; font-size: .96rem; }
.notice-success { background: #edf5e4; color: #2f4a14; border: 1px solid #cfe3b6; }
.notice-error { background: #fbeceb; color: #7a2018; border: 1px solid #f0c4c0; }

.map-wrap { margin-top: 48px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); line-height: 0; }
.map-wrap iframe { width: 100%; height: 420px; border: 0; }

/* ---------- Generic / blog ---------- */
.post-item { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.post-item h2 a { color: var(--espresso); }
.not-found { padding: 120px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso); color: #cdbfa8; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr; gap: 56px; padding-top: 72px; padding-bottom: 56px; }
.footer-brand img { height: 46px; width: auto; margin-bottom: 20px; }
.footer-brand p { max-width: 30em; font-size: .96rem; }
.footer-title { font: 600 .8rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 22px; }
.footer-menu { display: grid; gap: 10px; }
.footer-menu a, .footer-contact a { color: #e9ddc8; }
.footer-menu a:hover, .footer-contact a:hover { color: var(--gold-light); }
.footer-contact { display: grid; gap: 14px; font-size: .96rem; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .icon { margin-top: .3em; color: var(--gold-light); width: 1.1em; height: 1.1em; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom p { margin: 0; padding: 22px 0; font-size: .88rem; color: #a99b84; }

/* ---------- Scroll reveal (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .product-grid .reveal:nth-child(3n+2), .js .why-grid .reveal:nth-child(2n) { transition-delay: .1s; }
.js .product-grid .reveal:nth-child(3n+3) { transition-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .reveal { opacity: 1; transform: none; transition: none; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.hero-grid { gap: 40px; }
	.product-grid { grid-template-columns: repeat(2, 1fr); }
	.teaser-grid { gap: 48px; }
	.product-row, .product-row:nth-child(even) { gap: 40px; }
}

@media (max-width: 900px) {
	:root { --header-h: 68px; }
	.nav-toggle { display: inline-flex; }
	.primary-nav {
		position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 16px;
		padding: 16px 24px 24px; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(36, 23, 16, .1);
		display: none;
	}
	.primary-nav.is-open { display: flex; }
	.primary-nav .menu { flex-direction: column; gap: 2px; }
	.primary-nav .menu a { padding: 12px 14px; border-radius: 12px; }
	.nav-cta { justify-content: center; }

	.hero { padding: 48px 0 72px; }
	.hero-grid { grid-template-columns: 1fr; }
	.hero-visual { max-width: 520px; width: 100%; margin: 0 auto; }
	.hero-badge { left: 12px; }
	.strip-grid { grid-template-columns: repeat(2, 1fr); }
	.section { padding: 72px 0; }
	.teaser-grid, .contact-grid { grid-template-columns: 1fr; }
	.teaser-media { max-width: 560px; margin-right: 24px; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
	.cta-inner { flex-direction: column; align-items: flex-start; }
	.product-row, .product-row:nth-child(even) { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
	.product-row:nth-child(even) .product-row-media { order: 0; }
}

@media (max-width: 640px) {
	body { font-size: 16px; }
	.container { padding: 0 20px; }
	.section-head { flex-direction: column; align-items: flex-start; }
	.section-head.center { align-items: center; }
	.product-grid, .why-grid, .about-images, .form-row { grid-template-columns: 1fr; }
	.why-card { padding: 26px; }
	.contact-card, .contact-form-card { padding: 28px 22px; }
	.footer-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; }
	.hero-actions .btn, .cta-actions .btn { width: 100%; justify-content: center; }
	.map-wrap iframe { height: 320px; }
	.strip-item { justify-content: flex-start; }
}
