/* ==========================================================
   EMPIRE KITCHENS LTD — Theme Stylesheet
   Design language: "The Joint Line" — precision joinery
   translated into interlocking dovetail motifs, warm gold +
   deep purple brand palette, and craftsman-grade type.
   ========================================================== */

:root {
	--gold: #FAB207;
	--gold-light: #FDE6A8;
	--purple: #3E2F6E;
	--purple-light: #E8E3F2;
	--ink: #241B3A;
	--cream: #FFFBF2;
	--white: #FFFFFF;
	--line: rgba(62, 47, 110, 0.14);

	--font-display: 'Fraunces', Georgia, serif;
	--font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
	--font-mono: 'JetBrains Mono', monospace;

	--radius: 14px;
	--radius-sm: 8px;
	--container: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--ink);
	background: var(--cream);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 0.5em; line-height: 1.15; color: var(--purple); font-weight: 600; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

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

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.eyebrow {
	font-family: var(--font-mono);
	font-size: 12.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gold);
	background: var(--purple);
	display: inline-block;
	padding: 6px 14px;
	border-radius: 100px;
	margin-bottom: 18px;
	font-weight: 500;
}

/* ---------- Section title bar (brand convention: gold bar, purple text) ---------- */
.section-title-bar {
	display: inline-block;
	background: var(--gold);
	color: var(--purple);
	font-family: var(--font-mono);
	font-weight: 500;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 7px 16px;
	border-radius: 6px;
	margin-bottom: 16px;
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { color: rgba(36,27,58,0.68); font-size: 17px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: 100px;
	font-weight: 600;
	font-size: 15px;
	border: 2px solid transparent;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--purple); box-shadow: 0 8px 24px rgba(250,178,7,0.35); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(250,178,7,0.45); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: var(--white); }
.btn-ghost { background: var(--purple-light); color: var(--purple); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255,251,242,0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.site-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--purple); }
.site-logo .crest {
	width: 38px; height: 38px; border-radius: 10px;
	background: linear-gradient(145deg, var(--purple), #2b2050);
	display: flex; align-items: center; justify-content: center;
	color: var(--gold); font-weight: 700; font-family: var(--font-display); font-size: 18px;
}
.primary-nav ul { display: flex; gap: 34px; align-items: center; }
.primary-nav a { font-weight: 600; font-size: 14.5px; color: var(--ink); position: relative; padding: 4px 0; }
.primary-nav a::after {
	content: ''; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px; background: var(--gold);
	transition: width 0.25s ease;
}
.primary-nav a:hover::after, .primary-nav a.current::after { width: 100%; }
.header-cta { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--purple); }

@media (max-width: 900px) {
	.primary-nav { position: fixed; inset: 0 0 0 30%; background: var(--purple); padding: 100px 32px 32px; transform: translateX(100%); transition: transform 0.3s ease; z-index: 99; }
	.primary-nav.is-open { transform: translateX(0); }
	.primary-nav ul { flex-direction: column; align-items: flex-start; gap: 22px; }
	.primary-nav a { color: var(--white); font-size: 20px; }
	.nav-toggle { display: block; }
	.header-cta .btn-primary { padding: 10px 18px; font-size: 13px; }
}

/* ---------- Joint Line divider (signature element) ---------- */
.joint-divider { width: 100%; height: 28px; line-height: 0; color: var(--purple); }
.joint-divider svg { width: 100%; height: 100%; display: block; }
.joint-divider.flip { transform: scaleY(-1); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 0; overflow: hidden; background: var(--cream); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); letter-spacing: -0.01em; }
.hero h1 em { font-style: italic; color: var(--gold); -webkit-text-fill-color: var(--gold); }
.hero-lede { font-size: 18px; color: rgba(36,27,58,0.72); max-width: 480px; }
.hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.hero-actions .btn-outline { color: var(--purple); border-color: rgba(62,47,110,0.3); }
.hero-actions .btn-outline:hover { border-color: var(--purple); }

.hero-art { position: relative; aspect-ratio: 4/5; border-radius: 24px; overflow: hidden; background: linear-gradient(155deg, var(--purple) 0%, #2c2250 60%, var(--ink) 100%); }
.hero-art .joint-pattern { position: absolute; inset: 0; opacity: 0.5; }
.hero-art .hero-badge {
	position: absolute; bottom: 24px; left: 24px; right: 24px;
	background: rgba(255,251,242,0.95); border-radius: var(--radius-sm);
	padding: 16px 18px; display: flex; align-items: center; gap: 14px;
}
.hero-badge .num { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--purple); }
.hero-badge .label { font-family: var(--font-mono); font-size: 11.5px; color: rgba(36,27,58,0.6); text-transform: uppercase; letter-spacing: 0.06em; }

.stat-strip { margin-top: 64px; background: var(--purple); }
.stat-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-strip .stat { padding: 26px 20px; text-align: center; border-right: 1px solid rgba(255,255,255,0.12); }
.stat-strip .stat:last-child { border-right: none; }
.stat-strip .stat .n { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--gold); }
.stat-strip .stat .l { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.75); margin-top: 4px; }

@media (max-width: 900px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-art { max-width: 420px; margin: 0 auto; }
	.stat-strip .container { grid-template-columns: repeat(2, 1fr); }
	.stat-strip .stat { border-bottom: 1px solid rgba(255,255,255,0.12); }
}

/* ---------- Services ---------- */
.services { padding: 96px 0; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card {
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 30px 24px; transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(62,47,110,0.12); }
.service-icon {
	width: 52px; height: 52px; border-radius: 12px; background: var(--gold-light);
	display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--purple);
}
.service-card h3 { font-size: 19px; margin-bottom: 8px; }
.service-card p { font-size: 14.5px; color: rgba(36,27,58,0.66); margin-bottom: 0; }

@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Portfolio ---------- */
.portfolio { padding: 96px 0; background: var(--purple-light); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.project-card { position: relative; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.project-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover .project-media img { transform: scale(1.06); }
.corner-mark { position: absolute; width: 22px; height: 22px; z-index: 2; }
.corner-mark.tl { top: 10px; left: 10px; border-top: 3px solid var(--gold); border-left: 3px solid var(--gold); }
.corner-mark.br { bottom: 10px; right: 10px; border-bottom: 3px solid var(--gold); border-right: 3px solid var(--gold); }
.project-info { padding: 20px 22px; }
.project-info .cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.project-info h3 { font-size: 19px; margin: 6px 0 4px; }
.project-info .loc { font-size: 13.5px; color: rgba(36,27,58,0.55); }

.ekl-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.ekl-placeholder span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.85); }
.ekl-swatch-a { background: linear-gradient(135deg, var(--purple), #5b4a99); }
.ekl-swatch-b { background: linear-gradient(135deg, #7a6ab0, var(--gold)); }
.ekl-swatch-c { background: linear-gradient(135deg, var(--ink), var(--purple)); }

.portfolio-footer { text-align: center; margin-top: 48px; }

@media (max-width: 900px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .portfolio-grid { grid-template-columns: 1fr; } }

/* ---------- Process / measurements strip (grounded in craftsmanship) ---------- */
.process { padding: 96px 0; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.process-step { padding: 0 22px; position: relative; }
.process-step .tag { font-family: var(--font-mono); font-size: 13px; color: var(--gold); font-weight: 600; }
.process-step h3 { font-size: 18px; margin: 10px 0 8px; }
.process-step p { font-size: 14px; color: rgba(36,27,58,0.65); }
.process-step:not(:last-child)::after {
	content: ''; position: absolute; top: 8px; right: -2px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
}
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 0; } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Testimonials ---------- */
.testimonials { padding: 96px 0; background: var(--ink); }
.testimonials .section-head h2, .testimonials .section-head p { color: var(--white); }
.testimonials .section-head p { color: rgba(255,255,255,0.65); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 28px; }
.testi-card .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 14px; font-size: 15px; }
.testi-card blockquote { margin: 0 0 20px; font-family: var(--font-display); font-style: italic; font-size: 17px; color: var(--white); }
.testi-person { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: var(--purple); display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-display); }
.testi-person .name { color: var(--white); font-weight: 600; font-size: 14.5px; }
.testi-person .role { color: rgba(255,255,255,0.55); font-size: 12.5px; }

@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }

/* ---------- CTA Banner ---------- */
.cta-banner { padding: 72px 0; background: linear-gradient(120deg, var(--gold), #ffce4d); text-align: center; }
.cta-banner h2 { font-size: clamp(26px, 3.6vw, 36px); }
.cta-banner p { color: rgba(36,27,58,0.75); font-size: 16px; }
.cta-banner .btn-primary { background: var(--purple); color: var(--white); box-shadow: 0 8px 24px rgba(62,47,110,0.3); }

/* ---------- Blog / News ---------- */
.blog-section { padding: 96px 0; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.post-card .post-media { aspect-ratio: 16/10; overflow: hidden; }
.post-card .post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 20px 22px; }
.post-card .date { font-family: var(--font-mono); font-size: 11.5px; color: rgba(36,27,58,0.5); text-transform: uppercase; letter-spacing: 0.06em; }
.post-card h3 { font-size: 19px; margin: 8px 0; }
.post-card a.read-more { color: var(--purple); font-weight: 600; font-size: 13.5px; border-bottom: 2px solid var(--gold); }
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

/* Single post / page content */
.entry-content, .page-content-basic { max-width: 780px; margin: 0 auto; padding: 72px 24px; }
.entry-content h2, .page-content-basic h2 { margin-top: 1.4em; }
.entry-content img, .page-content-basic img { border-radius: var(--radius); margin: 24px 0; }
.entry-header { text-align: center; padding: 72px 24px 24px; }
.entry-header .date { font-family: var(--font-mono); font-size: 12px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; }
.entry-header h1 { font-size: clamp(30px, 4.5vw, 44px); margin-top: 12px; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: var(--purple); padding: 90px 0 60px; text-align: center; }
.page-hero .eyebrow { background: var(--gold); color: var(--purple); }
.page-hero h1 { color: var(--white); font-size: clamp(32px, 4.6vw, 48px); }
.page-hero p { color: rgba(255,255,255,0.72); max-width: 560px; margin: 0 auto; }

/* ---------- About page bits ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 96px 0; }
.about-grid .ekl-placeholder, .about-media img { border-radius: var(--radius); aspect-ratio: 4/5; }
.value-list { display: grid; gap: 18px; margin-top: 24px; }
.value-list li { display: flex; gap: 14px; align-items: flex-start; }
.value-list .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-top: 8px; flex: none; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; padding: 64px 0; } }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding: 0 0 96px; }
.team-card { text-align: center; }
.team-card .ekl-placeholder { border-radius: 50%; aspect-ratio: 1; margin: 0 auto 14px; width: 120px; height: 120px; }
.team-card h4 { font-size: 16px; margin-bottom: 2px; }
.team-card .role { font-family: var(--font-mono); font-size: 12px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; padding: 96px 0; }
.contact-info-card { background: var(--purple); color: var(--white); border-radius: var(--radius); padding: 36px; }
.contact-info-card h3 { color: var(--white); }
.contact-info-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-info-row .icon { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; flex: none; color: var(--gold); }
.contact-info-row .label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.55); }
.contact-info-row .value { font-weight: 600; }
.social-row { display: flex; gap: 10px; margin-top: 28px; }
.social-row a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; }

.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-row.full { grid-template-columns: 1fr; }
.form-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--purple); }
.form-row input, .form-row select, .form-row textarea {
	width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
	font-family: var(--font-body); font-size: 14.5px; background: var(--cream);
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--gold); outline: none; }
.map-embed { border-radius: var(--radius); overflow: hidden; margin-top: 24px; border: 1px solid var(--line); }

@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; padding: 64px 0; } .form-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.75); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .site-logo { color: var(--white); }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.55); margin-top: 14px; max-width: 280px; }
.footer-widget-title, .site-footer h4 { color: var(--white); font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { font-size: 14.5px; color: rgba(255,255,255,0.68); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 13px; color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
	position: fixed; bottom: 24px; right: 24px; z-index: 200;
	width: 58px; height: 58px; border-radius: 50%; background: #25D366;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 10px 28px rgba(0,0,0,0.25);
	transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
