/*
Theme Name: Sterling Group
Theme URI: https://thesterlingroup.com/
Author: Sterling Group, Inc.
Description: A custom one-page WordPress theme for Sterling Group, Inc.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: sterling-group
*/

:root {
  --ink: #073f58;
  --ink-2: #075a76;
  --bone: #fbf8f5;
  --accent: #0c9fce;
  --sky: #62b4d5;
  --taupe: #aa8d86;
  --line: rgba(170, 141, 134, 0.52);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.site-header {
  min-height: 88px;
  padding: 12px 3.5vw;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 42px;
  background: #fff;
  color: var(--ink);
  border-bottom: 3px solid var(--accent);
  position: relative;
  z-index: 10;
}
.brand-lockup {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: Georgia, "Times New Roman", serif;
  text-transform: uppercase; letter-spacing: .2em; font-size: 18px; white-space: nowrap;
}
.brand-lockup img { width: 29px; height: 58px; object-fit: contain; }
.site-nav ul { display: flex; gap: 38px; margin: 0; padding: 0; list-style: none; }
.site-nav a, .site-footer a { position: relative; font-size: 14px; letter-spacing: .04em; }
.site-nav a::after, .footer-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 1px;
  background: var(--sky); transition: right .25s ease;
}
.site-nav a:hover::after, .footer-links a:hover::after { right: 0; }
.nav-cta {
  color: #fff; background: var(--ink); border: 1px solid var(--ink); padding: 12px 18px;
  text-transform: uppercase; font-size: 11px; letter-spacing: .12em;
}
.nav-cta:hover { background: var(--ink-2); border-color: var(--ink-2); }

.hero {
  min-height: 690px; display: grid; grid-template-columns: 48% 52%;
  background: var(--ink); color: var(--bone);
}
.hero-copy {
  padding: clamp(70px, 8vw, 118px) 4vw 82px;
  display: flex; flex-direction: column; justify-content: center;
  background: radial-gradient(circle at 75% 40%, #075a76 0, var(--ink) 55%);
}
.eyebrow, .section-label {
  margin: 0 0 28px; color: var(--accent); text-transform: uppercase;
  letter-spacing: .14em; font-size: 12px; font-weight: 600; line-height: 1.5;
}
.hero h1 {
  max-width: 760px; margin: 0; font-family: Georgia, "Times New Roman", serif;
  font-weight: 400; font-size: clamp(52px, 5.4vw, 80px); line-height: 1.04; letter-spacing: -.035em;
}
.hero-deck {
  max-width: 630px; margin: 34px 0 0; color: #d9eef4;
  font-size: clamp(17px, 1.4vw, 21px); line-height: 1.72;
}
.hero-actions { display: flex; gap: 20px; margin-top: 38px; }
.button {
  display: inline-flex; justify-content: center; align-items: center; min-height: 54px;
  padding: 0 27px; border: 1px solid var(--accent); font-size: 13px;
  font-weight: 700; letter-spacing: .04em; transition: .22s ease;
}
.button-primary { background: var(--accent); color: #fff; }
.button-secondary { color: var(--sky); border-color: var(--sky); }
.button:hover { transform: translateY(-2px); filter: brightness(.94); }
.button-secondary:hover { background: rgba(98,180,213,.12); }
.hero-image {
  min-height: 690px;
  background: linear-gradient(90deg, rgba(7,63,88,.18), transparent 30%),
    url("assets/images/sterling-hero.png") center/cover no-repeat,
    linear-gradient(140deg, #073f58 0 42%, #cbb8ae 42% 67%, #aa8d86 67%);
}

.credential-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 42px 3.5vw; background: #fff; border-top: 3px solid var(--accent);
}
.credential-strip > div { min-height: 104px; padding: 10px 4vw 4px; border-left: 1px solid var(--line); }
.credential-strip > div:first-child { border-left: 0; padding-left: 0; }
.credential-strip p {
  color: var(--ink); text-transform: uppercase; letter-spacing: .09em;
  font-size: 12px; font-weight: 700; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.credential-strip h2 { color: #315968; font-weight: 400; font-size: clamp(21px, 2vw, 29px); max-width: 410px; }

.section { padding: 120px 7vw; }
.intro { display: grid; grid-template-columns: 1fr 3fr; gap: 5vw; }
.intro-copy { max-width: 980px; }
.intro h2, .section-heading h2, .network h2, .contact h2 {
  font-family: Georgia, "Times New Roman", serif; font-weight: 400;
  font-size: clamp(40px, 4.3vw, 64px); line-height: 1.08; letter-spacing: -.035em; margin: 0;
}
.intro-copy > p, .section-heading > p {
  max-width: 710px; margin: 32px 0 0; color: #526973; font-size: 18px; line-height: 1.75;
}
.path-table { margin: 0 7vw 120px; border-top: 2px solid var(--accent); }
.path-head, .path-row {
  display: grid; grid-template-columns: 1fr 2fr .8fr; gap: 35px;
  padding: 22px 0; border-bottom: 1px solid #cfc8bb;
}
.path-head {
  color: var(--ink-2); text-transform: uppercase; letter-spacing: .12em;
  font-size: 11px; font-weight: 700;
}
.path-row { align-items: center; color: #526973; line-height: 1.5; }
.path-row strong { font-family: Georgia, serif; color: var(--ink); font-size: 21px; font-weight: 400; }

.dark-section { background: var(--ink); color: var(--bone); }
.section-heading { display: grid; grid-template-columns: 1.25fr 1fr; gap: 7vw; align-items: end; }
.dark-section .section-heading > p { color: #b9bcb7; }
.client-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 72px; border-top: 1px solid var(--line); }
.client-grid article { padding: 38px 38px 20px 0; border-right: 1px solid var(--line); }
.client-grid article + article { padding-left: 38px; }
.client-grid article:last-child { border-right: 0; }
.client-grid span, .service-number { color: var(--sky); font-family: Georgia, serif; font-size: 15px; }
.client-grid h3 { margin: 36px 0 18px; font-family: Georgia, serif; font-size: 30px; font-weight: 400; }
.client-grid h4 { color: #d9d7d0; font-size: 16px; line-height: 1.55; }
.client-grid p { color: #aeb3ad; line-height: 1.7; font-size: 15px; }

.services .section-heading { margin-bottom: 75px; }
.service-list { border-top: 1px solid #bdb3a2; }
.service-card {
  display: grid; grid-template-columns: 65px 1.2fr 1fr; gap: 4vw;
  padding: 45px 0; border-bottom: 1px solid #cfc8bb;
}
.service-card h3 { margin: 0 0 16px; font-family: Georgia, serif; font-size: 30px; font-weight: 400; }
.service-card p, .service-card li { color: #526973; line-height: 1.7; }
.service-card p { max-width: 570px; margin: 0; }
.service-card ul { margin: 0; padding: 0; list-style: none; }
.service-card li { padding: 8px 0 8px 20px; position: relative; border-bottom: 1px solid rgba(98,180,213,.32); }
.service-card li::before { content: "—"; color: var(--accent); position: absolute; left: 0; }

.network { padding-top: 0; }
.network-card { padding: 90px 8vw; background: #075a76; color: var(--bone); position: relative; overflow: hidden; }
.network-card::after {
  content: ""; position: absolute; width: 320px; height: 620px; top: -180px; right: 5%;
  border: 1px solid rgba(98,180,213,.38); transform: rotate(28deg);
}
.network h2 { max-width: 820px; }
.network-card > p:not(.eyebrow) {
  max-width: 730px; color: #d8ebf1; font-size: 17px; line-height: 1.75;
  position: relative; z-index: 1;
}
.track { background: #fff; }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 70px; }
.case-grid article { background: var(--bone); padding: 38px; border-top: 4px solid var(--accent); }
.case-top { display: flex; justify-content: flex-end; gap: 20px; color: var(--ink); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.case-top b { color: var(--ink-2); }
.case-type { margin-top: 70px; color: var(--taupe); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.case-grid h3 { font-family: Georgia, serif; font-size: 33px; line-height: 1.2; font-weight: 400; max-width: 500px; }
.case-grid article > p:last-child { color: #526973; line-height: 1.7; }

.contact {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8vw;
  background: var(--ink); color: var(--bone);
}
.contact-copy > p:not(.eyebrow) { color: #d5e8ee; font-size: 18px; line-height: 1.75; max-width: 650px; }
.contact-details {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  margin-top: 60px; padding-top: 28px; border-top: 1px solid var(--line);
}
.contact-details strong { font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 400; }
.contact-details span { color: #d5e8ee; font-size: 15px; }
.contact-details a { color: var(--sky); font-size: 15px; border-bottom: 1px solid transparent; }
.contact-details a:hover { border-color: var(--sky); }
.contact-form { display: flex; flex-direction: column; gap: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label {
  display: flex; flex-direction: column; gap: 9px; color: #d7d7d0;
  font-size: 12px; text-transform: uppercase; letter-spacing: .1em;
}
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--sky); border-radius: 0;
  padding: 12px 2px; background: transparent; color: var(--bone);
  font: 16px Arial, sans-serif; outline: none;
}
.contact-form select { background: var(--ink); }
.contact-form textarea { border: 1px solid var(--sky); padding: 14px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--accent); }
.contact-form button { align-self: flex-start; cursor: pointer; }
.form-status { padding: 13px 16px; border-left: 3px solid var(--accent); background: rgba(255,255,255,.08); line-height: 1.5; }
.form-status.error { border-color: #e59d8f; }
.hp-field { position: absolute !important; left: -9999px !important; }

.site-footer {
  min-height: 170px; padding: 28px 3.5vw; display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 30px; background: #fff; color: var(--ink); border-top: 4px solid var(--accent);
}
.footer-logo img { width: 95px; height: 116px; object-fit: contain; display: block; }
.site-footer p { font-size: 12px; }
.footer-links { display: flex; justify-content: flex-end; gap: 28px; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: reveal .65s both cubic-bezier(.2,.7,.2,1); }
  .hero-copy > *:nth-child(2) { animation-delay: .08s; }
  .hero-copy > *:nth-child(3) { animation-delay: .15s; }
  .hero-copy > *:nth-child(4) { animation-delay: .22s; }
  .hero-image { animation: fade 1s both; }
  @keyframes reveal { from { opacity: 0; transform: translateY(12px); } }
  @keyframes fade { from { opacity: 0; } }
}

@media (max-width: 1000px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 650px; }
  .hero-image { min-height: 460px; }
  .credential-strip { grid-template-columns: 1fr; }
  .credential-strip > div, .credential-strip > div:first-child { padding: 25px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .section-heading, .contact { grid-template-columns: 1fr; }
  .section-heading { gap: 20px; }
  .client-grid { grid-template-columns: 1fr; }
  .client-grid article, .client-grid article + article { padding: 35px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .service-card { grid-template-columns: 45px 1fr; }
  .service-card ul { grid-column: 2; }
  .site-footer { grid-template-columns: 1fr; text-align: center; }
  .footer-logo { margin: 0 auto; }
  .footer-links { justify-content: center; }
}

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

@media (max-width: 680px) {
  .site-header { min-height: 74px; padding: 8px 20px; }
  .brand-lockup span { display: none; }
  .brand-lockup img { width: 25px; height: 52px; }
  .nav-cta { padding: 10px 11px; font-size: 9px; }
  .hero-copy { padding: 65px 22px; min-height: 620px; }
  .hero h1 { font-size: 46px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-image { min-height: 330px; }
  .credential-strip { padding: 25px 22px; }
  .section { padding: 85px 22px; }
  .intro { grid-template-columns: 1fr; gap: 20px; }
  .path-table { margin: 0 22px 85px; }
  .path-head { display: none; }
  .path-row { grid-template-columns: 1fr; gap: 10px; }
  .path-row span:last-child { color: #897756; font-size: 13px; }
  .service-card { grid-template-columns: 1fr; gap: 16px; }
  .service-card ul { grid-column: 1; }
  .network-card { padding: 65px 25px; }
  .case-grid { grid-template-columns: 1fr; }
  .case-grid article { padding: 28px; }
  .case-top { flex-direction: column; }
  .case-type { margin-top: 45px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
}
/* Accessibility: improve text and button contrast */
.button.button-primary {
    background-color: #006b8f;
    border-color: #006b8f;
    color: #ffffff;
}

.section-label,
.service-number,
.path-table span {
    color: #594b47;
}

.hero .eyebrow,
.dark-section .section-label,
.dark-section .eyebrow,
.network-card .eyebrow,
.contact-section .eyebrow {
    color: #8fd8f2;
}
/* Shared interior-page hero and content styling */
.interior-page {
    background: var(--bone);
}

.interior-hero {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    display: flex;
    align-items: flex-end;
    padding: clamp(100px, 11vw, 160px) 4vw clamp(56px, 7vw, 88px);
    background:
        radial-gradient(circle at 72% 30%, var(--ink-2) 0, var(--ink) 58%);
    color: var(--bone);
}

.interior-hero::after {
    content: "";
    position: absolute;
    inset: 0 0 0 58%;
    background:
        linear-gradient(135deg, transparent 0 38%, rgba(143, 216, 242, 0.12) 38% 39%, transparent 39%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.04), rgba(7, 63, 88, 0.3));
    border-left: 1px solid rgba(143, 216, 242, 0.22);
    pointer-events: none;
}

.interior-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    margin: 0 auto;
}

.interior-hero .eyebrow {
    margin: 0 0 22px;
    color: #8fd8f2;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.interior-hero h1 {
    max-width: 900px;
    margin: 0;
    color: var(--bone);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(46px, 6vw, 82px);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.interior-content {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding-top: clamp(56px, 7vw, 96px);
    padding-bottom: clamp(72px, 9vw, 120px);
}

.interior-content h2 {
    max-width: 850px;
    margin: 48px 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.interior-content h2:first-child {
    margin-top: 0;
}

.interior-content h3 {
    margin: 34px 0 12px;
    font-size: clamp(20px, 2vw, 25px);
    line-height: 1.25;
}

.interior-content p,
.interior-content li {
    max-width: 1050px;
    font-size: 17px;
    line-height: 1.75;
}

.interior-content ul,
.interior-content ol {
    margin: 20px 0 32px;
    padding-left: 24px;
}

.interior-content .wp-block-button {
    margin-top: 28px;
}

@media (max-width: 680px) {
    .interior-hero {
        min-height: 300px;
        padding: 96px 24px 52px;
    }

    .interior-hero::after {
        inset: 0 0 0 76%;
    }

    .interior-content {
        width: min(100% - 36px, 1180px);
        padding-top: 48px;
        padding-bottom: 72px;
    }

    .interior-content p,
    .interior-content li {
        font-size: 16px;
        line-height: 1.65;
    }
}
/* Align and widen all interior-page content */
.interior-hero-inner,
.interior-content {
    width: min(1180px, calc(100% - 96px));
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

.interior-content > * {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.interior-content p,
.interior-content ul,
.interior-content ol {
    max-width: 900px;
}

@media (max-width: 680px) {
    .interior-hero-inner,
    .interior-content {
        width: calc(100% - 36px);
    }
}
/* Force interior content to align with hero title */
body.page .interior-content {
    box-sizing: border-box;
}

body.page .interior-content > * {
    width: 100% !important;
    max-width: 900px !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}
/* Remove homepage section indentation from interior pages */
body.page .interior-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
}