/*
Theme Name: Dos Lagos Christmas Tickets
Description: Ticket store theme matching the Dos Lagos Christmas Light Show website.
Author: Your Pixel Store
Version: 1.0.6
Requires PHP: 8.0
Text Domain: dlc-tickets
*/

:root {
	--ink: #071b18; --pine: #0b2f28; --pine2: #123f35; --cream: #fbf7ec; --paper: #fffdf7;
	--red: #b92c31; --red2: #d63b3f; --gold: #e3b65c; --gold2: #f6d994; --text: #17302b;
	--muted: #64726f; --line: rgba(7, 27, 24, .12); --white: #fff; --green: #21866d;
	--shadow: 0 24px 70px rgba(5, 29, 24, .16);
	--serif: "Playfair Display", Georgia, serif;
	--sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
a { color: var(--red); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Buttons */
.dlc-button, .button, button.button, input.button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,
.wc-proceed-to-checkout a.checkout-button {
	display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px;
	border-radius: 999px; background: var(--red2); color: #fff; text-decoration: none; font-family: var(--sans);
	font-weight: 800; font-size: 15px; border: 1px solid transparent; box-shadow: 0 10px 30px rgba(214, 59, 63, .25);
	transition: .2s ease; cursor: pointer; line-height: 1.2;
}
.dlc-button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover, .wc-proceed-to-checkout a.checkout-button:hover {
	background: var(--red); color: #fff; transform: translateY(-1px);
}
.dlc-button[disabled], .dlc-button:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.dlc-button-ghost { background: transparent; color: var(--ink); border-color: rgba(7, 27, 24, .25); box-shadow: none; }
.dlc-button-ghost:hover { background: var(--cream); color: var(--ink); }

/* Header */
.site-header {
	height: 88px; padding: 0 clamp(16px, 4vw, 64px); display: flex; align-items: center; gap: 28px;
	background: var(--ink); color: #fff; position: relative; z-index: 20;
}
.brand { display: flex; line-height: 0; flex-shrink: 0; }
.brand img { width: 230px; max-height: 56px; object-fit: contain; }
.header-nav { display: flex; gap: 28px; margin-left: auto; }
.header-nav a, .header-back { color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; opacity: .82; }
.header-nav a:hover, .header-back:hover { opacity: 1; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-cart {
	display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px;
	background: var(--red2); color: #fff; font-weight: 800; font-size: 14px; text-decoration: none;
}
.dlc-cart-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 999px; background: #fff; color: var(--red); font-size: 12px; padding: 0 6px; }

/* Page hero */
.page-hero {
	position: relative; overflow: hidden; color: #fff; text-align: center;
	background: radial-gradient(circle at 20% 30%, #174d40 0, #0b2e28 30%, #061c18 75%);
	padding: 36px 16px 60px;
}
/* Home banner fills the first screen (minus the header); the night picker starts below it. */
.page-hero-front {
	min-height: calc(100vh - 88px); min-height: calc(100svh - 88px);
	display: flex; flex-direction: column; justify-content: center; align-items: center;
	padding: 48px 16px;
}
.page-hero-cta { margin-top: 32px; gap: 8px; }
.page-hero-glow { position: absolute; width: 360px; height: 360px; border-radius: 50%; background: #8e2430; opacity: .3; filter: blur(30px); right: 12%; top: -120px; }
/* Content sits above the glow; the glow itself stays absolutely positioned so it takes no space. */
.page-hero > :not(.page-hero-glow) { position: relative; }
.page-hero-glow { pointer-events: none; }
.eyebrow { font-size: 12px; letter-spacing: .16em; font-weight: 800; color: var(--gold); margin: 0 0 14px; }
.page-hero h1 { font-family: var(--serif); color: #fff; font-size: clamp(36px, 6vw, 72px); letter-spacing: -.03em; line-height: 1; margin: 0 auto; max-width: 900px; }
.page-hero:not(.page-hero-front) h1 { font-size: clamp(32px, 4.5vw, 52px); }
.page-hero h1 span { color: var(--gold2); font-style: italic; }
.page-hero-lede { font-size: clamp(16px, 1.6vw, 19px); color: rgba(255, 255, 255, .8); max-width: 640px; margin: 20px auto 0; }

/* Short pages: footer stays at the bottom of the window instead of leaving a blank band below it. */
body { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1 0 auto; }

/* Text and form pages use a narrower card; the picker, cart and checkout keep the full width. */
.page-body { max-width: 880px; margin: -36px auto 0; padding: 0 16px 56px; position: relative; z-index: 2; }
.home .page-body { margin-top: 0; padding-top: clamp(32px, 5vw, 56px); scroll-margin-top: 0; }
.home .page-body, .woocommerce-cart .page-body, .woocommerce-checkout .page-body, .woocommerce-account.logged-in .page-body { max-width: 1120px; }
.woocommerce-account:not(.logged-in) .page-body { max-width: 560px; }
.page-content { background: #fff; border-radius: 26px; box-shadow: var(--shadow); padding: clamp(22px, 4vw, 40px); }
.page-content > :first-child, .page-content .woocommerce > :first-child { margin-top: 0; }
.page-content > :last-child, .page-content .woocommerce > :last-child, .page-content form > :last-child { margin-bottom: 0; }
.page-content h2 { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 28px); margin: 1.4em 0 .4em; }
.page-content p, .page-content ul { margin: 0 0 .9em; }
.page-content ul { padding-left: 1.25em; }
.home .page-content { background: transparent; box-shadow: none; padding: 0; }

/* Login form: drop WooCommerce's extra border box and margins inside the card. */
.woocommerce form.login, .woocommerce form.register, .woocommerce form.lost_reset_password { border: 0; padding: 0; margin: 0; border-radius: 0; }
.woocommerce form.login .form-row { margin-bottom: 14px; }
.woocommerce-account .page-content h2 { margin-top: 0; }

/* Empty cart: notice and button sit together. */
.wc-empty-cart-message .cart-empty { margin-bottom: 16px; }
.woocommerce .return-to-shop { margin: 0; }

/* Ticket picker */
.dlc-picker { display: grid; gap: 24px; }
.dlc-picker > .woocommerce:empty { display: none; }
.dlc-step-head:last-child { margin-bottom: 0; }
.dlc-step { background: #fff; border-radius: 26px; box-shadow: var(--shadow); padding: clamp(20px, 4vw, 40px); scroll-margin-top: 16px; }
.dlc-step-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.dlc-step-num { flex: 0 0 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--gold2); font-weight: 800; }
.dlc-step-head h2 { font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); margin: 0 0 4px; }
.dlc-step-head p { margin: 0; color: var(--muted); }
.dlc-step-head p strong { color: var(--ink); }
.dlc-legend { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.dlc-legend span { display: inline-flex; align-items: center; gap: 8px; }
.dlc-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dlc-dot-low { background: var(--green); }
.dlc-dot-high { background: var(--gold); }
.dlc-month { font-family: var(--serif); font-size: 22px; margin: 24px 0 12px; }
.dlc-nights { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.dlc-night {
	display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14px 8px 12px;
	border-radius: 18px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
	text-decoration: none; transition: .15s ease; position: relative; border-top-width: 5px;
}
.dlc-night-low { border-top-color: var(--green); }
.dlc-night-high { border-top-color: var(--gold); }
a.dlc-night:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(7, 27, 24, .12); border-color: var(--ink); }
.dlc-night.is-selected { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 12px 30px rgba(7, 27, 24, .3); }
.dlc-night.is-selected .dlc-night-hours, .dlc-night.is-selected .dlc-night-mon { color: rgba(255, 255, 255, .7); }
.dlc-night.is-selected .dlc-night-price { color: var(--gold2); }
.dlc-night.is-unavailable { opacity: .45; }
.dlc-night-dow { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.dlc-night-day { font-family: var(--serif); font-size: 34px; font-weight: 800; line-height: 1.05; }
.dlc-night-mon { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.dlc-night-hours { font-size: 11px; color: var(--muted); margin-top: 6px; }
.dlc-night-price { font-size: 13px; font-weight: 800; margin-top: 4px; color: var(--red); }
.dlc-closed-note { font-size: 13px; color: var(--muted); margin: 18px 0 0; }

.dlc-ticket-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.dlc-ticket { display: grid; grid-template-columns: 1fr auto auto; gap: 16px 24px; align-items: center; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.dlc-ticket.has-qty { background: linear-gradient(90deg, rgba(227, 182, 92, .12), transparent 70%); }
.dlc-ticket h4 { font-family: var(--serif); font-size: 21px; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dlc-ticket-note { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.dlc-badge { font-family: var(--sans); background: #f4e6b9; color: #73500e; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; }
.dlc-ticket-price { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.dlc-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.dlc-qty-btn { width: 44px; height: 44px; border: 0; background: transparent; font-size: 22px; font-weight: 700; color: var(--ink); cursor: pointer; }
.dlc-qty-btn:hover { background: var(--cream); }
.dlc-qty input { width: 44px; height: 44px; border: 0; text-align: center; font: inherit; font-weight: 800; font-size: 17px; -moz-appearance: textfield; }
.dlc-qty input::-webkit-outer-spin-button, .dlc-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dlc-fine-print { list-style: none; margin: 20px 0 0; padding: 16px 18px; background: #f7f2e5; border-radius: 16px; font-size: 13px; color: #51615e; display: grid; gap: 6px; }
.dlc-fine-print li::before { content: "✦"; color: #8b671f; margin-right: 8px; }
.dlc-summary {
	position: sticky; bottom: 12px; margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
	background: var(--ink); color: #fff; border-radius: 20px; padding: 14px 16px 14px 24px; box-shadow: 0 16px 40px rgba(7, 27, 24, .35);
}
.dlc-summary-total { display: flex; align-items: baseline; gap: 12px; }
.dlc-summary-total span { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
.dlc-summary-total strong { font-size: 28px; color: #fff; }
.dlc-summary-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dlc-summary .dlc-button-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.dlc-summary .dlc-button-ghost:hover { background: rgba(255, 255, 255, .08); }
.dlc-santa-hours { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; padding: 14px 18px; margin-bottom: 18px; border: 1.5px solid var(--line); border-radius: 16px; font-size: 14px; }
.dlc-santa-hours strong { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.dlc-santa-hours small { flex-basis: 100%; color: var(--muted); font-size: 13px; }
.dlc-package-items { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: #51615e; }
.dlc-package-items li::before { content: "✦"; color: #8b671f; margin-right: 6px; }
.dlc-ticket-digital h4 { font-size: 18px; }

/* WooCommerce notices */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice {
	border-radius: 16px; border: 0; border-left: 5px solid var(--green); background: #fff; box-shadow: 0 8px 24px rgba(7, 27, 24, .08);
	padding: 16px 20px 16px 52px; margin: 0 0 20px; list-style: none; color: var(--text);
}
.woocommerce-info { border-left-color: var(--gold); }
.woocommerce-error { border-left-color: var(--red2); }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { top: 16px; left: 20px; }
.woocommerce-message .button, .woocommerce-info .button { min-height: 38px; padding: 0 16px; font-size: 13px; float: right; }
.home .woocommerce-notices-wrapper { margin-bottom: 0; }

/* Forms */
.woocommerce form .form-row label { font-weight: 700; font-size: 14px; color: var(--ink); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text, .woocommerce table.cart td.actions .coupon .input-text {
	border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; background: #fff; min-height: 48px;
}
.woocommerce form .form-row input.input-text:focus { border-color: var(--ink); outline: none; }

/* Cart */
.woocommerce table.shop_table { border-radius: 16px; border-color: var(--line); border-collapse: separate; }
.woocommerce table.shop_table th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.woocommerce table.shop_table td { border-top-color: var(--line); }
.woocommerce table.shop_table .product-name a { color: var(--ink); font-weight: 700; text-decoration: none; }
.woocommerce-cart table.cart img { display: none; }
.woocommerce-cart table.cart .product-thumbnail { display: none; }
.woocommerce a.remove { color: var(--red) !important; }
.woocommerce a.remove:hover { background: var(--red); color: #fff !important; }
.woocommerce .cart-collaterals .cart_totals h2 { font-family: var(--serif); }
.woocommerce .quantity .qty { border: 1.5px solid var(--line); border-radius: 10px; min-height: 42px; width: 4em; }
dl.variation { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
dl.variation dt { font-weight: 700; }

/* Checkout */
.woocommerce-checkout h3, #order_review_heading { font-family: var(--serif); font-size: 26px; }
.woocommerce-checkout #payment { background: var(--cream); border-radius: 18px; }
.woocommerce-checkout #payment div.payment_box { background: #fff; border-radius: 12px; }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #fff; }
.woocommerce-checkout #payment #place_order { width: 100%; min-height: 56px; font-size: 17px; }
.woocommerce-terms-and-conditions-wrapper { background: #fff; border: 1.5px solid var(--gold); border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; }
.woocommerce-terms-and-conditions-checkbox-text { font-weight: 700; }
.woocommerce form .form-row.woocommerce-invalid label { color: var(--red); }
/* Billing and additional-info blocks stack full width at every screen size (WooCommerce floats them at 48%). */
.woocommerce-checkout #customer_details .col-1, .woocommerce-checkout #customer_details .col-2 { float: none; width: 100%; }
@media (min-width: 900px) {
	.woocommerce-checkout form.checkout { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; align-items: start; }
	.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
	.woocommerce-checkout form.checkout #customer_details { grid-column: 1; grid-row: 2 / span 2; }
	.woocommerce-checkout form.checkout #order_review_heading { grid-column: 2; grid-row: 2; margin-top: 0; }
	.woocommerce-checkout form.checkout #order_review { grid-column: 2; grid-row: 3; }
}

/* Order received */
.woocommerce-order-received .woocommerce-thankyou-order-received { font-family: var(--serif); font-size: 26px; color: var(--ink); }
.woocommerce ul.order_details { background: var(--cream); border-radius: 16px; padding: 18px; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 48px clamp(16px, 6vw, 96px) 32px; display: grid; gap: 24px; font-size: 14px; }
.footer-brand img { width: 220px; }
.footer-brand p { margin: 10px 0 0; }
.footer-brand p a { color: #fff; font-weight: 700; text-decoration: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.footer-links a { color: #fff; font-weight: 700; text-decoration: none; }
.footer-meta { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 20px; font-size: 13px; }
.site-disclosure { font-size: 12px; color: rgba(255, 255, 255, .5); margin: 0; }

@media (max-width: 860px) {
	.header-nav { display: none; }
	.header-actions { margin-left: auto; }
}
@media (max-width: 600px) {
	.site-header { height: 72px; gap: 12px; }
	.page-hero-front { min-height: calc(100vh - 72px); min-height: calc(100svh - 72px); }
	.brand img { width: 160px; }
	.header-back { display: none; }
	.dlc-nights { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
	.dlc-night-day { font-size: 28px; }
	.dlc-night-hours { font-size: 10px; }
	.dlc-ticket { grid-template-columns: 1fr auto; }
	.dlc-ticket-info { grid-column: 1 / -1; }
	.dlc-summary { padding: 14px 16px; }
	.dlc-summary-actions, .dlc-summary-actions .dlc-button { width: 100%; }
	.footer-meta { flex-direction: column; }
}

.footer-social { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-weight: 700; color: #fff; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); color: #fff; transition: background .2s, border-color .2s; }
.footer-social a:hover, .footer-social a:focus-visible { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); }
