/*
Theme Name: House of Holland
Author: House of Holland
Description: Professional, responsive WordPress theme for House of Holland, San Diego.
Version: 2.1.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: house-of-holland
*/

:root {
  --red: #b51f2b;
  --blue: #123b67;
  --gold: #d58b2a;
  --ink: #172331;
  --paper: #f7f4ee;
  --white: #fff;
  --line: #d8d4cc;
  --muted: #59636e;
  --header-height: 82px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: Arial, Helvetica, sans-serif; line-height: 1.65; background: var(--paper); }
img { max-width: 100%; height: auto; }
svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: fixed; top: 10px; left: 10px; width: auto; height: auto; margin: 0; padding: 10px 14px; clip: auto; z-index: 9999; background: #fff; color: var(--ink); border: 2px solid var(--red); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.header-inner { max-width: 1180px; min-height: var(--header-height); margin: auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand .custom-logo-link { display: flex; align-items: center; flex: 0 0 auto; }
.brand .custom-logo { width: 46px; height: 46px; object-fit: contain; }
.brand-mark { width: 46px; height: 46px; border: 2px solid var(--red); display: grid; place-items: center; color: var(--red); font-weight: 800; border-radius: 50%; flex: 0 0 auto; }
.brand-text { min-width: 0; }
.brand-text strong { display: block; letter-spacing: 1.8px; font-size: 15px; }
.brand-text small { display: block; color: #68717c; font-size: 11px; letter-spacing: 1.2px; }
.main-nav { display: flex; font-size: 13px; font-weight: 700; align-items: center; }
.main-nav .menu { display: flex; align-items: center; gap: 20px; list-style: none; margin: 0; padding: 0; }
.main-nav .menu-item { margin: 0; padding: 0; }
.main-nav a { padding: 10px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a, .main-nav .current-menu-ancestor > a { color: var(--red); border-color: var(--red); }
.menu-toggle { display: none; border: 0; background: none; color: var(--ink); font-size: 28px; line-height: 1; padding: 6px; cursor: pointer; }

.container { max-width: 1180px; margin: auto; padding-left: 24px; padding-right: 24px; }
.hero { min-height: 610px; background: linear-gradient(180deg, #b51f2b 0 31%, #123b67 31% 100%); display: grid; align-items: center; color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,25,43,.82) 0%, rgba(8,25,43,.70) 42%, rgba(8,25,43,.22) 100%); pointer-events: none; }
.hero-inner { max-width: 1180px; width: 100%; margin: auto; padding: 80px 24px; position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 40px; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
/* Hero visibility hardening: keeps core headline content visible even when host/plugin CSS adds global rules. */
.hero-copy .eyebrow, .hero-copy h1, .hero-copy .lead { display: block !important; visibility: visible !important; opacity: 1 !important; position: relative; z-index: 3; color: #fff !important; }
.hero-copy h1 { margin-top: 0; }
.hero-copy .lead { margin-bottom: 0; }
.hero-emblem { justify-self: end; width: min(380px, 34vw); position: relative; z-index: 1; opacity: .96; filter: drop-shadow(0 18px 28px rgba(0,0,0,.22)); }
.hero-emblem img { display: block; width: 100%; height: auto; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 2.4px; color: #fff; margin: 0 0 12px; }
.hero h1 { font-size: clamp(46px, 6.4vw, 82px); line-height: 1.02; margin: 0 0 24px; max-width: 760px; letter-spacing: -1.5px; }
.hero h1 em { font-family: Georgia, serif; font-weight: 400; }
.lead { font-size: 20px; max-width: 600px; }
.buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn { display: inline-block; padding: 13px 20px; background: var(--red); color: #fff !important; font-weight: 800; border-radius: 2px; border: 1px solid var(--red); }
.btn:hover { background: #8e1721; border-color: #8e1721; }
.btn.ghost { background: transparent; border-color: #fff; }
.btn.ghost:hover { background: #fff; color: var(--ink) !important; }

.section { padding: 90px 0; }
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.intro h2, .cta h2 { font-family: Georgia, serif; font-size: 44px; line-height: 1.12; margin: 0; }
.intro > p { font-size: 18px; margin: 0; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: #fff; padding: 35px; border-top: 4px solid var(--blue); min-height: 270px; }
.card:nth-child(2) { border-color: var(--red); }
.card:nth-child(3) { border-color: var(--blue); }
.card span { font-size: 12px; color: #7c8490; font-weight: 800; }
.card h3 { font-family: Georgia, serif; font-size: 27px; margin: 16px 0 10px; }
.card p { color: var(--muted); }
.card a { font-weight: 800; color: var(--red); }
.quote { background: var(--blue); color: #fff; text-align: center; padding: 85px 24px; }
.quote p { font: italic 38px Georgia, serif; margin: 0 auto 14px; }
.quote small { letter-spacing: 2px; color: #d9e2ec; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta p:not(.eyebrow) { max-width: 650px; color: var(--muted); }

.page-hero { padding: 80px 0; background: var(--ink); color: #fff; }
.page-hero h1 { font: 52px/1.1 Georgia, serif; margin: 10px 0 0; }
.page-hero p:last-child { margin-bottom: 0; color: #d9e0e7; }
.content { max-width: 900px; }
.content h2, .content h3 { font-family: Georgia, serif; }
.content a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.content .btn { color: #fff; text-decoration: none; }
.content > *:first-child { margin-top: 0; }
.content > *:last-child { margin-bottom: 0; }

.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.event-card { border: 1px solid var(--line); padding: 25px; background: #fff; }
.event-card h2 { font-family: Georgia, serif; line-height: 1.2; }
.event-card h2 a:hover { color: var(--red); }
.event-date { font-weight: 800; color: var(--red); }
.pagination { grid-column: 1 / -1; }
.pagination ul { display: flex; gap: 8px; list-style: none; padding: 0; }
.pagination a, .pagination span { display: inline-block; padding: 7px 11px; border: 1px solid var(--line); background: #fff; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-grid img { width: 100%; height: 240px; object-fit: cover; border-radius: 5px; }

.site-footer { background: #101a25; color: #d9e0e7; padding: 45px 0; }
.footer-inner { display: grid; grid-template-columns: 1fr auto auto; gap: 40px; }
.site-footer strong { letter-spacing: 2px; color: #fff; }
.site-footer p { margin: 5px 0; color: #9eabb7; }
.site-footer a:hover { color: #fff; }
.site-footer .menu { list-style: none; margin: 0; padding: 0; }
.site-footer .menu-item { margin-bottom: 4px; }
.copyright { border-top: 1px solid #34404c; margin-top: 20px; padding-top: 20px; font-size: 12px; color: #9eabb7; }

@media (max-width: 980px) {
  .main-nav .menu { gap: 13px; }
  .header-inner { gap: 12px; }
}

@media (max-width: 850px) {
  .main-nav { display: none; position: absolute; top: var(--header-height); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 18px; flex-direction: column; align-items: stretch; gap: 0; box-shadow: 0 10px 25px rgba(0,0,0,.06); }
  .main-nav.open { display: flex; }
  .main-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding: 12px 0; }
  .menu-toggle { display: block; }
  .intro, .footer-inner { grid-template-columns: 1fr; }
  .cards, .event-grid, .gallery-grid { grid-template-columns: 1fr; }
  .hero { min-height: 560px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-emblem { width: min(320px, 62vw); justify-self: start; margin-top: -10px; }
  .section { padding: 60px 0; }
  .cta { display: block; }
  .cta .btn { margin-top: 20px; }
  .page-hero h1 { font-size: 42px; }
  .quote p { font-size: 30px; }
}

@media (max-width: 520px) {
  .header-inner, .container, .hero-inner { padding-left: 18px; padding-right: 18px; }
  .hero h1 { font-size: clamp(40px, 13vw, 58px); letter-spacing: -1px; }
  .hero-emblem { width: min(270px, 70vw); }
  .lead { font-size: 18px; }
  .page-hero { padding: 60px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.event-featured-image { margin: 25px 0 30px; }
.event-featured-image img { display: block; width: 100%; height: auto; }

/* Step 2 content components */
.wp-block-gallery { margin-top: 30px; }
.wp-block-image img, .wp-block-gallery img { border-radius: 5px; }
.content .wp-block-heading { font-family: Georgia, serif; }
.hoh-contact-form { max-width: 720px; margin-top: 30px; padding: 32px; background: #fff; border: 1px solid var(--line); }
.hoh-contact-form label { display: block; font-weight: 800; margin-bottom: 7px; }
.hoh-contact-form input, .hoh-contact-form textarea { width: 100%; padding: 12px 13px; border: 1px solid #c8c5be; background: #fff; color: var(--ink); }
.hoh-contact-form input:focus, .hoh-contact-form textarea:focus { border-color: var(--blue); outline: 3px solid rgba(18,59,103,.14); }
.hoh-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-success { padding: 14px 16px; background: #edf6ef; border-left: 4px solid #3b7b4a; }
.form-error { padding: 14px 16px; background: #fff0f0; border-left: 4px solid var(--red); }
.page-content-intro { font-size: 20px; color: var(--muted); max-width: 760px; }
@media (max-width: 850px) { .hero-emblem { justify-self: center; margin-top: 0; } }
