/* ==========================================================================
   AlignM2 — Shared Stylesheet
   Colors: Navy #3E5172 · Coral #CC6C5C
   Font: DM Sans (Google Fonts)
========================================================================== */

/* --------------------------------------------------
   Custom Properties
-------------------------------------------------- */
:root {
  --navy:        #3E5172;
  --navy-dark:   #2e3d59;
  --coral:       #CC6C5C;
  --coral-dark:  #b55a4b;
  --white:       #ffffff;
  --off-white:   #f6f5f2;
  --text:        #1e1e1e;
  --text-mid:    #484848;
  --text-light:  #767676;
  --border:      #e3e0db;
  --font:        'DM Sans', sans-serif;
}

/* --------------------------------------------------
   Reset
-------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
sup { font-size: 0.6em; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 17px;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

/* --------------------------------------------------
   Buttons
-------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 3px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn-coral {
  background: var(--coral);
  color: var(--white);
  border-color: var(--coral);
}
.btn-coral:hover {
  background: var(--coral-dark);
  border-color: var(--coral-dark);
  color: var(--white);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  color: var(--white);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

/* --------------------------------------------------
   Navigation
-------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 88px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-menu a:not(.btn) {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-mid);
  transition: color 0.2s;
}

.nav-menu a:not(.btn):hover {
  color: var(--navy);
}

.nav-menu a.active {
  color: var(--navy);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.25s;
}

/* --------------------------------------------------
   Hero — Navy background, full bleed
-------------------------------------------------- */
.hero {
  padding: 112px 0 100px;
  background: var(--navy);
}

.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
}

.hero h1 {
  font-size: clamp(38px, 5.5vw, 62px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.12;
  letter-spacing: -0.022em;
  max-width: 840px;
  margin-bottom: 28px;
}

.hero .subhead {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
  margin-bottom: 44px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* --------------------------------------------------
   Credibility Bar
   Sits directly below the navy hero — subtle divider separates them
-------------------------------------------------- */
.cred-bar {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
}

.cred-bar-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cred-label {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
}

.cred-items {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.cred-row {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cred-item {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  padding: 5px 24px;
  position: relative;
}

.cred-row .cred-item + .cred-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.22);
}

/* --------------------------------------------------
   Section Wrappers
   Horizontal padding lives on .section-inner so backgrounds span full width
-------------------------------------------------- */
.section       { padding: 96px 0; background: var(--white); }
.section-alt   { padding: 96px 0; background: var(--off-white); }
.section-navy  { padding: 96px 0; background: var(--navy); }

.section-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
}

/* --------------------------------------------------
   Section Typography
-------------------------------------------------- */
.eyebrow {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 16px;
}

.section-navy .eyebrow {
  color: var(--coral);
}

.section-h2 {
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 300;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-navy .section-h2 { color: var(--white); }

.section-lead {
  font-size: 18px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 60px;
}

.section-navy .section-lead { color: rgba(255, 255, 255, 0.62); }

/* --------------------------------------------------
   Grid layouts
-------------------------------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px;
}

/* --------------------------------------------------
   "What This Looks Like" Cards — Homepage
-------------------------------------------------- */
.work-card {
  padding: 40px 36px 44px;
  background: var(--off-white);
  border-radius: 4px;
}

.work-card-num {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 24px;
}

.work-card h3 {
  font-size: 20px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.3;
}

.work-card p {
  font-size: 15.5px;
  color: var(--text-light);
  line-height: 1.72;
}

.section-link {
  display: inline-block;
  margin-top: 52px;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1.5px solid var(--coral);
  padding-bottom: 3px;
  transition: color 0.2s;
}

.section-link:hover { color: var(--coral); }

/* --------------------------------------------------
   Case Study / "In Practice" Cards
   Reusable component — ready for index.html and services.html when needed
-------------------------------------------------- */
.case-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}

.case-tag {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 16px;
}

.case-card h3 {
  font-size: 19px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 10px;
}

.case-context {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}

.case-outcome {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.65;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

/* --------------------------------------------------
   CTA Block — Full-Width Navy
-------------------------------------------------- */
.cta-block {
  padding: 96px 0;
  background: var(--navy);
  text-align: center;
}

.cta-block-coral {
  padding: 24px 0;
  background: var(--coral);
  text-align: center;
}

.coral-cta-line {
  font-size: 18px;
  font-weight: 300;
  color: var(--white);
  line-height: 1.5;
}

.coral-cta-link {
  font-weight: 500;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 1px;
  margin-left: 6px;
  transition: border-color 0.2s;
}

.coral-cta-link:hover {
  border-color: var(--white);
}

.cta-block-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
}

.cta-block h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
}

/* --------------------------------------------------
   Page Header — Non-home pages
-------------------------------------------------- */
.page-header {
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--border);
}

.page-header-navy {
  background: var(--navy);
  border-bottom: none;
}

.page-header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
}

.page-header h1 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 300;
  color: var(--navy);
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 800px;
  margin-bottom: 20px;
}

.page-header-navy h1 {
  color: var(--white);
}

.page-header.page-header-navy p {
  color: rgba(255, 255, 255, 0.72);
}

.page-header p {
  font-size: 19px;
  color: var(--text-light);
  line-height: 1.65;
}

/* --------------------------------------------------
   About — Bio Section
-------------------------------------------------- */
.bio-section {
  padding: 96px 0;
}

.bio-grid {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
}

.bio-grid::after {
  content: '';
  display: table;
  clear: both;
}

.bio-photo-wrap {
  float: left;
  width: 240px;
  margin: 0 52px 20px 0;
}

.bio-photo-wrap img {
  width: 100%;
  border-radius: 4px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: top center;
}

.bio-text p {
  font-size: 18px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 28px;
}

.bio-text p:last-child { margin-bottom: 0; }

/* --------------------------------------------------
   About — Superpowers (navy background)
-------------------------------------------------- */
.superpowers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 72px;
}

.superpower h3 {
  font-size: 17px;
  font-weight: 500;
  color: var(--coral);
  margin-bottom: 12px;
  line-height: 1.35;
}

.superpower p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.78;
}

/* --------------------------------------------------
   About — Industry Experience
-------------------------------------------------- */
.industry-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 36px 30px;
}

.industry-card h3 {
  font-size: 17px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.3;
}

.industry-card p {
  font-size: 15.5px;
  color: var(--text-light);
  line-height: 1.75;
}

.industry-intro {
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.72;
  margin-bottom: 40px;
}

.industry-outro {
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.72;
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.why-body p {
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.72;
  margin-bottom: 24px;
}
.why-body p:last-child { margin-bottom: 0; }

/* --------------------------------------------------
   Services — Row Layout
-------------------------------------------------- */
.services-list {
  width: 100%;
}

.service-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 56px;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.service-row:first-child { border-top: 1px solid var(--border); }

.service-meta { padding-top: 8px; }

.service-num {
  display: block;
  font-size: 72px;
  font-weight: 300;
  color: var(--coral);
  line-height: 1;
  letter-spacing: -0.03em;
}

.service-best-for {
  margin-top: 28px;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.65;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.service-best-for-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--coral);
  margin-right: 8px;
}

.service-content h2 {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}

.what-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 8px;
  margin-top: 4px;
}

.what-text {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.78;
}

.sub-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.sub-services-vertical {
  margin-top: 36px;
  margin-left: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sub-service-block {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.sub-service-block h4 {
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 10px;
}

.sub-service-block > p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.72;
}

/* Accordion */
.accordion {
  margin-top: 20px;
  border-top: 1px solid var(--border);
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
}

.accordion-trigger:hover {
  color: var(--coral);
}

.accordion-icon {
  font-size: 18px;
  color: var(--coral);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  line-height: 1;
}

.accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: rotate(90deg);
}

.accordion-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}

.accordion-body p {
  padding-bottom: 20px;
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.72;
}

/* --------------------------------------------------
   Contact Page
-------------------------------------------------- */
.contact-section {
  padding: 104px 0 96px;
}

.contact-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-left h1 {
  font-size: clamp(52px, 8vw, 92px);
  font-weight: 300;
  color: var(--navy);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 36px;
}

.contact-left p {
  font-size: 19px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 44px;
}

.contact-btns {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.contact-right {
  padding-top: 16px;
}

/* --------------------------------------------------
   Contact Form
-------------------------------------------------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-mid);
}

.form-input,
.form-textarea {
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 3px;
  padding: 12px 16px;
  width: 100%;
  transition: border-color 0.2s;
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-light);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--navy);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-success {
  display: none;
  padding: 48px 40px;
  background: var(--off-white);
  border-radius: 4px;
  border-left: 3px solid var(--coral);
}

.form-success-headline {
  font-size: 22px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.form-success-body {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.7;
}

/* --------------------------------------------------
   Footer
-------------------------------------------------- */
.site-footer {
  background: var(--navy);
  padding: 52px 0;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo img {
  height: 72px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

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

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.32);
}

/* --------------------------------------------------
   Responsive — Tablet (≤ 1024px)
-------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-3          { grid-template-columns: repeat(2, 1fr); }
  .superpowers-grid { gap: 40px 48px; }

  .service-row {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 52px 0;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* --------------------------------------------------
   Responsive — Mobile (≤ 768px)
-------------------------------------------------- */
@media (max-width: 768px) {
  /* Nav */
  .nav-inner { padding: 0 24px; height: 72px; }
  .nav-logo img { height: 56px; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    padding: 8px 0 16px;
    z-index: 200;
    align-items: stretch;
  }

  .nav-menu.is-open { display: flex; }

  .nav-menu a:not(.btn) { padding: 13px 24px; }
  .nav-menu .btn { margin: 12px 24px 0; justify-content: center; }

  .nav-toggle { display: flex; }

  /* Inner container padding on mobile */
  .hero-inner,
  .cred-bar-inner,
  .section-inner,
  .page-header-inner,
  .bio-grid,
  .cta-block-inner,
  .footer-inner,
  .contact-inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  /* Section vertical padding */
  .hero                         { padding: 72px 0; }
  .cred-bar                     { padding: 18px 0; }
  .section,
  .section-alt,
  .section-navy                 { padding: 72px 0; }
  .page-header                  { padding: 60px 0 56px; }
  .bio-section                  { padding: 72px 0; }
  .cta-block                    { padding: 72px 0; }
  .contact-section              { padding: 72px 0 64px; }
  .site-footer                  { padding: 44px 0; }

  /* Grids */
  .grid-3           { grid-template-columns: 1fr; }
  .grid-2           { grid-template-columns: 1fr; }
  .superpowers-grid { grid-template-columns: 1fr; gap: 32px; }
  .sub-services     { grid-template-columns: 1fr; }

  /* Services indent + About photo */
  .sub-services-vertical { margin-left: 0; }
  .bio-photo-wrap        { float: none; width: 65%; margin: 0 auto 36px; }

  /* Footer stack */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .footer-links { flex-wrap: wrap; gap: 18px; }

  /* Cred bar */
  .cred-row  { flex-wrap: wrap; }
  .cred-item { padding: 4px 10px; font-size: 11px; }
}

@media (max-width: 480px) {
  .hero-ctas    { flex-direction: column; }
  .contact-btns { flex-direction: column; }
}
