/**
 * Theme Name: VERO Services
 * Theme URI: https://verosvc.com/
 * Description: Global presentation layer for the VERO Services website. Requires GeneratePress.
 * Author: VERO Services
 * Author URI: https://verosvc.com/
 * Template: generatepress
 * Version: 1.1.0
 * Text Domain: vero-services
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Newsreader:opsz,wght@6..72,400;6..72,500&family=IBM+Plex+Mono:wght@400;500&display=swap');

/*
 * VERO global styles
 *
 * 1. Design tokens
 * 2. Base elements
 * 3. Header and footer
 * 4. Reusable components
 * 5. Accessibility and motion
 */

/* 1. Design tokens
   Used by the GenerateBlocks styles on each page. Change a value here and the
   whole site follows. */
:root {
  --vero-ink: #10202f;          /* near-black navy: headings, primary button, dark sections */
  --vero-slate: #2a3b4c;        /* secondary dark */
  --vero-body: #4a5866;         /* body copy */
  --vero-muted: #6f7c89;        /* labels, captions */
  --vero-line: #dce1e7;         /* hairlines and borders */
  --vero-surface: #f4f6f8;      /* light section background */
  --vero-base: #ffffff;         /* page background */
  --vero-accent: #2f6690;       /* steel blue: eyebrow rules, hover states */
  --vero-accent-light: #8fb3d1; /* accent on dark backgrounds */

  --vero-font-heading: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --vero-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --vero-font-mono: 'IBM Plex Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
}

/* 2. Base elements */
body {
  font-family: var(--vero-font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--vero-body);
  background-color: var(--vero-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--vero-font-heading);
  font-weight: 500;
  color: var(--vero-ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h1 { font-size: clamp(2.125rem, 3.6vw, 3.25rem); }
h2 { font-size: clamp(1.875rem, 2.8vw, 2.5rem); }
h3 { font-size: 1.375rem; }

a {
  color: var(--vero-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
a:hover { color: var(--vero-ink); }

::selection { background: var(--vero-ink); color: #fff; }

/* GeneratePress text blocks already carry their own font-size; make sure they
   inherit the body family unless a block sets its own. */
.gb-text { font-family: inherit; }

/* Smooth in-page anchor scrolling (hero CTA -> contact). */
html { scroll-behavior: smooth; }

/* 3. Header and footer */
.site-header {
  background-color: var(--vero-base);
  border-bottom: 1px solid var(--vero-line);
}
.site-header .inside-header {
  padding-top: 22px;
  padding-bottom: 22px;
}
.main-title {
  font-family: var(--vero-font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
}
.main-title a,
.main-title a:hover,
.main-title a:visited {
  color: var(--vero-ink);
  text-decoration: none;
}
.site-description {
  font-family: var(--vero-font-body);
  font-size: 0.8125rem;
  color: var(--vero-muted);
  margin-top: 4px;
  letter-spacing: 0.01em;
}

.site-footer {
  background-color: var(--vero-base);
  border-top: 1px solid var(--vero-line);
}
.site-info {
  font-size: 0.8125rem;
  color: var(--vero-muted);
  padding-top: 32px;
  padding-bottom: 32px;
}
.site-info a { color: var(--vero-muted); }
.site-info a:hover { color: var(--vero-ink); }

/* 4. Reusable components */
/* Standard button: used by any core Buttons block placed on future pages so it
   matches the GenerateBlocks CTA on the homepage. */
.wp-block-button__link,
.button,
button,
input[type="submit"] {
  font-family: var(--vero-font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  background-color: var(--vero-ink);
  color: #fff;
  border-radius: 2px;
  padding: 16px 28px;
  transition: background-color .2s ease;
}
.wp-block-button__link:hover,
.button:hover,
button:hover,
input[type="submit"]:hover {
  background-color: var(--vero-accent);
  color: #fff;
}

/* Contact form area: light styling for whatever the embedded POWR form renders. */
#contact-form iframe { max-width: 100%; }

/* 6. Homepage adjustments (after desktop/mobile review) */
/* Tighter hero headline on phones. */
@media (max-width: 767px) {
  #hero h1 { font-size: 1.9rem; }
}
/* The contact form container stays hidden until the POWR embed is pasted into it. */
#contact-form:not(:has(*)) { display: none; }

/* 5. Accessibility and motion */
:focus-visible {
  outline: 2px solid var(--vero-accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}
