/*
Theme Name: All Types Decoration
Theme URI: https://alltypesdecoration.com
Author: All Types Decoration
Description: Premium, lightweight, mobile-first theme for All Types Decoration. Requires the All Types Core plugin.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: alltypes-decoration
*/

/* ---------- Design tokens ---------- */
:root {
	--ivory: #FBF7F2;
	--paper: #FFFFFF;
	--sand: #F4ECE2;
	--maroon: #5A1E2B;
	--maroon-dark: #3F1420;
	--gold: #B8912F;
	--gold-dark: #9C7A22;
	--gold-light: #E7D3A0;
	--ink: #2B2326;
	--muted: #6F6266;
	--line: #EADFD3;
	--wa: #25D366;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(63, 20, 32, .08);
	--max: 1200px;
	--font-head: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
	--font-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-weight: 300;
	font-size: 16px;
	line-height: 1.7;
	color: var(--ink);
	background: var(--ivory);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon); text-decoration: none; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 {
	font-family: var(--font-head);
	font-weight: 600;
	line-height: 1.2;
	color: var(--maroon-dark);
	margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
ul { margin: 0; }
.container { width: min(var(--max), 92%); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section-alt { background: var(--sand); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.eyebrow {
	font-family: var(--font-body);
	font-size: .78rem;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--gold);
	font-weight: 500;
	margin-bottom: .6em;
}
.lead { font-size: 1.15rem; max-width: 620px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.intro-text { max-width: 760px; margin: 0 auto; font-size: 1.1rem; }
.screen-reader-text, .sr-only {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0, 0, 0, 0); white-space: nowrap;
}
.skip-link:focus { clip: auto; height: auto; width: auto; left: 10px; top: 10px; background: #fff; padding: 10px; z-index: 999; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .9em 1.6em; border-radius: 999px; border: 1.5px solid transparent;
	font-family: inherit; font-weight: 500; font-size: .95rem; line-height: 1.2;
	cursor: pointer; text-decoration: none; transition: all .3s ease;
}
.btn-maroon { background: var(--maroon); color: #fff; }
.btn-maroon:hover { background: var(--maroon-dark); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-dark); color: #fff; }
.btn-outline { border-color: var(--maroon); color: var(--maroon); background: transparent; }
.btn-outline:hover { background: var(--maroon); color: #fff; }
.btn-outline-light { border-color: #fff; color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--maroon-dark); }
.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-whatsapp:hover { filter: brightness(.92); color: #fff; }
.btn-small { padding: .6em 1.2em; font-size: .88rem; }
.btn-lg { padding: 1.05em 2.1em; font-size: 1rem; }
.btn:disabled { opacity: .6; cursor: wait; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(251, 247, 242, .94);
	backdrop-filter: blur(10px);
	transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(63, 20, 32, .08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }
.brand { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--maroon-dark); }
.brand img, .custom-logo { max-height: 60px; width: auto; }
.nav-list, .main-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.main-nav ul ul { display: none; }
.main-nav li { margin: 0; }
[id] { scroll-margin-top: 90px; }
.nav-list a { color: var(--ink); font-size: .92rem; font-weight: 400; }
.nav-list a:hover { color: var(--gold); }
.nav-list .current_page_item > a { color: var(--maroon); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.menu-toggle {
	display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 0;
	flex-direction: column; align-items: center; justify-content: center;
}
.menu-toggle .bar {
	display: block; width: 24px; height: 2px; background: var(--maroon); margin: 3px 0;
	transition: transform .3s ease, opacity .3s ease;
}
.menu-toggle[aria-expanded="true"] .bar:nth-of-type(1) { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-of-type(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bar:nth-of-type(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
	position: relative; min-height: 88vh; display: flex; align-items: center;
	color: #fff; overflow: hidden;
	background: linear-gradient(135deg, var(--maroon-dark), var(--maroon) 55%, #8A3A4B);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(40, 10, 18, .55), rgba(40, 10, 18, .78)); }
.hero-content { position: relative; z-index: 2; padding: 120px 0 90px; max-width: 860px; }
.hero .eyebrow { color: var(--gold-light); }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255, 255, 255, .9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- Cards and grids ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.card {
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 30px; box-shadow: var(--shadow); transition: transform .35s ease, box-shadow .35s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(63, 20, 32, .14); }
.service-card { display: block; color: var(--ink); }
.service-card h3 { color: var(--maroon-dark); }
.service-card p { color: var(--muted); font-size: .95rem; }
.service-card span { color: var(--gold); font-weight: 500; font-size: .9rem; }
.why-card h3 { font-size: 1.25rem; }
.why-card .num { font-family: var(--font-head); font-size: 2.2rem; color: var(--gold); line-height: 1; margin-bottom: 10px; display: block; }

/* ---------- Gallery ---------- */
.adt-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 32px; }
.adt-filter {
	border: 1px solid var(--line); background: #fff; color: var(--ink);
	padding: .5em 1.1em; border-radius: 999px; cursor: pointer;
	font-family: inherit; font-size: .88rem; transition: all .25s ease;
}
.adt-filter:hover, .adt-filter.is-active { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.adt-gallery-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 18px; }
.adt-gallery-item { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--line); }
.adt-gallery-item a { display: block; }
.adt-gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
.adt-gallery-item:hover img { transform: scale(1.05); }
.adt-gallery-item figcaption {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px;
	background: linear-gradient(transparent, rgba(30, 8, 14, .85)); color: #fff;
	font-size: .9rem; opacity: 0; transition: opacity .35s ease; pointer-events: none;
}
.adt-gallery-item:hover figcaption, .adt-gallery-item:focus-within figcaption { opacity: 1; }
.adt-empty { text-align: center; color: var(--muted); padding: 30px 0; }

/* Lightbox */
.adt-lightbox-overlay {
	position: fixed; inset: 0; z-index: 200; background: rgba(20, 6, 10, .93);
	display: none; flex-direction: column; align-items: center; justify-content: center; padding: 20px;
}
.adt-lightbox-overlay.is-open { display: flex; }
.adt-lightbox-overlay img { max-height: 82vh; max-width: 95vw; border-radius: 10px; }
.adt-lightbox-overlay p { color: #fff; margin-top: 14px; }
.adt-lb-close { position: absolute; top: 12px; right: 18px; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; line-height: 1; }

/* ---------- Packages ---------- */
.adt-packages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; padding-top: 14px; }
.adt-package {
	position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 40px 30px 30px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.adt-package.is-popular { border: 2px solid var(--gold); transform: translateY(-6px); }
.adt-badge {
	position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
	background: var(--gold); color: #fff; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
	padding: .4em 1em; border-radius: 999px; white-space: nowrap;
}
.adt-price { font-family: var(--font-head); font-size: 1.7rem; font-weight: 600; color: var(--gold-dark); }
.adt-check-list { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.adt-check-list li { position: relative; padding: 7px 0 7px 28px; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.adt-check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 600; }
.adt-package .btn { margin-top: auto; }

/* ---------- Reviews ---------- */
.adt-reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.adt-review {
	margin: 0; background: var(--paper); border-radius: var(--radius); padding: 30px;
	border-left: 4px solid var(--gold); box-shadow: var(--shadow);
}
.adt-review p { font-family: var(--font-head); font-style: italic; font-size: 1.2rem; color: var(--ink); }
.adt-review footer { color: var(--muted); font-size: .9rem; }
.adt-stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 8px; }

/* ---------- Booking form ---------- */
.booking-wrap {
	max-width: 860px; margin: 0 auto; background: var(--paper); border-radius: 20px;
	padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow); border: 1px solid var(--line);
}
.adt-booking-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.adt-field { display: flex; flex-direction: column; gap: 6px; }
.adt-field.full { grid-column: 1 / -1; }
.adt-field label { font-size: .9rem; font-weight: 500; color: var(--maroon-dark); }
.adt-field input, .adt-field select, .adt-field textarea {
	font-family: inherit; font-size: .98rem; padding: .8em 1em; width: 100%;
	border: 1px solid #D9CBBB; border-radius: 10px; background: #FFFCF8; color: var(--ink);
}
.adt-field input:focus, .adt-field select:focus, .adt-field textarea:focus {
	border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(184, 145, 47, .2);
}
.adt-consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.adt-consent input { margin-top: 5px; }
.adt-form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.adt-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.adt-notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 22px; font-size: .95rem; }
.adt-notice-success { background: #EEF8EE; color: #1E5B25; border: 1px solid #BFE3C4; }
.adt-notice-error { background: #FCEEEE; color: #8A1F1F; border: 1px solid #F0C4C4; }

/* ---------- WhatsApp band ---------- */
.whatsapp-band {
	background: linear-gradient(120deg, var(--maroon-dark), var(--maroon));
	color: #fff; text-align: center; padding: clamp(56px, 7vw, 90px) 0;
}
.whatsapp-band h2 { color: #fff; }
.whatsapp-band .eyebrow { color: var(--gold-light); }
.whatsapp-band p { color: rgba(255, 255, 255, .9); max-width: 600px; margin: 0 auto 26px; }

/* Floating WhatsApp */
.adt-floating-wa {
	position: fixed; right: 18px; bottom: 18px; z-index: 90;
	display: flex; align-items: center; gap: 8px;
	background: var(--wa); color: #fff; padding: 12px 18px; border-radius: 999px;
	box-shadow: 0 10px 30px rgba(37, 211, 102, .4); font-weight: 500; font-size: .9rem;
	transition: transform .25s ease;
}
.adt-floating-wa:hover { color: #fff; transform: translateY(-2px); }

/* ---------- Pages ---------- */
.page-hero { background: linear-gradient(135deg, var(--sand), var(--ivory)); padding: clamp(70px, 9vw, 120px) 0 50px; text-align: center; }
.entry-content { max-width: 820px; margin: 0 auto; font-size: 1.05rem; }
.entry-content h2 { margin-top: 1.4em; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.adt-contact-list { list-style: none; padding: 0; margin: 0 0 20px; }
.adt-contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.adt-contact-list strong { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); font-weight: 500; }
.adt-map iframe { border-radius: var(--radius); box-shadow: var(--shadow); min-height: 320px; }
.adt-social { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; }
.about-cta { text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--maroon-dark); color: rgba(255, 255, 255, .82); padding: 70px 0 0; font-size: .93rem; }
.site-footer h3, .site-footer h4 { color: #fff; font-size: 1.3rem; }
.site-footer a { color: rgba(255, 255, 255, .88); }
.site-footer a:hover { color: var(--gold-light); }
.site-footer .adt-social a { color: var(--gold-light); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 50px; padding: 22px 0; text-align: center; font-size: .85rem; }

/* ---------- Scroll reveal ---------- */
.js .reveal:not(.is-visible) { opacity: 0; transform: translateY(22px); }
.reveal { transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.menu-toggle { display: flex; }
	.main-nav {
		position: fixed; top: 78px; left: 0; right: 0; bottom: 0;
		background: var(--ivory); transform: translateX(100%);
		transition: transform .35s ease; padding: 32px 6%; overflow-y: auto;
	}
	.main-nav.is-open { transform: none; }
	.nav-list { flex-direction: column; gap: 20px; }
	.nav-list a { font-size: 1.1rem; }
	.header-actions .btn { display: none; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
	.adt-gallery-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr; }
	.adt-package.is-popular { transform: none; }
}
@media (max-width: 640px) {
	.adt-booking-form { grid-template-columns: 1fr; }
	.adt-gallery-grid { grid-template-columns: 1fr; }
	.adt-floating-wa span { display: none; }
	.adt-floating-wa { padding: 14px; }
	.hero-content { padding: 100px 0 70px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.js .reveal:not(.is-visible) { opacity: 1; transform: none; }
}
