/*
Theme Name: Gatehouse Security
Theme URI: https://gatehouse.rekt-gaming.com
Description: Brand child theme for Gatehouse Security — red/graphite/silver scheme on Kadence, matching the company logo.
Author: Gatehouse Security
Template: kadence
Version: 2.0.0
*/

:root{
  --gh-ink:#1B1E22; --gh-ink-2:#24282D; --gh-steel:#5B626A;
  --gh-mist:#EEF0F1; --gh-line:#DADDDF; --gh-white:#fff;
  --gh-red:#C60017; --gh-red-2:#E2101F; --gh-red-bright:#F23644;
  --gh-silver:#C5C8CA;
}

body{ font-family:"Inter",system-ui,-apple-system,Segoe UI,Roboto,sans-serif; color:#23272B; }
h1,h2,h3,h4,.gh-display{ font-family:"Manrope","Inter",sans-serif; letter-spacing:-.02em; line-height:1.08; color:var(--gh-ink); }

/* Eyebrow label */
.gh-eyebrow{ font-family:"Manrope",sans-serif; text-transform:uppercase; letter-spacing:.18em;
  font-size:.78rem; font-weight:700; color:var(--gh-red); margin-bottom:.6rem; }
.gh-section--dark .gh-eyebrow, .gh-section--ink .gh-eyebrow,
.gh-hero .gh-eyebrow, .gh-pagehead .gh-eyebrow{ color:var(--gh-red-bright); }

/* Sections */
.gh-section{ padding-top:clamp(3rem,6vw,5.5rem); padding-bottom:clamp(3rem,6vw,5.5rem); }
.gh-section--mist{ background:var(--gh-mist); }
.gh-section--ink{ background:var(--gh-ink); }
.gh-section--ink, .gh-section--ink h1, .gh-section--ink h2, .gh-section--ink h3, .gh-section--ink p{ color:#E7E9EB; }
.gh-section--ink h2{ color:#fff; }

/* Buttons */
.wp-block-button .wp-block-button__link{
  font-family:"Manrope",sans-serif; font-weight:700; letter-spacing:.01em;
  border-radius:10px; padding:.95em 1.7em; transition:transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.wp-block-button:not(.is-style-outline) .wp-block-button__link{
  background:var(--gh-red); color:#fff; box-shadow:0 8px 22px -8px rgba(198,0,23,.55);
}
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover{ background:var(--gh-red-2); transform:translateY(-2px); color:#fff; }
.wp-block-button.is-style-outline .wp-block-button__link{
  border:2px solid rgba(255,255,255,.5); color:#fff; background:transparent;
}
.gh-section--mist .wp-block-button.is-style-outline .wp-block-button__link,
.gh-btn-ink-outline .wp-block-button__link{ border-color:var(--gh-ink); color:var(--gh-ink); }
.wp-block-button.is-style-outline .wp-block-button__link:hover{ background:rgba(255,255,255,.12); }

/* Cards */
.gh-card{ background:#fff; border:1px solid var(--gh-line); border-radius:16px; overflow:hidden;
  box-shadow:0 16px 40px -28px rgba(27,30,34,.45); height:100%; transition:transform .15s ease, box-shadow .15s ease; }
.gh-card:hover{ transform:translateY(-4px); box-shadow:0 26px 52px -28px rgba(27,30,34,.55); }
.gh-card .wp-block-image{ margin:0; }
.gh-card .wp-block-image img{ width:100%; aspect-ratio:4/3; object-fit:cover; display:block; }
.gh-card-pad{ padding:1.4rem 1.5rem 1.6rem; }
.gh-card h3{ margin:.2rem 0 .5rem; font-size:1.28rem; }

/* Hero */
.gh-hero{ position:relative; }
.gh-hero h1{ color:#fff; font-size:clamp(2.2rem,5vw,4rem); }
.gh-hero p{ color:#E4E6E8; font-size:1.18rem; }

/* Trust / accreditation strip */
.gh-trust{ background:#fff; border-top:1px solid var(--gh-line); border-bottom:1px solid var(--gh-line); }
.gh-trust .wp-block-image img{ filter:grayscale(1); opacity:.7; transition:.15s; max-height:54px; width:auto; }
.gh-trust .wp-block-image img:hover{ filter:none; opacity:1; }

/* Stat number */
.gh-stat .wp-block-heading{ font-size:2.6rem; color:var(--gh-red); margin:0; }
.gh-section--ink .gh-stat .wp-block-heading{ color:var(--gh-red-bright); }

/* Quote callout */
.gh-quote{ border-left:4px solid var(--gh-red); padding-left:1.2rem; font-size:1.25rem; font-style:italic; color:var(--gh-ink); }

/* ---------- Dark header (silver logo reads on dark; matches brand) ---------- */
.site-main-header-wrap, .site-main-header-inner-wrap,
.site-header-row-container.site-main-header-wrap .site-header-row-container-inner{ background-color:var(--gh-ink) !important; }
.site-main-header-wrap .header-navigation .menu-item > a,
.site-main-header-wrap .site-header-item a,
.site-main-header-wrap .site-title a{ color:#EDEFF1 !important; }
.site-main-header-wrap .header-navigation .menu-item > a:hover,
.site-main-header-wrap .header-navigation .current-menu-item > a{ color:#fff !important; }
.site-main-header-wrap .menu-item.gh-nav-cta > a{ background:var(--gh-red); color:#fff !important; border-radius:8px; padding:.5em 1.15em !important; font-weight:700; }
.site-main-header-wrap .menu-item.gh-nav-cta > a:hover{ background:var(--gh-red-2) !important; }
.site-branding a.brand img, .site-header-item .site-logo a img{ max-height:50px; height:50px; width:auto; }
.mobile-toggle-open-container .menu-toggle-open .kadence-svg-iconset,
.site-main-header-wrap .menu-toggle{ color:#EDEFF1 !important; }

/* Header CTA fallback (light header contexts) */
.gh-nav-cta > a{ background:var(--gh-red); color:#fff !important; border-radius:8px; padding:.5em 1.15em !important; font-weight:700; transition:.12s; }
.gh-nav-cta > a:hover{ background:var(--gh-red-2) !important; }

/* Outline buttons on any dark cover stay white */
.wp-block-cover .wp-block-button.is-style-outline .wp-block-button__link{ color:#fff !important; border-color:rgba(255,255,255,.6) !important; }
.wp-block-cover .wp-block-button.is-style-outline .wp-block-button__link:hover{ background:rgba(255,255,255,.12) !important; }
.gh-pagehead h1{ font-size:clamp(1.9rem,4vw,3rem); }

/* Contact form (CF7) */
.gh-form-row{ display:flex; gap:1rem; flex-wrap:wrap; }
.gh-form-row > span.wpcf7-form-control-wrap{ flex:1 1 45%; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 textarea{
  width:100%; padding:.8em .9em; border:1px solid var(--gh-line); border-radius:10px; font-family:inherit; font-size:1rem; margin:.4rem 0; background:#fff; box-sizing:border-box; }
.wpcf7 input:focus, .wpcf7 textarea:focus{ outline:none; border-color:var(--gh-red); box-shadow:0 0 0 3px rgba(198,0,23,.15); }
.wpcf7 textarea{ min-height:140px; }
.wpcf7 .wpcf7-submit{ background:var(--gh-red); color:#fff; border:0; border-radius:10px; padding:.9em 1.7em; font-family:"Manrope",sans-serif; font-weight:700; cursor:pointer; font-size:1rem; transition:.12s; margin-top:.4rem; }
.wpcf7 .wpcf7-submit:hover{ background:var(--gh-red-2); }

/* Project cards: terms + title + excerpt */
.gh-card-pad .wp-block-post-terms{ font-family:"Manrope",sans-serif; text-transform:uppercase; letter-spacing:.14em; font-size:.72rem; font-weight:700; color:var(--gh-red); margin-bottom:.3rem; }
.gh-card-pad .wp-block-post-terms a{ color:var(--gh-red); text-decoration:none; }
.gh-card-pad .wp-block-post-title{ font-size:1.2rem; margin:.1rem 0 .45rem; }
.gh-card-pad .wp-block-post-title a{ color:var(--gh-ink); text-decoration:none; }
.gh-card-pad .wp-block-post-title a:hover{ color:var(--gh-red); }
.gh-card-pad .wp-block-post-excerpt__excerpt{ color:#4a525a; font-size:.96rem; }
.gh-card .wp-block-post-featured-image img{ aspect-ratio:4/3; object-fit:cover; width:100%; }

/* Footer tidy */
.site-footer{ background:var(--gh-ink); }

/* Logo already contains the company name + tagline — hide the theme text title */
.site-branding .site-title, .site-branding .site-description,
.site-header-item .site-title, .site-header-item .site-description{ display:none !important; }

/* ---------- Custom footer ---------- */
.site-bottom-footer-wrap, .site-footer .site-footer-row-container.site-bottom-footer-wrap{ display:none !important; }
.gh-footer{ background:var(--gh-ink); color:#C7CCD1; padding:3.2rem 1.25rem 1.4rem; }
.gh-footer-inner{ max-width:1100px; margin:0 auto; display:flex; flex-wrap:wrap; gap:2.5rem; }
.gh-footer-col{ flex:1 1 200px; }
.gh-footer-brand{ flex:1 1 320px; }
.gh-footer-logo{ height:60px; width:auto; margin-bottom:1rem; display:block; }
.gh-footer p{ color:#9aa1a8; font-size:.95rem; line-height:1.6; max-width:36ch; }
.gh-footer h4{ color:#fff; font-family:"Manrope",sans-serif; font-size:.9rem; text-transform:uppercase; letter-spacing:.12em; margin:0 0 1rem; }
.gh-footer ul{ list-style:none; margin:0; padding:0; }
.gh-footer li{ margin-bottom:.55rem; color:#aab0b6; font-size:.96rem; line-height:1.5; }
.gh-footer a{ color:#C7CCD1; text-decoration:none; transition:.12s; }
.gh-footer a:hover{ color:#fff; }
.gh-footer-contact a:hover{ color:var(--gh-red-bright); }
.gh-footer-cta{ display:inline-block; margin-top:1.1rem; background:var(--gh-red); color:#fff !important; font-family:"Manrope",sans-serif; font-weight:700; padding:.7em 1.3em; border-radius:9px; }
.gh-footer-cta:hover{ background:var(--gh-red-2); color:#fff !important; }
.gh-footer-base{ max-width:1100px; margin:2.4rem auto 0; padding-top:1.4rem; border-top:1px solid rgba(255,255,255,.08); font-size:.86rem; color:#7d848b; }

/* ---------- Areas / PHP template pages ---------- */
.gh-container{ max-width:1180px; margin:0 auto; padding:0 1.25rem; width:100%; }
.gh-area .gh-pagehead .wp-block-cover__inner-container{ width:100%; }
.gh-prose{ max-width:72ch; }
.gh-prose p{ font-size:1.05rem; line-height:1.7; color:#33393F; margin:0 0 1rem; }
.gh-prose h2, .gh-area h2{ margin:0 0 1rem; }
.gh-grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; }
@media(max-width:880px){ .gh-grid-3{ grid-template-columns:1fr; } }
.gh-area .gh-card img{ width:100%; aspect-ratio:4/3; object-fit:cover; display:block; }
.gh-card-link{ display:block; text-decoration:none; color:inherit; }
.gh-card-link h3{ color:var(--gh-ink); }
.gh-card-link:hover h3{ color:var(--gh-red); }
.gh-card-link p{ color:#4a525a; }
.gh-pills{ display:flex; flex-wrap:wrap; gap:.5rem; margin-top:.6rem; }
.gh-pills span{ display:inline-block; padding:.4em 1em; border:1px solid var(--gh-line); border-radius:999px; font-weight:600; font-size:.9rem; color:var(--gh-steel); background:#fff; }
.gh-accred-row{ display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:2.5rem; padding:1.4rem 1.5rem; border:1px solid var(--gh-line); border-radius:14px; background:#fff; }
.gh-accred-row img{ max-height:54px; width:auto; filter:grayscale(1); opacity:.72; }
.gh-accred-row img:first-child{ max-height:66px; filter:none; opacity:1; }
.gh-quote-lg{ font-family:"Manrope",sans-serif; font-size:1.5rem; line-height:1.4; color:#fff; max-width:42ch; margin:0 auto 1rem; }
.gh-area .gh-pagehead h1{ font-size:clamp(1.9rem,4vw,3rem); }

/* Cover blocks rendered in PHP templates (core block CSS isn't auto-enqueued there) */
.gh-area .wp-block-cover{ position:relative; display:flex; align-items:center; overflow:hidden; }
.gh-area .wp-block-cover__image-background{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; margin:0; max-width:none; }
.gh-area .wp-block-cover__background{ position:absolute; inset:0; z-index:1; }
.gh-area .wp-block-cover__inner-container{ position:relative; z-index:2; width:100%; padding:2.6rem 0; }
.gh-area .wp-block-cover.gh-pagehead .wp-block-cover__inner-container{ padding:3rem 0; }

/* Cover dim opacities (core block CSS not loaded on PHP templates) */
.gh-area .wp-block-cover__background.has-background-dim-65{ opacity:.6; }
.gh-area .wp-block-cover__background.has-background-dim-70{ opacity:.66; }
.gh-area .wp-block-cover__background.has-background-dim-100{ opacity:1; }

/* Areas internal-link strip */
.gh-areas-strip{ padding-top:3rem; padding-bottom:3rem; }
