/*
Theme Name: WOLF K9 Corporate
Theme URI: https://wolf-k9.com/
Author: WOLF K9 SECURITY COMPANY, S.A.
Description: Single-page corporate theme for preventive K9 operations with maritime and port priority. English edition.
Version: 1.1.0-en
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: wolf-k9
*/

:root {
  --navy-950: #030b13;
  --navy-900: #071522;
  --navy-800: #0a2136;
  --navy-700: #10314e;
  --blue-500: #4f87c2;
  --blue-300: #9fc5e9;
  --khaki-600: #9d8a60;
  --khaki-500: #b6a47b;
  --khaki-300: #d9cba9;
  --sand-100: #f1ede4;
  --sand-50: #f8f6f1;
  --silver: #cbd2d8;
  --ink: #122231;
  --muted: #65727d;
  --white: #ffffff;
  --font-display: "Geist", Arial, Helvetica, sans-serif;
  --font-body: Arial, Helvetica, sans-serif;
  --font-mono: "Geist Mono", Consolas, monospace;
  --container: 1180px;
  --header-height: 82px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--sand-50);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 4px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shell { width: min(var(--container), calc(100% - 48px)); margin: 0 auto; }
.section { padding: 112px 0; }
.eyebrow {
  margin: 0 0 22px;
  color: var(--khaki-600);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.eyebrow.light { color: var(--khaki-300); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); }
h2 { margin-bottom: 0; font-size: clamp(2.25rem, 4.5vw, 4.5rem); line-height: .98; letter-spacing: -.05em; }
p { line-height: 1.75; }

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - var(--container)) / 2));
  background: rgba(3, 11, 19, .92);
  border-bottom: 1px solid rgba(255,255,255,.09);
  backdrop-filter: blur(18px);
}
.admin-bar .site-header { top: 32px; }
.brand { display: flex; align-items: center; height: 54px; }
.brand img { height: 100%; width: auto; max-width: 190px; object-fit: contain; display: block; }
.site-nav { display: flex; align-items: center; gap: 27px; color: #dfe6ec; font-size: .80rem; font-weight: 700; }
.site-nav > a:not(.nav-cta) { position: relative; padding: 28px 0; transition: color .2s ease; }
.site-nav > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 20px; height: 1px; background: var(--khaki-300); transition: right .2s ease; }
.site-nav > a:not(.nav-cta):hover,
.site-nav > a:not(.nav-cta):focus-visible,
.site-nav > a[aria-current="page"] { color: var(--khaki-300); }
.site-nav > a[aria-current="page"]::after { right: 0; }
.nav-cta { padding: 12px 18px; color: var(--navy-950); background: var(--khaki-300); border: 1px solid var(--khaki-300); transition: .2s ease; }
.nav-cta:hover, .nav-cta:focus-visible { background: var(--white); border-color: var(--white); transform: translateY(-2px); }
.menu-button { display: none; }

.hero { position: relative; min-height: 820px; height: 100svh; overflow: hidden; background: var(--navy-950); color: var(--white); }
.hero-image { position: absolute; inset: 0; background: center right / cover no-repeat url('./assets/images/wolf-k9-hero.webp'); transform: scale(1.01); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,11,19,.97) 0%, rgba(3,11,19,.87) 39%, rgba(3,11,19,.28) 70%, rgba(3,11,19,.16) 100%), linear-gradient(0deg, rgba(3,11,19,.88) 0%, transparent 38%); }
.hero-grid { position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(90deg, black, transparent 75%); }
.hero-content { position: relative; z-index: 2; display: flex; min-height: 100%; justify-content: center; flex-direction: column; padding-top: 100px; padding-bottom: 130px; }
.hero h1 { max-width: 850px; margin-bottom: 30px; font-size: clamp(3.5rem, 7vw, 7rem); line-height: .88; letter-spacing: -.065em; }
.hero h1 span { color: var(--khaki-300); }
.hero-lead { max-width: 680px; margin-bottom: 34px; color: #d4dde4; font-size: clamp(1.02rem, 1.55vw, 1.3rem); line-height: 1.65; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button { display: inline-flex; min-height: 51px; align-items: center; justify-content: center; padding: 0 23px; border: 1px solid transparent; border-radius: 0; font-size: .82rem; font-weight: 800; transition: .2s ease; cursor: pointer; }
.button.primary { color: var(--navy-950); background: var(--khaki-300); border-color: var(--khaki-300); }
.button.primary:hover, .button.primary:focus-visible { background: var(--white); border-color: var(--white); transform: translateY(-2px); }
.button.primary:active { transform: translateY(0); background: var(--khaki-500); border-color: var(--khaki-500); }
.button.ghost { color: var(--white); border-color: rgba(255,255,255,.38); background: rgba(255,255,255,.04); }
.button.ghost:hover, .button.ghost:focus-visible { border-color: var(--white); background: rgba(255,255,255,.1); }
.button.ghost:active { background: rgba(255,255,255,.16); }
.hero-rail { position: absolute; z-index: 3; bottom: 0; left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.18); }
.hero-rail span { padding: 22px 24px 24px 0; color: #ccd6dd; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.about { background: var(--sand-50); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; align-items: start; }
.about-copy { padding-top: 6px; }
.about-copy > p { max-width: 680px; color: var(--muted); font-size: 1.05rem; }
.about-copy .lead { color: var(--ink); font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.5; }
.trust-line { display: flex; gap: 18px; align-items: center; margin-top: 38px; padding-top: 28px; border-top: 1px solid #d9d3c8; }
.trust-mark { display: grid; width: 52px; height: 52px; flex: 0 0 auto; place-items: center; color: var(--white); background: var(--navy-800); font-weight: 900; letter-spacing: -.05em; }
.trust-line p { margin: 0; color: var(--ink); font-weight: 700; }

.services { color: var(--white); background: var(--navy-900); }
.split-heading { display: grid; grid-template-columns: 1.45fr .55fr; gap: 60px; align-items: end; }
.split-heading > p { margin: 0; color: #aebac4; }
.section-heading { margin-bottom: 60px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.16); border-left: 1px solid rgba(255,255,255,.16); }
.service-card { min-height: 278px; padding: 32px; border-right: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); transition: background .25s ease, transform .25s ease; }
.service-card:hover, .service-card:focus-within { background: rgba(79,135,194,.11); transform: translateY(-3px); }
.service-card > span { color: var(--khaki-300); font-family: var(--font-mono); font-size: .72rem; }
.service-card h3 { margin: 54px 0 17px; font-size: 1.3rem; }
.service-card p { margin: 0; color: #aebac4; font-size: .93rem; }
.service-note { max-width: 800px; margin: 28px 0 0; color: #8f9da9; font-size: .78rem; }

.maritime-band { position: relative; min-height: 700px; display: flex; align-items: center; overflow: hidden; color: var(--white); background: var(--navy-950); }
.maritime-image { position: absolute; inset: 0; background: center / cover no-repeat url('./assets/images/wolf-k9-port.webp'); }
.maritime-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,11,19,.96), rgba(3,11,19,.82) 48%, rgba(3,11,19,.24) 100%), linear-gradient(0deg, rgba(3,11,19,.75), transparent 65%); }
.maritime-content { position: relative; z-index: 2; padding-top: 100px; padding-bottom: 100px; }
.maritime-content h2 { max-width: 830px; }
.maritime-content > p:not(.eyebrow) { max-width: 700px; margin: 28px 0; color: #d1dbe3; font-size: 1.05rem; }
.operations-list { max-width: 800px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 36px; background: rgba(255,255,255,.20); border: 1px solid rgba(255,255,255,.20); }
.operations-list article { min-height: 145px; padding: 24px; background: rgba(3,11,19,.78); }
.operations-list span { color: var(--khaki-300); font-family: var(--font-mono); font-size: .68rem; }
.operations-list h3 { margin: 25px 0 0; font-size: 1rem; line-height: 1.35; }

.process-section { background: var(--white); }
.dark-copy > p { color: var(--muted); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #d8d2c7; }
.process-grid article { position: relative; padding: 34px 30px 0 0; }
.process-grid article:not(:last-child)::after { content: ""; position: absolute; top: 0; right: 24px; width: 1px; height: 100%; background: #e4dfd5; }
.process-grid span { color: var(--khaki-600); font-family: var(--font-mono); font-size: .72rem; }
.process-grid h3 { margin: 50px 0 15px; font-size: 1.25rem; }
.process-grid p { color: var(--muted); font-size: .9rem; }

.sectors { color: var(--white); background: var(--navy-800); }
.sectors-grid { display: grid; grid-template-columns: 1fr .8fr; gap: 110px; align-items: center; }
.sector-intro { max-width: 630px; margin-top: 30px; color: #b9c6cf; }
.sector-list { border-top: 1px solid rgba(255,255,255,.2); }
.sector-list div { display: grid; grid-template-columns: 60px 1fr; gap: 15px; align-items: center; padding: 21px 0; border-bottom: 1px solid rgba(255,255,255,.2); transition: padding-left .2s ease, background .2s ease; }
.sector-list div:hover { padding-left: 12px; background: rgba(255,255,255,.04); }
.sector-list span { color: var(--khaki-300); font-family: var(--font-mono); font-size: .67rem; }
.sector-list strong { font-size: 1rem; }

.standards { background: var(--sand-50); }
.centered { max-width: 800px; margin-left: auto; margin-right: auto; text-align: center; }
.centered > p:last-child { margin: 22px auto 0; max-width: 620px; color: var(--muted); }
.standards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.standards-grid article { min-height: 300px; padding: 28px; background: var(--white); border-top: 3px solid var(--khaki-500); box-shadow: 0 15px 35px rgba(18,34,49,.05); transition: transform .2s ease, box-shadow .2s ease; }
.standards-grid article:hover { transform: translateY(-4px); box-shadow: 0 20px 42px rgba(18,34,49,.09); }
.standards-grid span { color: var(--khaki-600); font-family: var(--font-mono); font-size: .7rem; }
.standards-grid h3 { margin: 62px 0 17px; font-size: 1.15rem; }
.standards-grid p { color: var(--muted); font-size: .88rem; }

.contact-section { padding: 112px 0; color: var(--white); background: var(--navy-950); }
.contact-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 90px; }
.contact-copy h2 { font-size: clamp(2.7rem, 5vw, 4.7rem); }
.contact-copy > p:not(.eyebrow, .contact-only) { margin: 28px 0; color: #b8c4cd; }
.email-link { display: inline-block; padding-bottom: 7px; color: var(--khaki-300); border-bottom: 1px solid var(--khaki-300); font-size: 1.25rem; font-weight: 800; }
.email-link:hover, .email-link:focus-visible { color: var(--white); border-color: var(--white); }
.contact-only { margin: 12px 0 0; color: #718391; font-size: .72rem; }
.contact-form { padding: 38px; color: var(--ink); background: var(--white); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-form label { display: grid; gap: 9px; margin-bottom: 20px; color: #384b5c; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 0; border-bottom: 1px solid #bfc6cb; border-radius: 0; padding: 11px 0; color: var(--ink); background: var(--white); outline: none; text-transform: none; letter-spacing: normal; }
.contact-form textarea { border: 1px solid #c8ced2; padding: 12px; resize: vertical; }
.contact-form input:hover, .contact-form select:hover { border-bottom-color: var(--navy-700); }
.contact-form textarea:hover { border-color: var(--navy-700); }
.contact-form input:focus, .contact-form select:focus { border-bottom-color: var(--blue-500); box-shadow: 0 2px 0 var(--blue-500); }
.contact-form textarea:focus { border-color: var(--blue-500); box-shadow: 0 0 0 2px rgba(79,135,194,.18); }
.consent { display: flex !important; grid-template-columns: none !important; flex-direction: row; align-items: flex-start; gap: 10px !important; text-transform: none !important; letter-spacing: normal !important; line-height: 1.5; font-weight: 600 !important; }
.consent input { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px; accent-color: var(--navy-800); }
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0 !important; pointer-events: none !important; }
.form-footer { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-top: 8px; }
.form-footer p { max-width: 330px; margin: 0; color: #7b878f; font-size: .7rem; }
.form-status { margin: 0 0 22px; padding: 14px; color: #294661; background: #e9f1f7; border-left: 3px solid var(--blue-500); font-size: .82rem; line-height: 1.5; }
.form-status.error { color: #6e2828; background: #f8e8e8; border-left-color: #a84a4a; }
.button[aria-busy="true"] { cursor: wait; opacity: .72; }

.site-footer { padding: 46px 0; color: #9aa9b4; background: #02080e; border-top: 1px solid rgba(255,255,255,.08); }
.footer-grid { display: grid; grid-template-columns: 1.1fr .7fr 1.2fr; gap: 50px; align-items: start; }
.footer-brand { display: flex; gap: 16px; align-items: center; }
.footer-brand img { width: 105px; height: auto; }
.footer-brand p { margin: 0; color: #d4dde3; font-size: .72rem; font-weight: 800; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: .74rem; font-weight: 700; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--khaki-300); }
.footer-legal { text-align: right; }
.footer-legal p { margin: 2px 0; font-size: .66rem; }
.privacy-notice { margin-top: 10px; font-size: .68rem; }
.privacy-notice summary { cursor: pointer; color: var(--khaki-300); font-weight: 700; }
.privacy-notice p { max-width: 520px; margin: 9px 0 0 auto; color: #9aa9b4; line-height: 1.55; }

.content-page { min-height: 70vh; padding: 150px 0 90px; }
.content-page article { max-width: 820px; }
.content-page h1 { font-size: clamp(2.6rem, 6vw, 5rem); line-height: .95; letter-spacing: -.05em; }

@media (max-width: 980px) {
  .site-nav { gap: 17px; }
  .about-grid, .sectors-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid, .standards-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .process-grid article:nth-child(2)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-legal { grid-column: 1 / -1; text-align: left; }
  .privacy-notice p { margin-left: 0; }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

@media (max-width: 760px) {
  :root { --header-height: 70px; }
  html { scroll-padding-top: 76px; }
  .shell { width: min(100% - 32px, var(--container)); }
  .section { padding: 80px 0; }
  .site-header { height: var(--header-height); padding: 0 16px; }
  .brand { height: 42px; }
  .brand img { max-width: 150px; }
  .menu-button { position: relative; z-index: 2; display: flex; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; padding: 10px; border: 0; background: transparent; cursor: pointer; }
  .menu-button > span:not(.sr-only) { display: block; width: 24px; height: 1px; background: var(--white); transition: transform .2s ease, opacity .2s ease; }
  .menu-button[aria-expanded="true"] > span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-button[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { position: fixed; top: var(--header-height); left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 16px; color: var(--white); background: var(--navy-950); border-top: 1px solid rgba(255,255,255,.1); max-height: calc(100vh - var(--header-height)); overflow-y: auto; }
  .admin-bar .site-nav { top: calc(var(--header-height) + 46px); }
  .site-nav.open { display: flex; }
  .site-nav > a:not(.nav-cta) { padding: 15px 10px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .site-nav > a:not(.nav-cta)::after { display: none; }
  .nav-cta { margin-top: 12px; text-align: center; }
  .hero { min-height: 760px; }
  .hero-image { background-position: 66% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(3,11,19,.93), rgba(3,11,19,.63)), linear-gradient(0deg, rgba(3,11,19,.92), transparent 65%); }
  .hero-content { padding-top: 105px; padding-bottom: 180px; }
  .hero h1 { font-size: clamp(3.2rem, 15vw, 5rem); }
  .hero-rail { grid-template-columns: repeat(2, 1fr); }
  .hero-rail span { padding: 13px 8px 13px 0; }
  .split-heading { grid-template-columns: 1fr; gap: 24px; }
  .service-grid, .process-grid, .standards-grid, .operations-list { grid-template-columns: 1fr; }
  .service-card { min-height: 240px; }
  .process-grid article:not(:last-child)::after { display: none; }
  .process-grid article { padding-right: 0; padding-bottom: 25px; border-bottom: 1px solid #e4dfd5; }
  .maritime-band { min-height: 860px; }
  .maritime-image { background-position: 66% center; }
  .field-row, .footer-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 25px 20px; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .form-footer .button { width: 100%; }
  .footer-grid { gap: 28px; }
  .footer-legal { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@@
-.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #d8d2c7; }
-.process-grid article { position: relative; padding: 34px 30px 0 0; }
-.process-grid article:not(:last-child)::after { content: ""; position: absolute; top: 0; right: 24px; width: 1px; height: 100%; background: #e4dfd5; }
+.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #d8d2c7; }
+.process-grid article { position: relative; min-height: 260px; padding: 34px 30px 28px 0; border-bottom: 1px solid #e4dfd5; }
+.process-grid article:not(:nth-child(3n))::after { content: ""; position: absolute; top: 0; right: 24px; width: 1px; height: 100%; background: #e4dfd5; }
@@
-  .process-grid article:nth-child(2)::after { display: none; }
+  .process-grid article::after { display: none; }

/* Status badge — commencing operations notice */
.status-badge {
  display: inline-block;
  margin: 0 0 22px;
  padding: 9px 16px;
  border: 1px solid rgba(217, 203, 169, .45);
  background: rgba(3, 11, 19, .55);
  color: var(--khaki-300);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.4;
}
@media (max-width: 760px) {
  .status-badge { font-size: .64rem; letter-spacing: .06em; padding: 8px 12px; }
}
