/*
Theme Name:   Veridian Consulting
Theme URI:    https://yoursite.com
Author:       Your Name
Description:  An elegant, editorial WordPress theme for software consulting companies. Deep forest green accent, warm ivory canvas, refined typography. Clean header with logo + horizontal nav. Three-column footer with sitemap, contact CTA, and logo.
Version:      1.0.0
Requires PHP: 7.4
License:      GNU General Public License v2 or later
Text Domain:  veridian
Tags:         business, consulting, minimal, elegant, custom-logo, custom-menu, responsive, translation-ready
*/

/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
  /* Palette */
  --ink:           #1a1f1e;
  --ink-mid:       #3d4442;
  --ink-soft:      #6b7572;
  --ink-ghost:     #9daaa6;
  --canvas:        #f5f3ef;
  --canvas-warm:   #ede9e2;
  --surface:       #ffffff;
  --green:         #1e4d3f;
  --green-mid:     #2d6b57;
  --green-light:   #3d8870;
  --green-tint:    rgba(30, 77, 63, .07);
  --green-tint2:   rgba(30, 77, 63, .13);
  --border:        rgba(26, 31, 30, .10);
  --border-green:  rgba(30, 77, 63, .22);

  /* Typography */
  --serif:   'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --sans:    'Outfit', 'Helvetica Neue', Arial, sans-serif;

  /* Motion */
  --spring:  cubic-bezier(0.175, 0.885, 0.32, 1.1);
  --ease:    cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast:  .18s var(--ease);
  --t-mid:   .28s var(--ease);

  /* Layout */
  --max:     1200px;
  --hh:      74px;           /* header height */
  --r:       3px;            /* base radius */
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; transition: color var(--t-fast); }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; }

/* =========================================================
   TYPOGRAPHY SCALE
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  line-height: 1.22;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem);   letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); letter-spacing: -.01em; font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem);font-weight: 600; }
h4 { font-size: 1.175rem; font-weight: 600; }
p  { color: var(--ink-soft); font-size: 1.0625rem; line-height: 1.82; margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }
em { font-style: italic; }
strong { font-weight: 600; color: var(--ink-mid); }

/* =========================================================
   LAYOUT HELPERS
   ========================================================= */
.container {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.container--narrow { max-width: 800px; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .7rem 1.75rem;
  font-family: var(--sans); font-size: .8125rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  border: 1.5px solid transparent;
  border-radius: var(--r);
  cursor: pointer; white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast),
              border-color var(--t-fast), transform var(--t-fast),
              box-shadow var(--t-fast);
}
.btn:focus-visible { outline: 2px solid var(--green-light); outline-offset: 3px; }

.btn-primary {
  background: var(--green); color: #fff; border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-mid); border-color: var(--green-mid); color: #fff;
  transform: translateY(-1px); box-shadow: 0 8px 28px rgba(30,77,63,.28);
}

.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--green); color: var(--green);
}

.btn-arrow::after {
  content: '→';
  display: inline-block;
  transition: transform var(--t-fast);
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* =========================================================
   SITE HEADER
   ========================================================= */
#masthead {
  position: fixed; inset: 0 0 auto; z-index: 1000;
  height: var(--hh);
  background: rgba(245,243,239,.93);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t-mid), background var(--t-mid);
}
#masthead.scrolled {
  background: rgba(245,243,239,.98);
  box-shadow: 0 1px 0 var(--border), 0 4px 24px rgba(26,31,30,.06);
}

.header-wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  height: var(--hh);
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
}

/* — Branding — */
.site-branding { flex-shrink: 0; }
.site-branding a,
.site-branding .custom-logo-link {
  display: flex; align-items: center; gap: .875rem;
}
.custom-logo-link img { height: 40px; width: auto; }

.logo-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  background: var(--green);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { width: 20px; height: 20px; fill: none; stroke: rgba(255,255,255,.9); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.brand-stack { line-height: 1.15; }
.brand-name {
  display: block;
  font-family: var(--serif); font-size: 1.2rem; font-weight: 700;
  color: var(--ink); letter-spacing: -.01em;
}
.brand-sub {
  display: block;
  font-size: .65rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--green);
}

/* — Primary nav — */
.primary-nav { display: flex; align-items: center; }
.primary-nav ul { display: flex; align-items: center; gap: .125rem; }
.primary-nav ul li { position: relative; }

.primary-nav ul li > a {
  display: block; padding: .4rem .9rem;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .065em; text-transform: uppercase;
  color: var(--ink-soft); border-radius: var(--r);
  transition: color var(--t-fast), background var(--t-fast);
  position: relative;
}
.primary-nav ul li > a::before {
  content: '';
  position: absolute; bottom: 3px; inset-inline: .9rem;
  height: 1.5px; background: var(--green);
  transform: scaleX(0); transform-origin: right;
  transition: transform .24s var(--ease);
  border-radius: 1px;
}
.primary-nav ul li > a:hover,
.primary-nav ul li.current-menu-item > a,
.primary-nav ul li.current-page-ancestor > a {
  color: var(--ink);
}
.primary-nav ul li > a:hover::before,
.primary-nav ul li.current-menu-item > a::before {
  transform: scaleX(1); transform-origin: left;
}

/* Dropdown */
.primary-nav ul li ul {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 210px; padding: .375rem;
  background: var(--surface);
  border: 1px solid var(--border-green);
  border-radius: var(--r);
  box-shadow: 0 16px 48px rgba(26,31,30,.12);
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 10;
}
.primary-nav ul li:hover > ul,
.primary-nav ul li:focus-within > ul {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.primary-nav ul li ul li > a {
  padding: .55rem .875rem; font-size: .78rem;
  color: var(--ink-mid); display: block;
  border-radius: 2px; text-transform: uppercase; letter-spacing: .06em;
  transition: background var(--t-fast), color var(--t-fast);
}
.primary-nav ul li ul li > a::before { display: none; }
.primary-nav ul li ul li > a:hover { background: var(--green-tint); color: var(--green); }

/* — Hamburger — */
.menu-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; background: none; border: none; cursor: pointer;
  padding: .5rem; border-radius: var(--r);
  transition: background var(--t-fast);
}
.menu-toggle:hover { background: var(--green-tint); }
.menu-toggle span {
  display: block; height: 1.5px; background: var(--ink);
  border-radius: 1px; transition: transform var(--t-mid), opacity var(--t-mid);
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =========================================================
   SITE FOOTER
   ========================================================= */
#colophon {
  background: var(--ink);
  color: rgba(255,255,255,.55);
}

.footer-body {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  padding-block: 3.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

/* Left — sitemap links */
.footer-links {
  display: flex; flex-direction: column; gap: .5rem;
}
.footer-links a {
  font-size: .75rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.42);
  transition: color var(--t-fast), padding-left var(--t-fast);
}
.footer-links a:hover { color: rgba(255,255,255,.9); padding-left: 4px; }

/* Center — contact CTA */
.footer-cta { text-align: center; }
.footer-cta__label {
  font-family: var(--serif);
  font-size: 1.5rem; font-weight: 700;
  color: rgba(255,255,255,.85);
  line-height: 1.3;
  margin-bottom: 1rem;
  display: block;
}
.footer-cta__label em { color: rgba(255,255,255,.45); font-style: italic; }
.footer-cta .btn-primary {
  font-size: .75rem; padding: .65rem 1.5rem;
  background: var(--green-mid); border-color: var(--green-mid);
}
.footer-cta .btn-primary:hover {
  background: var(--green-light); border-color: var(--green-light);
}

/* Right — logo */
.footer-logo { display: flex; justify-content: flex-end; }
.footer-logo a {
  display: inline-flex; align-items: center; gap: .75rem;
  opacity: .55; transition: opacity var(--t-mid);
}
.footer-logo a:hover { opacity: 1; }
.footer-logo .logo-icon {
  background: var(--green-mid);
}
.footer-logo .brand-name { color: rgba(255,255,255,.85); }
.footer-logo .brand-sub  { color: rgba(255,255,255,.35); }

/* Bottom bar */
.footer-bar {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  padding-block: 1.125rem;
  display: flex; align-items: center; justify-content: center;
}
.footer-bar p {
  font-size: .7rem; letter-spacing: .05em;
  color: rgba(255,255,255,.22); margin: 0;
}

/* =========================================================
   SITE CONTENT OFFSET
   ========================================================= */
.site-content { padding-top: var(--hh); }

/* =========================================================
   PAGE HERO (reusable)
   ========================================================= */
.page-banner {
  background: var(--canvas-warm);
  border-bottom: 1px solid var(--border);
  padding-block: clamp(3.5rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 100% at 50% 120%, rgba(30,77,63,.07) 0%, transparent 60%);
  pointer-events: none;
}
.page-banner__eyebrow {
  display: inline-block;
  font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--green); margin-bottom: .875rem;
}
.page-banner h1 { margin-bottom: .75rem; }
.page-banner > .container > p {
  font-size: 1.125rem; max-width: 560px; margin-inline: auto;
}
.divider-green {
  width: 36px; height: 2px; background: var(--green);
  border-radius: 1px; margin: 1.75rem auto 0;
}

/* =========================================================
   GENERIC PAGE CONTENT
   ========================================================= */
.entry-section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.entry-content > * + * { margin-top: 1.25em; }
.entry-content h2, .entry-content h3 { margin-top: 2em; color: var(--green); }
.entry-content a { color: var(--green); border-bottom: 1px solid var(--border-green); }
.entry-content a:hover { color: var(--green-mid); border-bottom-color: var(--green-mid); }

/* =========================================================
   CONTACT FORM
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}
.contact-details h3 { margin-bottom: .6rem; }
.contact-details > p { margin-bottom: 2rem; }

.contact-line {
  display: flex; gap: .875rem; align-items: flex-start;
  margin-bottom: 1.5rem;
}
.contact-line__icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--green-tint);
  border: 1px solid var(--border-green);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
}
.contact-line__icon svg { width: 18px; height: 18px; }
.contact-line__meta { padding-top: 2px; }
.contact-line__key {
  font-size: .65rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-ghost); display: block; margin-bottom: .2rem;
}
.contact-line__val { font-size: 1rem; color: var(--ink-mid); }
.contact-line__val a { color: var(--green-mid); }
.contact-line__val a:hover { color: var(--green); }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: var(--r);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  box-shadow: 0 4px 40px rgba(26,31,30,.055);
}
.form-card h4 { margin-bottom: 1.5rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.125rem; }
.form-label {
  display: block;
  font-size: .67rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: .4rem;
}
.form-input,
.form-textarea {
  width: 100%; padding: .75rem 1rem;
  background: var(--canvas); border: 1.5px solid var(--border);
  border-radius: var(--r); font-size: .9375rem; color: var(--ink);
  outline: none; appearance: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--ink-ghost); }
.form-input:focus, .form-textarea:focus {
  border-color: var(--green); background: var(--surface);
  box-shadow: 0 0 0 3px rgba(30,77,63,.12);
}
.form-textarea { resize: vertical; min-height: 140px; }
.form-footer { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.form-status { font-size: .875rem; margin: 0; }
.form-status.ok  { color: #1c5c3a; }
.form-status.err { color: #9b2626; }

/* =========================================================
   SCROLL-REVEAL
   ========================================================= */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

/* =========================================================
   WP UTILITIES
   ========================================================= */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; word-wrap: normal !important;
}
.aligncenter { display: block; margin: 0 auto; }
.alignleft  { float: left;  margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.wp-caption-text { font-size: .875rem; color: var(--ink-ghost); text-align: center; margin-top: .5rem; }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row     { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .primary-nav {
    position: fixed; inset: var(--hh) 0 0;
    background: var(--canvas); padding: 2rem 1.5rem;
    overflow-y: auto; transform: translateX(101%);
    transition: transform .3s var(--ease);
    z-index: 999;
    flex-direction: column; align-items: stretch;
  }
  .primary-nav.is-open { transform: translateX(0); }

  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav ul li > a {
    padding: .875rem 0; font-size: .9rem;
    border-bottom: 1px solid var(--border); border-radius: 0;
  }
  .primary-nav ul li > a::before { display: none; }
  .primary-nav ul li ul {
    position: static; opacity: 1; visibility: visible;
    transform: none; box-shadow: none;
    border: none; border-left: 2px solid var(--green-tint2);
    padding: .25rem 0 .25rem 1rem; margin-bottom: .25rem;
  }
  .primary-nav ul li ul li > a { border: none; text-transform: uppercase; }

  .footer-body { grid-template-columns: 1fr; text-align: center; padding-block: 3rem; gap: 2.75rem; }
  .footer-links { align-items: center; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 1rem; }
  .footer-logo  { justify-content: center; }
}

@media (max-width: 480px) {
  :root { --hh: 64px; }
  .header-wrap { padding-inline: 1.125rem; }
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero-section {
  min-height: calc(100svh - var(--hh));
  display: flex; align-items: center;
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--canvas);
  overflow: hidden;
  position: relative;
}
.hero-section::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 65% at 90% 45%, rgba(30,77,63,.065) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231e4d3f' fill-opacity='0.026'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4rem;
  position: relative; z-index: 1;
}
.hero-eyebrow {
  font-size: .7rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--green); display: block; margin-bottom: 1rem;
}
.hero-headline {
  margin-bottom: 1.25rem; max-width: 680px;
}
.hero-headline em { font-style: italic; color: var(--green-light); }
.hero-body {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  max-width: 560px; margin-bottom: 2.25rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Decorative geometry */
.hero-deco {
  position: relative; width: 220px; height: 220px; flex-shrink: 0;
}
.deco-hex {
  position: absolute;
  border-radius: 12px;
  background: var(--green-tint);
  border: 1.5px solid var(--border-green);
  transform: rotate(30deg);
}
.deco-hex--1 { width: 140px; height: 140px; top: 10px; left: 10px; }
.deco-hex--2 {
  width: 90px; height: 90px; bottom: 10px; right: 8px;
  background: var(--green-tint2); animation: spin-slow 20s linear infinite;
}
.deco-line {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 1px; height: 80%; background: linear-gradient(to bottom, transparent, var(--border-green), transparent);
}
@keyframes spin-slow { to { transform: rotate(390deg); } }

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-deco  { display: none; }
}
