/* ============================================================
   CRANBERRY PEAK CONSULTING — Main Stylesheet
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=IM+Fell+English:ital@0;1&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Jost:wght@300;400;500;600&display=swap');

/* --- CSS Variables --- */
:root {
  --navy:       #040E16;
  --navy-mid:   #071824;
  --teal:       #0A2535;
  --teal-light: #0D3045;
  --amber:      #E07830;
  --amber-dark: #C05A18;
  --amber-pale: #F0A060;
  --offwhite:   #F2F2F2;
  --bluegray:   #A0C0D8;
  --white:      #FFFFFF;
  --gray:       #555555;
  --gray-light: #888888;

  --font-display: 'Cormorant Garamond', 'Palatino Linotype', Georgia, serif;
  --font-body:    'Jost', 'Gill Sans', Trebuchet MS, sans-serif;

  --nav-height: 76px;
  --radius:     4px;
  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--gray);
  background: var(--offwhite);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.04em;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.75rem;
  display: block;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(4, 14, 22, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(224, 120, 48, 0.15);
  padding: 0 5%;
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nav-logo img {
  height: 46px;
  width: auto;
  border-radius: 2px;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-text .name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--white);
}

.nav-logo-text .sub {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bluegray);
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2.4rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bluegray);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--amber);
  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%; }

.nav-cta {
  background: var(--amber);
  color: var(--navy) !important;
  padding: 9px 22px !important;
  border-radius: var(--radius);
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  transition: background var(--transition) !important;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--amber-pale) !important; color: var(--navy) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ============================================================
   HERO SECTIONS
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
  padding-top: var(--nav-height);
}

/* Mountain silhouette SVG background */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 65% 40%, rgba(192, 90, 24, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(10, 37, 53, 0.8) 0%, transparent 60%);
}

.hero-mountain {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 55%;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 400' preserveAspectRatio='none'%3E%3Cpolygon points='0,400 200,200 350,310 520,120 700,280 880,80 1050,250 1220,150 1440,280 1440,400' fill='%23E07830'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: bottom;
}

.hero-glow {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 80px;
  background: radial-gradient(ellipse, rgba(224, 120, 48, 0.25) 0%, transparent 70%);
  filter: blur(20px);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 8%;
  max-width: 780px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.5rem;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 36px; height: 1px;
  background: var(--amber);
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  color: var(--white);
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero h1 em {
  font-style: italic;
  color: var(--amber-pale);
}

.hero-tagline {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: var(--bluegray);
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Page hero (non-home) */
.page-hero {
  min-height: 40vh;
  background: var(--navy);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-height) + 3rem) 8% 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
}

.page-hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-hero-content p {
  font-size: 1rem;
  color: var(--bluegray);
  max-width: 560px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.btn-primary {
  background: var(--amber);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--amber-pale);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(224, 120, 48, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(160, 192, 216, 0.4);
}

.btn-secondary:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.btn-outline {
  background: transparent;
  color: var(--amber);
  border: 1px solid var(--amber);
}

.btn-outline:hover {
  background: var(--amber);
  color: var(--navy);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 6rem 8%;
}

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

.section-teal {
  background: var(--teal);
  color: var(--white);
}

.section-light {
  background: var(--offwhite);
}

.section-white {
  background: var(--white);
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: inherit;
}

.section-dark .section-header h2,
.section-teal .section-header h2 { color: var(--white); }

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

.section-header .lead {
  font-size: 1rem;
  color: var(--bluegray);
  max-width: 560px;
  margin-top: 0.75rem;
}

.section-light .section-header .lead,
.section-white .section-header .lead {
  color: var(--gray);
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--teal);
  border-top: 1px solid rgba(224, 120, 48, 0.2);
  border-bottom: 1px solid rgba(224, 120, 48, 0.2);
  padding: 2.5rem 8%;
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
}

.trust-item .num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
  letter-spacing: 0.04em;
}

.trust-item .label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bluegray);
  font-weight: 500;
}

/* ============================================================
   SERVICE CARDS (Home Preview)
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--teal-light);
  border: 1px solid rgba(160, 192, 216, 0.1);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--amber);
  transition: height var(--transition);
}

.service-card:hover {
  border-color: rgba(224, 120, 48, 0.3);
  transform: translateY(-4px);
}

.service-card:hover::before { height: 100%; }

.service-icon {
  width: 44px; height: 44px;
  background: rgba(224, 120, 48, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--amber);
  font-size: 1.2rem;
}

.service-card h3 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.6rem;
  letter-spacing: 0.05em;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--bluegray);
  line-height: 1.65;
}

/* ============================================================
   FULL SERVICE LISTING (Services page)
   ============================================================ */
.service-category {
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.service-category:last-child {
  border-bottom: none;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.category-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(224, 120, 48, 0.2);
  line-height: 1;
  flex-shrink: 0;
  width: 60px;
}

.category-header h2 {
  font-size: 1.5rem;
  color: var(--navy);
  letter-spacing: 0.06em;
}

.service-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
  padding-left: 75px;
}

.service-item {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-left: 3px solid var(--amber);
  padding: 1.4rem 1.6rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.service-item h4 {
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.service-item p {
  font-size: 0.87rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ============================================================
   ABOUT / BIO
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}

.about-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}

.about-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--teal);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(160, 192, 216, 0.15);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.about-photo-placeholder .initials {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.1em;
}

.about-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--bluegray);
}

.about-meta-item .icon {
  color: var(--amber);
  flex-shrink: 0;
  margin-top: 2px;
}

.about-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--white);
  margin-bottom: 1.5rem;
}

.about-content p {
  font-size: 0.97rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.about-content p strong { color: var(--amber-pale); font-weight: 500; }

.competencies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}

.competency-pill {
  background: var(--teal-light);
  border: 1px solid rgba(160, 192, 216, 0.12);
  border-left: 2px solid var(--amber);
  padding: 0.7rem 1rem;
  font-size: 0.82rem;
  color: var(--bluegray);
  letter-spacing: 0.04em;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2.5rem;
  margin-top: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--amber), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 8px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--amber);
  border: 2px solid var(--navy);
}

.timeline-item .period {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 500;
}

.timeline-item h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin: 0.2rem 0 0.4rem;
}

.timeline-item p {
  font-size: 0.85rem;
  color: var(--bluegray);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--bluegray);
  font-size: 0.97rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-detail .icon-wrap {
  width: 40px; height: 40px;
  background: rgba(224, 120, 48, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  flex-shrink: 0;
  font-size: 1rem;
}

.contact-detail .text .label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 500;
  margin-bottom: 0.2rem;
  display: block;
}

.contact-detail .text .value {
  font-size: 0.92rem;
  color: var(--white);
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--navy);
  background: var(--offwhite);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(224, 120, 48, 0.12);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-submit {
  width: 100%;
  justify-content: center;
  font-size: 0.82rem;
}

.form-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--gray-light);
  margin-top: 1rem;
}

/* ============================================================
   BLOG PLACEHOLDER
   ============================================================ */
.blog-placeholder {
  text-align: center;
  padding: 5rem 8%;
  max-width: 640px;
  margin: 0 auto;
}

.blog-placeholder .icon-large {
  font-size: 3rem;
  color: var(--amber);
  margin-bottom: 1.5rem;
  opacity: 0.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-mid);
  border-top: 1px solid rgba(224, 120, 48, 0.15);
  padding: 3.5rem 8% 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 2rem;
}

.footer-brand img {
  height: 48px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--bluegray);
  line-height: 1.75;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul a {
  font-size: 0.87rem;
  color: var(--bluegray);
  transition: color var(--transition);
}

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

.footer-col .contact-line {
  font-size: 0.87rem;
  color: var(--bluegray);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(160, 192, 216, 0.5);
}

.footer-bottom a {
  color: var(--amber);
  transition: color var(--transition);
}

.footer-bottom a:hover { color: var(--amber-pale); }

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--amber), transparent);
  margin: 1.25rem 0 2rem;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-sidebar {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-items {
    padding-left: 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    border-bottom: 1px solid rgba(224, 120, 48, 0.15);
  }

  .nav-links.open {
    max-height: 500px;
  }

  .nav-links li {
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }

  .nav-links a {
    display: block;
    padding: 1rem 8%;
    font-size: 0.85rem;
  }

  .nav-links a::after { display: none; }

  .nav-cta {
    margin: 0.75rem 8% 1rem;
    text-align: center;
    display: block;
    padding: 11px !important;
  }

  .nav-toggle { display: flex; }

  .section { padding: 4rem 6%; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-content { padding: 0 6%; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }

  .trust-bar {
    gap: 2rem;
    padding: 2rem 6%;
  }

  .category-num { font-size: 2rem; width: 44px; }
}
