/*
Theme Name: Arizona Projects
Theme URI: https://arizonaforprojects.com/
Author: Built for Arizona Projects & Consultants
Description: Lightweight theme for Arizona Projects & Consultants — planning, scheduling and project controls consultancy with Primavera P6 training. Dynamic services, testimonials, blog and enquiry handling. No page-builder dependency.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: arizona
*/

:root {
  --ink: oklch(0.26 0.012 70);
  --ink2: oklch(0.36 0.012 70);
  --muted: oklch(0.50 0.012 70);
  --bg: oklch(0.975 0.006 70);
  --surface: oklch(0.965 0.012 60);
  --surface2: oklch(0.945 0.014 60);
  --line: oklch(0.87 0.012 60);
  --line2: oklch(0.80 0.012 60);
  --brand: oklch(0.53 0.20 22);
  --brand-dark: oklch(0.45 0.20 22);
  --brand-light: oklch(0.62 0.21 22);
  --brand-text: oklch(0.46 0.19 22);
  --dark: oklch(0.26 0.012 70);
  --darker: oklch(0.20 0.012 70);
  --blue: oklch(0.45 0.09 240);
  --blue-dark: oklch(0.36 0.10 240);
  --wrap: 1180px;
  --sans: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  --display: 'Archivo', var(--sans);
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  text-wrap: pretty; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--brand-text); text-decoration: none; }
a:hover, a:focus { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 999; background: #fff; padding: 10px 14px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.stack { display: flex; flex-direction: column; }
.section { padding-block: clamp(44px, 7vw, 72px); }
.eyebrow {
  font-family: var(--display); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand-text); font-weight: 600;
}
.eyebrow--blue { color: var(--blue); }
.lede { font-size: clamp(17px, 2vw, 20px); color: oklch(0.40 0.012 70); }
.h1 { font-size: clamp(31px, 5vw, 54px); line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance; }
.h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -0.022em; }
.h3 { font-size: clamp(20px, 2.2vw, 24px); letter-spacing: -0.018em; }
.measure { max-width: 68ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 16px; line-height: 1.2;
  padding: 13px 21px; border: 1px solid transparent; cursor: pointer;
  text-decoration: none; min-height: 46px; transition: background-color .15s, border-color .15s;
}
.btn:hover, .btn:focus { text-decoration: none; }
.btn--primary { background: var(--brand); color: oklch(0.99 0.005 70); }
.btn--primary:hover, .btn--primary:focus { background: var(--brand-dark); color: oklch(0.99 0.005 70); }
.btn--blue { background: var(--blue); color: oklch(0.99 0.005 70); }
.btn--blue:hover, .btn--blue:focus { background: var(--blue-dark); color: oklch(0.99 0.005 70); }
.btn--ghost { border-color: var(--line2); color: var(--ink); background: transparent; }
.btn--ghost:hover, .btn--ghost:focus { border-color: var(--ink2); color: var(--ink); }
.btn--dark { background: var(--dark); color: oklch(0.97 0.006 70); }
.btn--dark:hover, .btn--dark:focus { background: var(--darker); color: oklch(0.97 0.006 70); }
.btn--on-dark { border-color: oklch(0.48 0.012 70); color: oklch(0.95 0.008 70); }
.btn--on-dark:hover, .btn--on-dark:focus { border-color: oklch(0.80 0.012 70); color: #fff; }
.btn-row { display: flex; gap: 11px; flex-wrap: wrap; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 40; }
.site-header__inner { display: flex; align-items: center; gap: 20px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand img { height: 44px; width: auto; display: block; }
.brand__name { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--ink); line-height: 1.15; }
.brand__tag { font-size: 12px; color: var(--muted); line-height: 1.2; }
.nav-toggle {
  margin-left: auto; display: none; background: none; border: 1px solid var(--line2);
  color: var(--ink); padding: 9px 13px; font: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer; min-height: 44px;
}
.primary-nav { margin-left: auto; }
.primary-nav ul { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; padding: 0; margin: 0; }
.primary-nav a { color: oklch(0.34 0.012 70); font-size: 15px; }
.primary-nav a:hover { color: var(--brand-text); }
.primary-nav .current-menu-item > a { color: var(--brand-text); font-weight: 600; }
.header-cta { flex-shrink: 0; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .primary-nav { display: none; flex-basis: 100%; margin-left: 0; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; border-top: 1px solid var(--line); margin-top: 12px; }
  .primary-nav li { border-bottom: 1px solid var(--line); }
  .primary-nav a { display: block; padding: 14px 2px; font-size: 17px; }
  .site-header__inner { flex-wrap: wrap; }
  .header-cta { width: 100%; }
  .header-cta .btn { width: 100%; }
}

/* Cards & grids */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 14px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  padding: 28px; display: flex; flex-direction: column; gap: 13px;
}
.card--top-brand { border-top: 4px solid var(--brand); }
.card--top-blue { border-top: 4px solid var(--blue); }
.card--left-brand { border-left: 4px solid var(--brand); }
.card--left-blue { border-left: 4px solid var(--blue); }
.card__meta { font-size: 15px; color: var(--muted); font-weight: 600; }
.card p { color: var(--ink2); }
.card ul { padding-left: 19px; display: flex; flex-direction: column; gap: 7px; color: var(--ink2); font-size: 16px; }
.card__foot { margin-top: auto; padding-top: 6px; }
.card--tight { padding: 22px 24px; gap: 5px; }
.card--tight .card__title { font-family: var(--display); font-weight: 600; font-size: 17px; }
.card--tight p { font-size: 15px; color: oklch(0.45 0.012 70); }

.band { background: var(--surface2); border-block: 1px solid var(--line); }
.band__inner { display: flex; gap: 16px 40px; flex-wrap: wrap; align-items: baseline; padding-block: 22px; }
.band__label { font-family: var(--display); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: oklch(0.48 0.012 70); font-weight: 600; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid oklch(0.84 0.012 60); background: var(--surface);
  padding: 7px 13px; font-size: 15px; font-weight: 600; color: oklch(0.30 0.012 70);
}

.quote { border-left: 3px solid var(--blue); padding: 4px 0 4px 20px; display: flex; flex-direction: column; gap: 11px; margin: 0; }
.quote p { font-size: 17.5px; color: oklch(0.30 0.012 70); }
.quote footer { font-size: 15px; color: oklch(0.48 0.012 70); }
.quote footer strong { color: oklch(0.30 0.012 70); font-weight: 600; }

/* Service list rows */
.svc-row {
  display: flex; gap: 26px; flex-wrap: wrap; align-items: baseline;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand);
  padding: 26px 28px; text-decoration: none; color: inherit;
}
.svc-row:hover { border-color: oklch(0.70 0.09 22); border-left-color: var(--brand); text-decoration: none; color: inherit; }
.svc-row__body { flex: 1 1 260px; display: flex; flex-direction: column; gap: 8px; }
.svc-row__body p { color: var(--ink2); font-size: 16.5px; }
.svc-row__go { color: var(--brand-text); font-weight: 600; font-size: 16px; }
.svc-row__tagline { font-size: 15px; color: var(--brand-text); font-weight: 600; }

/* Dark CTA */
.cta-dark { background: var(--dark); color: oklch(0.95 0.008 70); }
.cta-dark h2 { color: #fff; }
.cta-dark p { color: oklch(0.78 0.012 70); }
.cta-dark__inner { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; justify-content: space-between; padding-block: 46px; }
.cta-dark__text { display: flex; flex-direction: column; gap: 8px; flex: 1 1 320px; }
.contact-list { display: flex; flex-direction: column; gap: 12px; font-size: 17px; }
.contact-list a { color: oklch(0.95 0.008 70); border-bottom: 1px solid oklch(0.42 0.012 70); padding-bottom: 11px; }
.contact-list a:hover { color: #fff; text-decoration: none; border-color: oklch(0.70 0.012 70); }

/* Founder */
.founder { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 34px; align-items: start; }
.founder__photo { width: 100%; max-width: 340px; border: 1px solid var(--line); display: block; }
.founder__name { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.018em; }
.founder__role { font-size: 16px; color: var(--brand-text); font-weight: 600; }
.founder__strip { display: flex; gap: 22px; align-items: center; }
.founder__strip img { width: 132px; height: 132px; object-fit: cover; border: 1px solid var(--line); flex-shrink: 0; }
.creds { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cred { background: var(--surface); padding: 14px 17px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.cred__name { font-weight: 600; font-size: 16px; color: oklch(0.28 0.012 70); }
.cred__issuer { font-size: 14.5px; color: oklch(0.48 0.012 70); }
.cred__year { font-family: var(--mono); font-size: 13px; color: var(--muted); white-space: nowrap; }

/* Steps */
.steps { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step { background: var(--surface); padding: 15px 18px; display: flex; gap: 14px; align-items: baseline; }
.step__n { font-family: var(--display); font-weight: 700; color: var(--brand); flex-shrink: 0; }
.step p { font-size: 16px; color: var(--ink2); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14.5px; font-weight: 600; color: oklch(0.32 0.012 70); }
.field .req { color: var(--brand); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; padding: 11px 13px; width: 100%;
  border: 1px solid var(--line2); background: oklch(0.99 0.005 70); color: oklch(0.24 0.012 70);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: none; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.form-section { display: flex; flex-direction: column; gap: 13px; }
.form-section__label { font-family: var(--display); font-size: 11.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--brand-text); font-weight: 600; }
.az-hp { position: absolute !important; left: -9999px; }
.form-note { font-size: 14px; color: var(--muted); }
.notice { padding: 14px 16px; border-left: 3px solid var(--brand); background: var(--surface); font-size: 16px; }
.notice--ok { border-left-color: oklch(0.55 0.13 150); }
.notice ul { padding-left: 20px; margin-top: 6px; }

/* Modal */
.az-modal { position: fixed; inset: 0; z-index: 200; background: oklch(0.20 0.012 70 / 0.62); display: none; align-items: flex-start; justify-content: center; padding: 40px 18px; overflow-y: auto; }
.az-modal.is-open { display: flex; }
.az-modal__panel { background: var(--bg); border: 1px solid oklch(0.82 0.012 60); max-width: 620px; width: 100%; box-shadow: 0 18px 50px oklch(0.20 0.012 70 / 0.28); }
.az-modal__head { display: flex; align-items: flex-start; gap: 18px; padding: 26px 30px 20px; border-bottom: 1px solid var(--line); }
.az-modal__head img { height: 40px; width: auto; flex-shrink: 0; }
.az-modal__close { background: none; border: 1px solid oklch(0.84 0.012 60); color: var(--ink2); width: 36px; height: 36px; font: inherit; font-size: 18px; line-height: 1; cursor: pointer; flex-shrink: 0; }
.az-modal__close:hover { border-color: var(--brand); color: var(--brand-text); }
.az-modal__body { padding: 24px 30px 28px; display: flex; flex-direction: column; gap: 20px; }
body.az-modal-open { overflow: hidden; }

/* Posts */
.post-card { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.post-card__thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface2); }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__body { padding: 22px 24px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.post-card__cat { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-text); }
.post-card__title { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.post-card__title a { color: var(--ink); }
.post-card__excerpt { font-size: 15.5px; color: oklch(0.42 0.012 70); }
.post-card__meta { font-size: 14px; color: var(--muted); margin-top: auto; padding-top: 10px; }

.entry { max-width: 74ch; }
.entry > * + * { margin-top: 1.1em; }
.entry h2 { font-size: clamp(23px, 2.6vw, 30px); margin-top: 1.7em; }
.entry h3 { font-size: clamp(19px, 2.1vw, 23px); margin-top: 1.5em; }
.entry ul, .entry ol { padding-left: 22px; }
.entry li + li { margin-top: .4em; }
.entry blockquote { border-left: 3px solid var(--brand); padding-left: 20px; font-size: 19px; color: oklch(0.32 0.012 70); }
.entry img { display: block; }
.entry a { text-decoration: underline; text-underline-offset: 2px; }
.entry code { font-family: var(--mono); font-size: .9em; background: var(--surface); padding: 2px 5px; }
.entry table { width: 100%; border-collapse: collapse; }
.entry th, .entry td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; }

.pagination { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 34px; }
.pagination .page-numbers { border: 1px solid var(--line2); padding: 9px 14px; color: var(--ink2); min-width: 44px; text-align: center; }
.pagination .current { background: var(--dark); color: #fff; border-color: var(--dark); }

/* Footer */
.site-footer { background: var(--darker); color: oklch(0.80 0.012 70); font-size: 15px; }
.site-footer a { color: oklch(0.80 0.012 70); }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); gap: 32px; padding: 44px 0 22px; }
.site-footer__col { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.site-footer__head { font-family: var(--display); font-size: 11.5px; letter-spacing: 0.13em; text-transform: uppercase; color: oklch(0.60 0.012 70); font-weight: 600; margin-bottom: 3px; }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.site-footer__brand { display: flex; align-items: center; gap: 10px; }
.site-footer__brand img { height: 34px; width: auto; }
.site-footer__brand span { font-family: var(--display); font-weight: 600; color: oklch(0.95 0.008 70); font-size: 15px; }
.site-footer__legal { border-top: 1px solid oklch(0.32 0.012 70); padding: 18px 0 34px; font-size: 14px; color: oklch(0.62 0.012 70); }
.social { display: flex; gap: 14px; flex-wrap: wrap; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: flex; align-items: center; gap: 9px; background: #25D366; color: #fff;
  padding: 13px 18px; border-radius: 999px; font-weight: 600; font-size: 15px;
  box-shadow: 0 4px 14px rgba(0,0,0,.22); min-height: 48px;
}
.wa-float:hover, .wa-float:focus { color: #fff; text-decoration: none; background: #1eb959; }
@media (max-width: 600px) { .wa-float { padding: 13px 15px; } .wa-float span { display: none; } }

@media print {
  .site-header, .site-footer, .wa-float, .az-modal, .nav-toggle { display: none !important; }
  body { background: #fff; font-size: 11pt; }
}
