/*
Theme Name: TechnicalCopy
Theme URI: https://technicalcopy.com/
Author: TechnicalCopy
Author URI: https://technicalcopy.com/
Description: Theme for TechnicalCopy.com. Light neutral palette, generous white space and a rounded accent blue. Home page text, images and links, plus the extra sections on the Writing Samples, About, Pricing, Project Brief and Contact pages, are edited at Appearance > Home Page Content. Writing samples are managed under Portfolio Items.
Version: 2.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: technicalcopy

Icons are adapted from Lucide (https://lucide.dev), ISC License,
Copyright (c) Lucide Contributors.
*/

/* ---------- Tokens ---------- */
:root {
  --ink: #0c121f;
  --ink-soft: #0f192d;
  --muted: #5a6273;
  --line: #e7e9ee;
  --tint: #f4f5f8;
  --tint-2: #f8f8f9;
  --hero-bg: #fbfbfc;
  --accent: #1d4fce;
  --accent-dark: #1640ab;
  --footer-bg: #090d29;
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Rubik', sans-serif;
  color: var(--ink-soft);
  background: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }
h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', sans-serif; margin: 0; color: var(--ink); }
h1, h2, h3 { letter-spacing: -0.5px; }
a { text-decoration: none; color: inherit; }
ul, ol { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
input, textarea, button { font-family: 'Rubik', sans-serif; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[id] { scroll-margin-top: 96px; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
  clip: auto; width: auto; height: auto; z-index: 1000; top: 10px; left: 10px;
  background: #ffffff; padding: 10px 16px; color: var(--accent);
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: 1.5px;
  color: var(--accent); text-transform: uppercase; margin-bottom: 16px;
}
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: 38px; line-height: 1.25; font-weight: 700; }
.section-head .lead { font-size: 17px; line-height: 28px; color: var(--muted); margin: 18px 0 0; }
.section-foot { text-align: center; margin-top: 50px; }

.ph-tile {
  background-image: repeating-linear-gradient(45deg, #dfe2e8, #dfe2e8 10px, #e9ebef 10px, #e9ebef 20px);
  display: flex; align-items: center; justify-content: center;
  color: #8a92a3; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
}
.pill-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #ffffff; font-size: 15px; font-weight: 500;
  padding: 17px 36px; border-radius: 999px; border: 2px solid var(--accent); cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.pill-btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #ffffff; }
.pill-btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--accent); font-size: 15px; font-weight: 500;
  padding: 17px 36px; border-radius: 999px; border: 2px solid var(--accent); cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.pill-btn-outline:hover { background: var(--accent); color: #ffffff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.text-link { color: var(--accent); font-weight: 500; font-size: 15px; }
.text-link:hover { color: var(--accent-dark); }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid #eceef1;
  position: sticky; top: 0; background: #ffffff; z-index: 100;
}
.admin-bar .site-header { top: 32px; }
.site-header .container {
  padding-top: 20px; padding-bottom: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-logo {
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 24px; color: var(--ink);
  letter-spacing: -0.5px; flex-shrink: 0;
}
.site-logo img { max-height: 48px; width: auto; }
.header-right { display: flex; align-items: center; gap: 34px; }
.main-nav ul { list-style: none; display: flex; gap: 30px; align-items: center; padding: 0; margin: 0; }
.main-nav li { position: relative; }
.main-nav a { font-size: 16px; font-weight: 400; color: var(--ink); white-space: nowrap; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--accent); }
.main-nav ul ul {
  display: none; position: absolute; top: 100%; left: 0; flex-direction: column; align-items: stretch;
  background: #ffffff; border: 1px solid #eceef1; padding: 10px 0; min-width: 200px; gap: 0;
  box-shadow: 0 12px 24px rgba(12,18,31,0.08);
}
.main-nav li:hover > ul, .main-nav li:focus-within > ul { display: flex; }
.main-nav ul ul li a { display: block; padding: 8px 18px; }
.header-btn { padding: 11px 26px; font-size: 14px; }
.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 26px; height: 26px; display: block; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--hero-bg); }
.hero-inner {
  max-width: 1240px; margin: 0 auto; position: relative;
  min-height: 640px; padding: 40px 0 120px; display: flex; align-items: center;
}
.hero-content { width: 50%; max-width: 620px; min-width: 0; padding: 60px 40px 60px 24px; }
.hero-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 2px; color: var(--ink); text-transform: uppercase; margin-bottom: 20px; }
.hero-title { font-size: clamp(36px, 3.4vw, 48px); line-height: 1.16; font-weight: 700; margin-bottom: 24px; overflow-wrap: anywhere; }
.hero-title-line { display: block; }
.hero-sub { font-size: 18px; line-height: 29px; color: var(--ink-soft); margin: 0 0 38px; max-width: 520px; }
.hero-photo {
  position: absolute; right: 0; top: 0; bottom: 0; width: 50%; min-width: 260px;
  border-bottom-left-radius: 40px; overflow: hidden;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero--no-photo .hero-inner { min-height: 560px; }

/* Full-width photo that fades in from the left, behind the hero text. */
.hero--fade { overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero--focus-center .hero-bg img { object-position: center center; }
.hero--focus-left .hero-bg img { object-position: left center; }
.hero-fade {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  /* Stops are measured from the page center, where the text column
     ends, so the photo starts the same distance from the text on
     every screen width. */
  background: linear-gradient(90deg, var(--hero-bg) 0, var(--hero-bg) calc(50% - 160px), rgba(251,251,252,0.8) calc(50% - 60px), rgba(251,251,252,0.3) calc(50% + 60px), rgba(251,251,252,0) calc(50% + 200px));
}
.hero--fade .hero-inner { z-index: 1; }
.hero--no-photo .hero-content { width: 100%; max-width: 820px; }
.hero--no-photo .hero-sub { max-width: 640px; }
/* Three cards hidden: drop the bottom space the cards overlapped and
   close the hero with a hairline instead. */
.hero--no-cards { border-bottom: 1px solid var(--line); }
.hero--no-cards .hero-inner { padding-bottom: 40px; min-height: 560px; }
.hero--no-cards.hero--no-photo .hero-inner { min-height: 500px; }

/* ---------- Icon cards (overlap hero) ---------- */
.icon-cards-wrap { max-width: 1240px; margin: -80px auto 0; padding: 0 24px; position: relative; z-index: 2; }
.icon-cards { display: grid; grid-template-columns: repeat(3, 1fr); background: #ffffff; box-shadow: 0 20px 40px rgba(12,18,31,0.04); }
.icon-card { background: #ffffff; border: 1px solid var(--line); padding: 42px 36px 44px; }
.icon-card + .icon-card { border-left: none; }
.icon-cards--2 { grid-template-columns: repeat(2, 1fr); }
.icon-cards--1 { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; }
.icon-card svg { width: 38px; height: 38px; margin-bottom: 24px; color: var(--accent); }
.icon-card h3 { font-size: 20px; line-height: 1.35; font-weight: 600; margin-bottom: 12px; }
.icon-card p { font-size: 15px; line-height: 25px; color: var(--ink-soft); margin: 0; }

/* ---------- Sections (shared) ---------- */
.section { padding: 110px 24px; }
.section.bg-tint { background: var(--tint); }
.section.bg-tint-2 { background: var(--tint-2); }

/* ---------- About ---------- */
.about-grid {
  max-width: 1120px; margin: 0 auto; display: grid;
  grid-template-columns: 5fr 7fr; gap: 80px; align-items: center;
}
.about-grid--no-photo { grid-template-columns: 1fr; max-width: 760px; }
.about-photo { aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-copy h2 { font-size: 38px; line-height: 1.25; font-weight: 700; margin-bottom: 24px; }
.about-copy p { font-size: 17px; line-height: 29px; color: var(--ink-soft); margin: 0 0 20px; }
.about-copy .pill-btn-outline { margin-top: 14px; }

/* ---------- Box grids (Why + Services) ---------- */
/* Three per row on desktop; a shorter last row is centered. */
.box-grid {
  max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap;
  justify-content: center; gap: 24px;
}
.box-grid > * { flex: 0 1 calc((100% - 48px) / 3); }
.why-item {
  background: #ffffff; border: 1px solid var(--line); border-radius: 10px;
  padding: 32px 30px 34px;
}
.why-item svg { width: 30px; height: 30px; color: var(--accent); margin-bottom: 18px; }
.why-item p { font-size: 16px; line-height: 27px; color: var(--ink); margin: 0; }
.service-item {
  background: #ffffff; border: 1px solid var(--line); border-top: 3px solid var(--accent);
  padding: 34px 30px 36px;
}
.service-item h3 { font-size: 19px; line-height: 1.35; font-weight: 600; margin-bottom: 12px; }
.service-item p { font-size: 15px; line-height: 25px; color: var(--ink-soft); margin: 0; }

/* ---------- Industries ---------- */
.industries { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 90px 24px; }
.industries .section-head { margin-bottom: 40px; }
.industries .section-head h2 { font-size: 30px; }
.industry-list {
  list-style: none; padding: 0; margin: 0 auto; max-width: 1000px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
}
.industry-list li {
  border: 1px solid #d9dce4; border-radius: 999px; padding: 12px 24px;
  font-size: 15px; color: var(--ink); background: #ffffff;
}

/* ---------- Samples ---------- */
.sample-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.sample-card {
  background: #ffffff; border: 1px solid #eceef1; border-radius: 8px; overflow: hidden;
  display: flex; flex-direction: column;
}
.sample-thumb { display: block; height: 210px; overflow: hidden; }
.sample-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sample-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.sample-body .cat {
  font-size: 12px; font-weight: 600; letter-spacing: 0.6px; color: #7a8194;
  text-transform: uppercase; margin-bottom: 8px;
}
.sample-body h3 { font-size: 19px; line-height: 1.35; font-weight: 600; margin-bottom: 10px; }
.sample-body p { font-size: 15px; line-height: 24px; color: var(--ink-soft); margin: 0 0 18px; }
.sample-body .text-link { margin-top: auto; }
.empty-note {
  max-width: 640px; margin: 0 auto; padding: 36px 30px; background: #ffffff; border: 1px solid #eceef1;
  border-radius: 8px; font-size: 16px; line-height: 26px; color: #4b5262; text-align: center;
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  max-width: 1120px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; align-items: start;
}
.testimonial {
  margin: 0; background: #ffffff; border: 1px solid var(--line); border-radius: 12px;
  padding: 48px 44px 42px; position: relative;
}
.testimonial .quote-mark { width: 34px; height: 34px; color: var(--accent); margin-bottom: 22px; }
.testimonial blockquote { margin: 0 0 28px; font-size: 16px; line-height: 28px; color: var(--ink); }
.testimonial figcaption { border-top: 1px solid var(--line); padding-top: 22px; }
.testimonial .t-name { display: block; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 16px; color: var(--ink); }
.testimonial .t-role { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ---------- Blog teaser ---------- */
.post-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { border: 1px solid #eceef1; border-radius: 8px; overflow: hidden; background: #ffffff; display: flex; flex-direction: column; }
.post-card .post-thumb { height: 200px; }
.post-card .post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .post-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.post-card time { font-size: 13px; color: #7a8194; margin-bottom: 10px; display: block; }
.post-card h3 { font-size: 19px; line-height: 1.35; font-weight: 600; margin-bottom: 10px; }
.post-card h3 a:hover { color: var(--accent); }
.post-card p { font-size: 15px; line-height: 24px; color: var(--ink-soft); margin: 0 0 18px; }
.post-card .text-link { margin-top: auto; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { background: #ffffff; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 14px; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 22px 60px 22px 26px; position: relative;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 17px; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 26px; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 400; color: var(--accent);
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-answer { padding: 0 26px 22px; font-size: 16px; line-height: 27px; color: var(--ink-soft); }
.faq-answer p { margin: 0 0 12px; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- Editor-only placeholder notes ---------- */
.placeholder-note {
  border: 2px dashed #b9c3dc; background: #f5f7fc; color: #4b5262;
  font-size: 14px; line-height: 22px; border-radius: 8px; padding: 14px 16px;
}
.faq-answer.placeholder-note { margin: 0 26px 22px; }
.draft-tag {
  display: inline-block; margin-left: 10px; padding: 2px 10px; border-radius: 999px; vertical-align: middle;
  background: #fff4d6; color: #7a5a00; font-family: 'Rubik', sans-serif; font-size: 12px; font-weight: 500;
}

.section.bordered-top { border-top: 1px solid var(--line); }

/* ---------- Contact ---------- */
.contact-section { background: var(--tint-2); }
.contact-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 2fr; }
.contact-info { background: #f1f1f5; padding: 110px 40px; }
.contact-info h3 { font-size: 20px; line-height: 30px; font-weight: 600; margin-bottom: 28px; }
.contact-info dl { margin: 0; }
.contact-info dt { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #7a8194; margin-bottom: 6px; }
.contact-info dd { margin: 0 0 26px; font-size: 16px; line-height: 25px; color: var(--ink); overflow-wrap: anywhere; }
.contact-info dd a { color: var(--accent); }
.contact-info p { font-size: 15px; line-height: 24px; color: var(--muted); margin: 0; }
.contact-info .booking { margin-top: 34px; }
.contact-info .booking p { margin-bottom: 16px; color: var(--ink); }
.contact-info .booking .pill-btn-outline { padding: 14px 28px; }
.contact-form-wrap { padding: 110px 48px 104px; }
.contact-form-wrap h2 { font-size: 38px; line-height: 1.25; font-weight: 700; margin-bottom: 30px; }
.contact-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.contact-form-wrap label { display: block; }
.contact-fields input, .contact-form-wrap textarea {
  padding: 15px 16px; border: 1px solid #d8d9df; background: #ffffff; font-size: 15px; width: 100%;
  border-radius: 6px; color: var(--ink);
}
.contact-fields input:focus, .contact-form-wrap textarea:focus { border-color: var(--accent); outline: none; }
.contact-form-wrap textarea { margin-bottom: 22px; resize: vertical; min-height: 150px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { padding: 14px 18px; margin-bottom: 22px; font-size: 15px; border-radius: 6px; }
.form-notice.is-success { background: #e7f4ea; color: #1c6b34; }
.form-notice.is-error { background: #fdecec; color: #9b1c1c; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: #ffffff; padding: 80px 24px 0; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-bottom: 56px; }
.footer-grid h3 { font-size: 16px; font-weight: 600; margin-bottom: 18px; color: #ffffff; }
.footer-grid p { font-size: 14px; line-height: 24px; color: #c3c7d1; margin: 0 0 14px; max-width: 360px; }
.footer-grid p strong { color: #ffffff; font-weight: 500; }
.footer-logo { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 22px; margin-bottom: 16px; display: inline-block; }
.footer-link { display: block; font-size: 14px; color: #c3c7d1; margin-bottom: 12px; }
.footer-link:hover, .footer-grid p a:hover { color: #ffffff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding: 24px 0; max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #c3c7d1;
}
.footer-bottom a { color: #c3c7d1; }
.footer-bottom a:hover { color: #ffffff; }

/* ---------- Generic inner pages & blog ---------- */
.inner-page { padding: 90px 24px 120px; background: #ffffff; }
.inner-page .container { max-width: 860px; }
.inner-page h1 { font-size: 42px; line-height: 1.2; font-weight: 700; margin-bottom: 30px; }
.inner-page .entry-content { font-size: 17px; line-height: 30px; color: #333c4d; }
.inner-page .entry-content p { margin: 0 0 22px; }
.inner-page .entry-content a { color: var(--accent); text-decoration: underline; }
.inner-page .entry-content h2 { font-size: 28px; font-weight: 700; margin: 44px 0 18px; }
.inner-page .entry-content h3 { font-size: 22px; font-weight: 600; margin: 34px 0 14px; }
.inner-page .entry-content img { border-radius: 6px; margin: 24px 0; }
.inner-page .entry-content ul, .inner-page .entry-content ol { padding-left: 24px; margin: 0 0 22px; }
.inner-page .entry-content blockquote { margin: 28px 0; padding-left: 22px; border-left: 3px solid var(--accent); }
.post-meta { font-size: 14px; color: #7a8194; margin: -14px 0 32px; }
.single-thumb { margin: 0 0 36px; border-radius: 8px; overflow: hidden; }
.archive-item { padding: 0 0 40px; margin: 0 0 40px; border-bottom: 1px solid #eceef1; }
.archive-thumb { display: block; margin: 0 0 24px; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 9; }
.archive-thumb img { width: 100%; height: 100%; object-fit: cover; }
.archive-item h2 { font-size: 28px; line-height: 1.3; font-weight: 700; margin-bottom: 8px; }
.archive-item h2 a:hover { color: var(--accent); }
.archive-item .post-meta { margin: 0 0 14px; }
.nav-links { display: flex; gap: 16px; font-size: 15px; }
.nav-links a, .nav-links span { color: var(--accent); }
.inner-page .empty-note { margin: 0; max-width: none; text-align: left; }
.back-link { display: inline-block; margin-top: 30px; color: var(--accent); font-size: 15px; }

/* ---------- Writing Samples page (template-portfolio.php) ---------- */
/* Same structure as ledetimecopywriting.com/samples: centered heading
   and intro, two columns of cards, a quote and a call to action. */
.samples-hero { background: var(--hero-bg); border-bottom: 1px solid var(--line); padding: 90px 24px 70px; text-align: center; }
.samples-hero-inner { max-width: 760px; margin: 0 auto; }
.samples-hero h1 { font-size: 48px; line-height: 1.15; font-weight: 700; margin-bottom: 22px; }
.samples-intro { font-size: 18px; line-height: 29px; color: var(--ink-soft); }
.samples-intro p { margin: 0; }

.samples-list { padding: 80px 24px 100px; }
.samples-columns { max-width: 1200px; margin: 0 auto; display: flex; gap: 30px; align-items: flex-start; }
.samples-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 30px; }

/* Card values copied from ledetimecopywriting.com/samples:
   1px #e5e7eb border, 8px corners, Tailwind "shadow-md" drop shadow,
   a 5px lift on hover over 0.3s, and a 1px #cbd5e0 divider line
   between the image and the text, inset to line up with the text. */
.sample-full {
  background: #ffffff; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.sample-full:hover { transform: translateY(-5px); }
.sample-full-thumb { display: block; aspect-ratio: 16 / 9; background: #ffffff; }
.sample-full-thumb img { width: 100%; height: 100%; object-fit: contain; }
.sample-divider { border: 0; border-top: 1px solid #cbd5e0; margin: 4px 28px 0; height: 0; }
.sample-full-body { padding: 18px 28px 28px; font-size: 15px; line-height: 25px; color: var(--ink-soft); }
.sample-full-body p { margin: 0 0 10px; }
.sample-full-body strong { color: var(--ink); font-weight: 600; }
.sample-full-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.sample-full-body a:hover { color: var(--accent-dark); }
.sample-full-body em { color: var(--muted); }
.sample-shots { display: flex; gap: 6px; margin-top: 4px; }
.sample-shots a { flex: 1; min-width: 0; border: 1px solid #e2e8f0; border-radius: 4px; overflow: hidden; cursor: zoom-in; }
.sample-shots img { width: 100%; height: auto; }

.samples-quote { background: var(--tint); padding: 90px 24px; text-align: center; }
.samples-quote blockquote { max-width: 860px; margin: 0 auto; }
.samples-quote p { font-family: 'Poppins', sans-serif; font-size: 28px; line-height: 1.5; font-weight: 500; font-style: italic; color: var(--ink); margin: 0 0 18px; }
.samples-quote footer { font-size: 18px; color: var(--muted); }

.samples-cta { background: var(--accent); color: #ffffff; padding: 80px 24px; text-align: center; }
.samples-cta h2 { color: #ffffff; font-size: 34px; line-height: 1.25; font-weight: 700; margin-bottom: 18px; }
.samples-cta p { max-width: 640px; margin: 0 auto 32px; font-size: 17px; line-height: 28px; color: rgba(255,255,255,0.88); }
.samples-cta .samples-cta-btn { background: #ffffff; border-color: #ffffff; color: var(--accent); font-weight: 600; }
.samples-cta .samples-cta-btn:hover { background: var(--ink); border-color: var(--ink); color: #ffffff; }

.lightbox {
  position: fixed; inset: 0; z-index: 2000; background: rgba(9,13,41,0.88);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; border-radius: 6px; background: #ffffff; }
.lightbox-close {
  position: absolute; top: 18px; right: 22px; background: none; border: 0; cursor: pointer;
  color: #ffffff; font-size: 40px; line-height: 1;
}

/* ---------- Page heading band (About, Pricing, Project Brief, 404) ---------- */
.page-hero { background: var(--hero-bg); border-bottom: 1px solid var(--line); padding: 90px 24px 70px; text-align: center; }
.page-hero-inner { max-width: 760px; margin: 0 auto; }
.page-hero h1 { font-size: 48px; line-height: 1.15; font-weight: 700; margin-bottom: 22px; }
.page-intro { font-size: 18px; line-height: 29px; color: var(--ink-soft); }
.page-intro p { margin: 0 0 12px; }
.page-intro p:last-child { margin-bottom: 0; }
.page-intro a { color: var(--accent); text-decoration: underline; }

/* Second button on the blue call-to-action band. */
.page-cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.samples-cta .page-cta-outline { border-color: #ffffff; color: #ffffff; font-weight: 600; }
.samples-cta .page-cta-outline:hover { background: #ffffff; color: var(--accent); }

/* ---------- About page (template-about.php) ---------- */
.about-page-main { padding: 100px 24px 110px; }
.about-page-grid {
  max-width: 1120px; margin: 0 auto; display: grid;
  grid-template-columns: 5fr 7fr; gap: 80px; align-items: start;
}
.about-page-grid--no-photo { grid-template-columns: 1fr; max-width: 760px; }
.about-page-photo-col { position: sticky; top: 120px; }
.about-page-copy h1 { font-size: 44px; line-height: 1.15; font-weight: 700; margin-bottom: 28px; }
.about-page-copy .entry-content { font-size: 17px; line-height: 30px; color: #333c4d; }
.about-page-copy .entry-content p { margin: 0 0 22px; }
.about-page-copy .entry-content h2 { font-size: 26px; line-height: 1.3; font-weight: 700; margin: 42px 0 16px; }
.about-page-copy .entry-content h3 { font-size: 21px; font-weight: 600; margin: 32px 0 12px; }
.about-page-copy .entry-content ul, .about-page-copy .entry-content ol { padding-left: 24px; margin: 0 0 22px; }
.about-page-copy .entry-content a { color: var(--accent); text-decoration: underline; }

.certs-section .section-head { margin-bottom: 40px; }
.certs-section .section-head h2 { font-size: 30px; }
.cert-list {
  list-style: none; padding: 0; margin: 0 auto; max-width: 1000px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 24px;
}
.cert-item {
  flex: 0 1 300px; background: #ffffff; border: 1px solid var(--line); border-radius: 10px;
  padding: 30px 26px; transition: border-color 0.2s ease;
}
.cert-item, .cert-item > a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.cert-item > a { width: 100%; }
.cert-item:has(a):hover { border-color: var(--accent); }
.cert-item svg { width: 34px; height: 34px; color: var(--accent); }
.cert-badge { max-height: 120px; width: auto; }
.cert-label { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 16px; line-height: 1.4; color: var(--ink); }
.cert-verify { font-size: 14px; font-weight: 500; color: var(--accent); }

/* ---------- Pricing page (template-pricing.php) ---------- */
.price-group { padding: 80px 24px; }
.price-group.bg-tint { background: var(--tint); }
.price-group-title { max-width: 1120px; margin: 0 auto 36px; font-size: 30px; line-height: 1.25; font-weight: 700; text-align: center; }
.price-grid {
  max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap;
  justify-content: center; gap: 24px;
}
.price-grid > * { flex: 0 1 calc((100% - 48px) / 3); }
/* Four services sit two by two instead of three plus one. */
.price-grid--pairs { max-width: 760px; }
.price-grid--pairs > * { flex-basis: calc((100% - 24px) / 2); }
.price-card {
  background: #ffffff; border: 1px solid var(--line); border-top: 3px solid var(--accent);
  padding: 32px 30px 34px; display: flex; flex-direction: column;
}
.price-card h3 { font-size: 19px; line-height: 1.35; font-weight: 600; margin-bottom: 12px; }
.price-amount { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 25px; line-height: 1.3; color: var(--accent); margin: 0 0 18px; letter-spacing: -0.3px; }
.price-unit { font-family: 'Rubik', sans-serif; font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; white-space: nowrap; }
.price-text { font-size: 15px; line-height: 25px; color: var(--ink-soft); margin: 0; padding-top: 18px; border-top: 1px solid var(--line); }
.price-note { text-align: center; font-size: 14px; color: var(--muted); margin: 0; padding: 34px 24px 0; }
.terms-section .section-head { margin-bottom: 44px; }
.term-item h3 { font-size: 18px; line-height: 1.35; font-weight: 600; margin-bottom: 10px; }
.term-item p { font-size: 15px; line-height: 25px; color: var(--ink-soft); }

/* ---------- Project Brief page (template-brief.php) ---------- */
.brief-section { padding: 70px 24px 110px; }
.brief-wrap { max-width: 860px; margin: 0 auto; }
.brief-form fieldset {
  border: 1px solid var(--line); border-radius: 10px; background: #ffffff;
  padding: 26px 32px 32px; margin: 0 0 28px; min-width: 0;
}
.brief-form legend {
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 20px; color: var(--ink);
  padding: 0 10px; margin-left: -10px;
}
.brief-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.brief-grid .span-2 { grid-column: 1 / -1; }
.brief-grid + .brief-question, .brief-question + .brief-grid { margin-top: 24px; }
.brief-form legend + * { margin-top: 10px; }
.brief-form label > span, .brief-q { display: block; font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.brief-q { margin-bottom: 12px; }
.brief-form input[type="text"], .brief-form input[type="email"], .brief-form select, .brief-form textarea {
  width: 100%; padding: 13px 14px; border: 1px solid #d8d9df; border-radius: 6px; background: #ffffff;
  font-family: 'Rubik', sans-serif; font-size: 15px; color: var(--ink);
}
.brief-form textarea { resize: vertical; }
.brief-form select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a6273' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
.brief-form input:focus, .brief-form select:focus, .brief-form textarea:focus { border-color: var(--accent); outline: none; }
.brief-form ::placeholder { color: #9aa1b0; }
.brief-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.brief-form .check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 22px; color: var(--ink-soft); cursor: pointer; }
.brief-form .check input { width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--accent); }
.req { color: #b42318; font-style: normal; }
.brief-required { font-size: 14px; color: var(--muted); margin: 0 0 22px; }

/* ---------- 404 ---------- */
.notfound-hero { padding: 130px 24px 140px; border-bottom: 0; }
.notfound-links { justify-content: center; margin-top: 34px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .box-grid > *, .price-grid > * { flex-basis: calc((100% - 24px) / 2); }
  .main-nav ul { gap: 22px; }
  .header-right { gap: 24px; }
}

@media (max-width: 900px) {
  .admin-bar .site-header { top: 46px; }
  .nav-toggle { display: block; }
  .header-btn { display: none; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #ffffff; border-bottom: 1px solid #eceef1; padding: 10px 24px 24px;
    box-shadow: 0 16px 24px rgba(12,18,31,0.06);
  }
  .nav-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav li a { display: block; padding: 13px 0; border-bottom: 1px solid #f0f1f4; }
  .main-nav ul ul { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 0 16px; }
  .main-nav .mobile-cta a { color: var(--accent); font-weight: 500; border-bottom: 0; }

  .hero-photo { display: none; }
  .hero-inner { min-height: 0; padding: 0; }
  .hero-content { width: 100%; max-width: 100%; padding: 70px 24px 60px; }
  .hero--no-photo .hero-inner, .hero--no-cards .hero-inner { min-height: 0; padding-bottom: 0; }
  .hero--fade .hero-inner { min-height: 0; }
  .hero--fade .hero-fade { background: rgba(251,251,252,0.92); }
  .icon-cards-wrap { margin-top: 0; }
  .icon-cards { grid-template-columns: 1fr; box-shadow: none; }
  .icon-card + .icon-card { border-left: 1px solid var(--line); border-top: none; }

  .section { padding: 80px 24px; }
  .industries { padding: 70px 24px; }
  .section-head { margin-bottom: 40px; }
  .section-head h2, .about-copy h2, .contact-form-wrap h2 { font-size: 30px; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-photo { max-width: 420px; }
  .sample-grid, .post-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { padding: 70px 24px 30px; }
  .contact-form-wrap { padding: 50px 24px 80px; }
  .contact-fields { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .testimonial { padding: 38px 30px 34px; }
  .samples-columns { flex-direction: column; gap: 28px; }
  .samples-col { width: 100%; gap: 28px; }
  .samples-hero { padding: 64px 24px 50px; }
  .samples-hero h1 { font-size: 36px; }
  .samples-list { padding: 50px 20px 70px; }
  .samples-quote p { font-size: 22px; }
  .samples-cta h2 { font-size: 28px; }
  .icon-cards--2 { grid-template-columns: 1fr; }

  .page-hero { padding: 64px 24px 50px; }
  .page-hero h1 { font-size: 36px; }
  .about-page-main { padding: 60px 24px 70px; }
  .about-page-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-page-photo-col { position: static; max-width: 420px; }
  .about-page-copy h1 { font-size: 36px; }
  .price-group { padding: 60px 20px; }
  .price-group-title, .certs-section .section-head h2 { font-size: 26px; }
  .brief-section { padding: 50px 20px 80px; }
  .brief-form fieldset { padding: 22px 20px 26px; }
  .notfound-hero { padding: 90px 24px 100px; }
}

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

@media (max-width: 640px) {
  .sample-grid, .post-grid { grid-template-columns: 1fr; }
  .box-grid > *, .price-grid > * { flex-basis: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .brief-grid, .brief-checks { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 32px; }
  .hero-title { font-size: 34px; }
  .inner-page h1 { font-size: 32px; }
}

@media (max-width: 420px) {
  .hero-title { font-size: 30px; }
  .pill-btn, .pill-btn-outline { padding: 15px 28px; }
}
