/* CarterOps consolidated styles.css
   Full layout + current CarterOps palette + hero image treatment.
   Replace your existing styles.css with this file.
*/

:root {
  --blue: #4D83B8; /* #5889B8 */
  --blue-dark: #416F9A;
  --blue-soft: #7FA7C8;
  --blue-fade: #DDE9F2;

  --text: #14283A;
  --text-mid: #405A70;
  --text-soft: #6F8394;

  --bg: #F3F7FA;
  --white: #FFFFFF;
  --border: #D7E2EA;

  --container: 1180px;
}

/* Base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--container), calc(100% - 44px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  background: transparent;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  width: 216px;
  max-width: 216px;
  height: auto;
}

.brand span {
  color: rgba(255,255,255,.95);
  font-size: 1.22rem;
  letter-spacing: .42em;
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(0,0,0,.18);
}

.brand-footer span {
  color: var(--text);
  text-shadow: none;
}

.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.main-nav a {
  color: rgba(255,255,255,.96);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(0,0,0,.25);
}

.main-nav a:hover {
  color: var(--white);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,0.14), transparent 34%),
    linear-gradient(
      90deg,
      rgba(88, 137, 184, 0.98) 0%,
      rgba(88, 137, 184, 0.94) 34%,
      rgba(88, 137, 184, 0.70) 52%,
      rgba(88, 137, 184, 0.28) 72%,
      rgba(88, 137, 184, 0.05) 100%
    ),
    url("assets/carterops-hero.png"),
    linear-gradient(
      180deg,
      #4D83B8 0%,
      #6696BF 68%,
      #DDE9F2 100%
    );

  background-size: cover, cover, cover, cover;
  background-position: center right, center right, center right, center;
  background-repeat: no-repeat;
}

.hero .container {
  margin-left: 0;
  margin-right: auto;
  width: auto;
  max-width: 760px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 700px;
  margin-left: 0;
  padding: 130px 0 92px 46px;
}

.hero-copy {
  max-width: 700px;
  text-align: left;
}

.hero-copy h1 {
  max-width: 700px;
  text-align: left;
  margin: 0 0 28px;
  color: var(--white);
  font-size: clamp(3rem, 4.5vw, 4.35rem);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 800;
}

.hero-copy h1 span {
  color: rgba(255,255,255,.82);
}

.hero-copy p {
  max-width: 700px;
  text-align: left;
  margin: 0 0 30px;
  color: rgba(255,255,255,.96);
  font-size: 1.16rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-solid {
  background: var(--white);
  color: var(--blue-dark);
}

.btn-solid:hover {
  background: #F3F7FA;
}

.btn-ghost {
  color: var(--white);
  border: 1.6px solid rgba(255,255,255,.88);
}

.btn-ghost:hover {
  background: rgba(255,255,255,.12);
}

.btn-dark {
  background: var(--blue-dark);
  color: var(--white);
  margin-top: 8px;
}

.btn-dark:hover {
  background: #335E85;
}

/* Hide old/generated hero artwork if the HTML still contains it */
.hero-visual {
  display: none;
}

/* Benefits */
.benefits {
  background: var(--white);
  padding: 0;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.benefit-grid article {
  text-align: center;
  padding: 28px 22px 24px;
  border-right: 1px solid var(--border);
}

.benefit-grid article:last-child {
  border-right: 0;
}

.benefit-grid img {
  width: 50px;
  height: 50px;
  margin: 0 auto 14px;
}

.benefit-grid h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.benefit-grid p {
  margin: 0;
  color: var(--text-mid);
  font-size: .96rem;
}

/* Shared sections */
.about-section,
.approach-section {
  background: var(--bg);
  padding: 74px 0;
}

.services-section,
.bio-section {
  background: var(--white);
  padding: 74px 0 82px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  gap: 52px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--blue-dark);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.about-copy h2,
.section-intro h2,
.bio-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -.04em;
}

.about-copy p,
.section-intro p,
.service-card p,
.approach-grid p,
.bio-copy p,
.contact-list span,
.contact-list a,
.benefit-grid p {
  color: var(--text-mid);
  font-size: 1.03rem;
}

.about-copy p {
  margin: 0 0 16px;
}

/* CSS-only process visual */
.panel-art-css {
  position: relative;
  min-height: 520px;
  border-radius: 32px;
  background: linear-gradient(145deg, #EEF5F9, #E4EEF5);
  overflow: hidden;
  border: 1px solid var(--border);
}

.panel-art-css::before {
  content: "";
  position: absolute;
  inset: 70px;
  border: 2px dashed rgba(88, 137, 184, .38);
  border-radius: 50%;
}

.panel-art-css::after {
  content: "";
  position: absolute;
  inset: 155px;
  border: 1px solid rgba(88, 137, 184, .22);
  border-radius: 50%;
}

.flow-centre {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--white);
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 800;
  line-height: 1.1;
  box-shadow: 0 16px 36px rgba(20,40,58,.10);
}

.flow-card {
  position: absolute;
  min-width: 118px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--white);
  color: var(--text);
  font-weight: 750;
  text-align: center;
  box-shadow: 0 14px 30px rgba(20,40,58,.10);
  border: 1px solid rgba(215,226,234,.9);
}

.flow-card-one {
  left: 50%;
  top: 48px;
  transform: translateX(-50%);
}

.flow-card-two {
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
}

.flow-card-three {
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
}

.flow-card-four {
  left: 50px;
  top: 50%;
  transform: translateY(-50%);
}

/* Fallback if the older panel image is still present */
.panel-art img {
  width: 100%;
  max-width: 640px;
  margin-left: auto;
}

/* Services */
.section-intro {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 36px;
}

.service-grid,
.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.service-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px 22px;
  min-height: 286px;
  background: var(--white);
}

.service-card img,
.approach-grid img {
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
}

.service-card h3,
.approach-grid h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
}

.approach-grid article {
  text-align: center;
  padding: 10px 14px;
}

.approach-grid img {
  margin: 0 auto 18px;
}

/* Bio / contact */
.bio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(280px, .76fr);
  gap: 28px;
}

.bio-card,
.contact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px;
}

.bio-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
}

.bio-photo-wrap img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
}

.contact-card h3 {
  margin: 0 0 18px;
  font-size: 1.65rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  display: grid;
  gap: 6px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.contact-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.contact-list strong {
  color: var(--blue-dark);
  font-size: .92rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Footer */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 28px 0 34px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-mid);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1100px) {
  .about-grid,
  .bio-grid {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .approach-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .panel-art img {
    margin-left: 0;
    max-width: 560px;
  }
}

@media (max-width: 840px) {
  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    gap: 18px;
    flex-wrap: wrap;
  }

  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefit-grid article:nth-child(2),
  .benefit-grid article:nth-child(4) {
    border-right: 0;
  }

  .benefit-grid article:nth-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  .bio-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .bio-photo-wrap img {
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: relative;
    background: var(--blue);
  }

  .brand img {
    width: 168px;
    max-width: 168px;
  }

  .hero {
    background:
      linear-gradient(
        180deg,
        rgba(88, 137, 184, 0.98) 0%,
        rgba(88, 137, 184, 0.92) 56%,
        rgba(88, 137, 184, 0.78) 100%
      ),
      url("assets/carterops-hero.png"),
      linear-gradient(
        180deg,
        #4D83B8 0%,
        #6696BF 68%,
        #DDE9F2 100%
      );

    background-size: cover, cover, cover;
    background-position: center right, center right, center;
    background-repeat: no-repeat;
  }

  .hero .container {
    width: min(var(--container), calc(100% - 28px));
    margin: 0 auto;
    max-width: none;
  }

  .hero-grid {
    padding: 40px 0 58px 0;
    max-width: 100%;
  }

  .hero-copy,
  .hero-copy h1,
  .hero-copy p {
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .brand span {
    font-size: 1rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.7rem, 11vw, 4rem);
    line-height: 1.09;
    margin-bottom: 22px;
  }

  .hero-copy p {
    font-size: 1rem;
    margin-bottom: 22px;
  }

  .benefit-grid,
  .service-grid,
  .approach-grid {
    grid-template-columns: 1fr;
  }

  .benefit-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .benefit-grid article:last-child {
    border-bottom: 0;
  }

  .about-section,
  .services-section,
  .approach-section,
  .bio-section {
    padding: 54px 0;
  }

  .panel-art-css {
    min-height: 420px;
  }

  .panel-art-css::before {
    inset: 48px;
  }

  .panel-art-css::after {
    inset: 125px;
  }

  .flow-card {
    min-width: 96px;
    padding: 12px 14px;
    font-size: .9rem;
  }

  .flow-card-two {
    right: 22px;
  }

  .flow-card-four {
    left: 22px;
  }

  .flow-centre {
    width: 126px;
    height: 126px;
    font-size: .95rem;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}
