/* Cactus & Cubby Consulting — site styles */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --navy: #0D3B4C;
  --slate-teal: #1E4E5F;
  --sage: #4B9786;
  --sage-soft: #EAF3F0;
  --sky: #D1ECFC;
  --near-black: #222222;
  --white: #FFFFFF;
  --rule: #E5EBEE;
  --shadow: 0 4px 20px rgba(13, 59, 76, 0.08);
  --radius: 10px;
  --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', Helvetica, Arial, sans-serif;
  color: var(--near-black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  color: var(--navy);
  font-weight: 700;
  margin: 0 0 0.6em;
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }
a { color: var(--sage); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img { height: 62px; width: auto; display: block; }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--navy);
  font-weight: 500;
  font-size: 1.05rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.nav-links a:hover { text-decoration: none; border-bottom-color: var(--sage); }
.nav-links a.active { border-bottom-color: var(--sage); color: var(--sage); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.2s;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--sage);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 2px solid var(--sage);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn:hover { background: var(--slate-teal); border-color: var(--slate-teal); text-decoration: none; color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
section.hero { padding: 0; }
section.bg-soft { background: var(--sage-soft); }
section.bg-sky { background: var(--sky); }
.section-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--sage);
  margin-bottom: 14px;
}
.section-title { margin-bottom: 48px; }
.section-title h2 { margin-bottom: 10px; }
.section-title p { color: #555; max-width: 1040px; font-size: 1.1rem; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--white) 0%, var(--sage-soft) 30%, var(--sage-soft) 78%, var(--white) 100%);
  padding: 180px 0 200px;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 1080px;
  text-align: center;
  justify-items: center;
}
.hero h1 {
  color: var(--navy);
  margin-bottom: 20px;
  font-size: clamp(1.6rem, 4.2vw, 2.8rem);
  line-height: 1.15;
  max-width: none;
}
@media (min-width: 760px) {
  .hero h1 { white-space: nowrap; }
}
.hero .lede {
  font-size: 1.2rem;
  color: #333;
  max-width: 720px;
  margin-bottom: 40px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* Decorative blob */
.hero::after {
  content: "";
  position: absolute;
  right: -160px;
  bottom: -160px;
  width: 520px;
  height: 520px;
  background: var(--sky);
  border-radius: 50%;
  opacity: 0.5;
  z-index: 0;
}

/* ---------- Pillars (home) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.pillar-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--sage);
}
.pillar-card:nth-child(2)::before { background: var(--navy); }
.pillar-card:nth-child(3)::before { background: var(--sage); }
.pillar-card:nth-child(4)::before { background: var(--navy); }
/* no hover lift — these are informational, not clickable */
.pillar-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--navy);
  background: var(--sky);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 14px;
}
.pillar-card h3 { font-size: 1.2rem; margin-bottom: 0; }

/* ---------- Positioning strip ---------- */
.positioning {
  text-align: center;
}
.positioning blockquote {
  margin: 0 auto;
  max-width: 820px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  color: var(--navy);
  line-height: 1.35;
}
.positioning .attribution {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-teal);
  margin-top: 22px;
}

/* ---------- Achievements strip ---------- */
.stats {
  background: var(--navy);
  color: var(--white);
  padding: 50px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stat-value {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--white);
  margin-bottom: 6px;
}
.stat-label { font-size: 0.92rem; color: #cfe0e7; line-height: 1.4; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: start;
}
.headshot {
  width: 100%;
  border-radius: var(--radius);
  display: block;
  box-shadow: var(--shadow);
}
.about-meta {
  margin-top: 20px;
  padding: 24px;
  background: var(--sky);
  border-radius: var(--radius);
  font-size: 1.05rem;
  box-shadow: var(--shadow);
}
.about-meta dt { font-weight: 600; color: var(--navy); font-family: 'Montserrat', sans-serif; }
.about-meta dd { margin: 0 0 10px; }
.about-meta dd:last-child { margin-bottom: 0; }

.bio-lead { font-size: 1.15rem; color: #333; }
.bio-list { padding-left: 20px; font-size: 1.05rem; }
.bio-list li { margin-bottom: 10px; }

.timeline { margin-top: 40px; }
.timeline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 30px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}
.timeline-item:first-child { border-top: 0; padding-top: 0; }
.timeline-date {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--navy);
  background: var(--sky);
  font-size: 0.82rem;
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-block;
  align-self: start;
  white-space: nowrap;
}
.timeline-role { font-weight: 600; color: var(--navy); font-size: 1.05rem; margin-bottom: 4px; }
.timeline-co { color: #555; font-size: 1.05rem; }

/* Section banner (brand pattern) */
.section-banner {
  background: var(--sage);
  color: var(--white);
  padding: 14px 24px;
  border-radius: var(--radius);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 24px;
}

/* ---------- Services grid ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 70px;
}
.service-col {
  display: flex;
  flex-direction: column;
}
.service-tile {
  position: relative;
  background: var(--white);
  border: 2px solid var(--rule);
  border-radius: 14px;
  padding: 32px 26px 28px;
  text-align: left;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}
.service-tile::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: var(--sage);
  transition: background 0.25s;
}
.service-tile.active {
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 18px 40px rgba(13, 59, 76, 0.25);
}
.service-tile.active::before { background: var(--sage); }
.service-tile.active .service-tile-num { color: var(--white); }
.service-tile.active .service-tile-title { color: var(--white); }
.service-tile.active .service-tile-desc { color: #d4e3e8; }

.service-tile-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 2.8rem;
  color: var(--sage);
  line-height: 1;
  margin-bottom: 18px;
}
.service-tile-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.3;
}
.service-tile-desc {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.55;
  margin: 0;
}
.service-tile-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.service-action-btn {
  flex: 1;
  padding: 10px 16px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage);
  background: var(--white);
  border: 2px solid var(--sage);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.service-action-btn:hover {
  background: var(--sage);
  color: var(--white);
}
.service-action-btn.active {
  background: var(--sage);
  color: var(--white);
}

.case-panel {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.case-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--sage) 0%, var(--navy) 50%, var(--sky) 100%);
}
.case-panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.case-panel-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.3rem;
  margin: 0;
}
.case-panel-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sage);
}
.case-stream { display: none; }
.case-stream.active { display: block; }

/* Carousel */
.carousel {
  background: var(--sage-soft);
  border-radius: var(--radius);
  padding: 28px;
}
.carousel-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sage);
  margin-bottom: 14px;
}
.carousel-track-wrap {
  position: relative;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}
.carousel-slide {
  flex: 0 0 100%;
  padding: 4px;
}
.case-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
}
.case-col h4 {
  color: var(--white);
  background: var(--sage);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.95rem;
  margin-bottom: 14px;
  display: inline-block;
}
.case-col ul { padding-left: 18px; margin: 0; font-size: 0.93rem; }
.case-col ul li { margin-bottom: 8px; }
.case-col strong { color: var(--navy); }

.case-placeholder {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-style: italic;
}

.case-pdf { margin: 0; }
.case-pdf img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(13, 59, 76, 0.18);
  background: var(--white);
}
.case-pdf img + img {
  margin-top: 20px;
}
.case-pdf figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 0.9rem;
  color: #555;
}
.case-pdf figcaption a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--navy);
  background: var(--sky);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
}
.case-pdf figcaption a:hover { background: var(--sage); color: var(--white); text-decoration: none; }

.carousel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}
.carousel-btn {
  background: var(--white);
  border: 1px solid var(--rule);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  color: var(--navy);
  transition: background 0.2s, color 0.2s;
}
.carousel-btn:hover:not(:disabled) { background: var(--sage); color: var(--white); border-color: var(--sage); }
.carousel-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cfd8dc;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.carousel-dot.active { background: var(--sage); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.contact-info {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.contact-info::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--sage);
}
.contact-info h3 { color: var(--white); margin-bottom: 18px; }
.contact-info dl { margin: 0; }
.contact-info dt {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--sky);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 20px;
}
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { margin: 4px 0 0; font-size: 1rem; }
.contact-info dd a { color: var(--white); font-weight: 500; }
.contact-info dd a:hover { color: var(--sky); }

form.contact-form { display: grid; gap: 18px; }
.form-field { display: grid; gap: 6px; }
.form-field label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.88rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--near-black);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: 0;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(75, 151, 134, 0.15);
}
.form-field textarea { resize: vertical; min-height: 150px; }
.form-note { font-size: 0.85rem; color: #666; margin-top: 4px; }

/* ---------- Confirmation ---------- */
.sent-confirmation {
  text-align: center;
  padding: 80px 0;
}
.sent-confirmation h2 { margin-bottom: 16px; }
.sent-confirmation p { font-size: 1.15rem; color: #333; max-width: 560px; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 40px 0 30px;
  margin-top: 60px;
}
.footer-contact {
  display: flex;
  gap: 32px;
  font-size: 1.05rem;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.footer-contact a { color: var(--white); }
.footer-contact a:hover { color: var(--sky); }

/* ---------- Responsive ---------- */
.case-panel .carousel { background: transparent; padding: 0; }

@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .case-card { grid-template-columns: 1fr; gap: 20px; }
  .timeline-item { grid-template-columns: 1fr; gap: 4px; }
  .case-panel { padding: 28px; }
}

@media (max-width: 640px) {
  section { padding: 60px 0; }
  .hero { padding: 110px 0 160px; }
  .pillars { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .service-tile { padding: 24px; }
  .service-tile-num { font-size: 2.2rem; margin-bottom: 12px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--rule);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .nav-links a:last-child { border-bottom: 0; }
  .footer-contact { gap: 10px; flex-direction: column; }
  .stat-value { font-size: 2rem; }
}
