/* ============================================================
   Carter Tech Consulting — Main Stylesheet
   cartertechconsulting.com
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  --navy:         #1A2847;
  --navy-dark:    #111C33;
  --navy-mid:     #243360;
  --gold:         #B8862A;
  --gold-light:   #D4A84B;
  --gold-pale:    #F5EDD8;
  --white:        #FFFFFF;
  --off-white:    #F8F5F0;
  --light-bg:     #F0EDE6;
  --text:         #1A2847;
  --text-muted:   #637089;
  --border:       #DDD8CE;
  --border-light: #EDEAD4;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, Helvetica, sans-serif;

  --max-width:    1100px;
  --transition:   0.25s ease;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
p { margin-bottom: 1.25em; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }

/* ============================================================
   Layout Utilities
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
}
.section        { padding: 88px 0; }
.section--alt   { background: var(--off-white); }
.section--light { background: var(--light-bg); }

/* Gold rule divider */
.gold-rule {
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin: 24px auto;
}
.gold-rule--left { margin-left: 0; }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  background: var(--navy);
  padding: 0 48px;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav__brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white) !important;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav__brand span { color: var(--gold); }
.nav__links {
  display: flex;
  list-style: none;
  gap: 40px;
}
.nav__links a {
  color: rgba(255,255,255,0.72);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 5px;
  transition: color var(--transition);
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav__links a:hover,
.nav__links a.active { color: var(--white); }
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.nav__toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.5);
  padding: 40px 48px;
  text-align: center;
  font-size: 0.875rem;
}
.footer__links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.footer__links a { color: rgba(255,255,255,0.5); }
.footer__links a:hover { color: var(--gold-light); }
.footer a { color: rgba(255,255,255,0.5); }
.footer a:hover { color: var(--gold-light); }

/* ============================================================
   Page Header (interior pages)
   ============================================================ */
.page-header {
  background: var(--navy);
  padding: 52px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -55deg,
    transparent, transparent 48px,
    rgba(184,134,42,0.04) 48px, rgba(184,134,42,0.04) 49px
  );
  pointer-events: none;
}
.page-header h1  { color: var(--white); position: relative; }
.page-header__subtitle {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  position: relative;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  padding: 14px 34px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn--primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--white);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn--outline:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255,255,255,0.08);
}
.btn--outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}

/* ============================================================
   HOME — Hero
   ============================================================ */
.hero {
  background: var(--navy);
  padding: 64px 48px;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 68% 40%, rgba(184,134,42,0.10) 0%, transparent 55%),
    repeating-linear-gradient(
      -48deg, transparent, transparent 64px,
      rgba(255,255,255,0.012) 64px, rgba(255,255,255,0.012) 65px
    );
  pointer-events: none;
}
.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: center;
  position: relative;
}
.hero__content { padding: 0; }

.hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.1s forwards;
}
.hero__name {
  color: var(--white);
  font-size: clamp(3.2rem, 6vw, 5rem);
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.25s forwards;
}
.hero__title {
  color: rgba(255,255,255,0.6);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.38s forwards;
}
.hero__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  color: var(--gold-light);
  line-height: 1.45;
  max-width: 500px;
  margin-bottom: 44px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.52s forwards;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.68s forwards;
}
.hero__photo {
  align-self: center;
  width: 100%;
  max-width: 360px;
  line-height: 0;
}
.hero__photo img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  object-position: top;
  display: block;
  border-radius: 3px;
  filter: drop-shadow(-8px 8px 32px rgba(0,0,0,0.4));
}

/* ============================================================
   HOME — Intro Banner
   ============================================================ */
.intro-banner {
  background: var(--gold);
  padding: 36px 48px;
}
.intro-banner__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.intro-banner p {
  color: var(--white);
  font-size: 1.1rem;
  line-height: 1.65;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

/* ============================================================
   HOME — Value Strip
   ============================================================ */
.value-strip { padding: 88px 48px; }
.value-strip__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}
.value-card__num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  margin-bottom: 14px;
}
.value-card__bar {
  width: 36px; height: 3px;
  background: var(--gold);
  margin-bottom: 16px;
}
.value-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--navy);
}
.value-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ============================================================
   HOME — Credibility Strip
   ============================================================ */
.credibility {
  background: var(--off-white);
  padding: 64px 48px;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.credibility__inner { max-width: 860px; margin: 0 auto; }
.credibility__section { margin-bottom: 36px; }
.credibility__section:last-child { margin-bottom: 0; }
.credibility__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.credibility__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.credibility__pills span {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 7px 18px;
  border-radius: 2px;
}

/* ============================================================
   HOME — Closing CTA
   ============================================================ */
.cta-section {
  background: var(--navy);
  padding: 88px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(184,134,42,0.12) 0%, transparent 68%);
  pointer-events: none;
}
.cta-section h2  { color: var(--white); margin-bottom: 16px; position: relative; }
.cta-section p   {
  color: rgba(255,255,255,0.65);
  max-width: 540px; margin: 0 auto 40px;
  font-size: 1.05rem; position: relative;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-body {
  padding: 88px 48px;
}
.about-body__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 88px;
  align-items: start;
}
.about-text h2 {
  font-size: 1.65rem;
  margin-top: 56px;
  margin-bottom: 20px;
  padding-top: 56px;
  border-top: 1px solid var(--border-light);
}
.about-text h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.about-text p { color: #3a4560; }

.about-sidebar { position: sticky; top: 100px; }
.about-sidebar img {
  width: 100%;
  border-radius: 3px;
  box-shadow: 0 16px 56px rgba(26,40,71,0.16);
}
.about-sidebar__caption {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.about-sidebar__caption strong {
  display: block;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-intro {
  padding: 72px 48px 48px;
  text-align: center;
}
.services-intro p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.service-block {
  padding: 72px 48px;
  border-bottom: 1px solid var(--border-light);
}
.service-block:nth-child(even) { background: var(--off-white); }
.service-block:last-of-type { border-bottom: none; }
.service-block__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 72px;
  align-items: start;
}
.service-block__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.service-block__left h2 {
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--navy);
}
.service-block__right p { color: #3a4560; font-size: 0.98rem; }

.services-footer {
  background: var(--light-bg);
  padding: 72px 48px;
  text-align: center;
}
.services-footer p {
  max-width: 580px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ============================================================
   SPEAKING
   ============================================================ */
.speaking-intro {
  padding: 72px 48px 48px;
  text-align: center;
}
.speaking-intro p {
  max-width: 700px;
  margin: 0 auto 16px;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.speaking-entries {
  padding: 48px 48px 88px;
}
.speaking-entries__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.speaking-entry {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: start;
}
.speaking-entry:first-child { padding-top: 0; }
.speaking-entry:last-child  { border-bottom: none; }

.speaking-entry__meta { text-align: right; padding-top: 4px; }
.speaking-entry__org {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.speaking-entry__year {
  display: inline-block;
  background: var(--navy);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 6px;
}
.speaking-entry__location {
  font-size: 0.83rem;
  color: var(--text-muted);
}

.speaking-entry__content h3 {
  font-style: italic;
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 12px;
  font-weight: 400;
}
.speaking-entry__content p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.speaking-topics {
  background: var(--navy);
  padding: 72px 48px;
}
.speaking-topics__inner {
  max-width: 700px;
  margin: 0 auto;
}
.speaking-topics h2 { color: var(--white); margin-bottom: 8px; }
.speaking-topics > .speaking-topics__inner > p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 36px;
}
.topics-list { list-style: none; }
.topics-list li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  font-size: 0.98rem;
  line-height: 1.5;
}
.topics-list li:last-child { border-bottom: none; }
.topics-list li::before {
  content: '—';
  color: var(--gold);
  font-weight: 600;
  flex-shrink: 0;
}

.speaking-cta {
  padding: 64px 48px;
  text-align: center;
  background: var(--off-white);
  border-top: 1px solid var(--border);
}
.speaking-cta p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-body {
  padding: 60px 48px;
}
.contact-body__inner {
  max-width: 580px;
  margin: 0 auto;
}
.contact-body > .contact-body__inner > p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 56px;
  line-height: 1.7;
}

.contact-items { list-style: none; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-light);
}
.contact-item:last-child { border-bottom: none; }
.contact-item__icon {
  width: 60px; height: 60px;
  background: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--gold-light);
  font-size: 1.45rem;
  border: 2px solid rgba(184,134,42,0.3);
}
.contact-item__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.contact-item__value {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--navy);
}
.contact-item__value a {
  color: var(--navy);
  transition: color var(--transition);
}
.contact-item__value a:hover { color: var(--gold); }

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Responsive — Tablet
   ============================================================ */
@media (max-width: 960px) {
  .container, .nav { padding-left: 28px; padding-right: 28px; }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero__content { padding-bottom: 48px; }
  .hero__photo { width: 260px; margin: 0 auto; }
  .hero__photo img { border-radius: 3px; }

  .value-strip__grid { grid-template-columns: 1fr; gap: 44px; }

  .about-body__inner { grid-template-columns: 1fr; gap: 48px; }
  .about-sidebar { position: static; max-width: 280px; }

  .service-block__inner { grid-template-columns: 1fr; gap: 20px; }

  .speaking-entry { grid-template-columns: 1fr; gap: 16px; }
  .speaking-entry__meta { text-align: left; }
}

/* ============================================================
   Responsive — Mobile
   ============================================================ */
@media (max-width: 600px) {
  :root { --section-padding: 56px 0; }

  .nav { padding: 0 20px; }
  .nav__links {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 16px 20px;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav__links.open { display: flex; }
  .nav__links li { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav__links a { display: block; padding: 14px 0; }
  .nav__toggle { display: flex; }

  .hero { padding: 64px 20px 0; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { text-align: center; width: 100%; max-width: 280px; }

  .intro-banner,
  .value-strip,
  .credibility,
  .cta-section,
  .about-body,
  .services-intro,
  .service-block,
  .services-footer,
  .speaking-intro,
  .speaking-entries,
  .speaking-topics,
  .speaking-cta,
  .contact-body,
  .page-header { padding-left: 20px; padding-right: 20px; }

  .footer { padding: 32px 20px; }
  .footer__links { gap: 20px; }
}
