/* ============================================================
   Peakview Strategy — Main Stylesheet
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --forest:   #1a3028;
  --sage:     #3d6b55;
  --moss:     #6a9478;
  --mist:     #c8dcd1;
  --cream:    #f6f3ee;
  --stone:    #e8e3db;
  --ink:      #1c1c1c;
  --mid:      #5a5a5a;
  --gold:     #b08d57;
  --gold-lt:  #d4b07a;

  --nav-h: 72px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8vw;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* ── UTILITIES ── */
.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 0.9rem;
  display: block;
}

.section-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 3.2vw, 3.2rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--forest);
}
.section-heading em { font-style: italic; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── NAV ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4vw;
  height: var(--nav-h);
  background: rgba(246,243,238,0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--stone);
  transition: box-shadow 0.3s;
}
#navbar.scrolled { box-shadow: 0 2px 28px rgba(26,48,40,0.09); }

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--forest);
}
.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex; align-items: center; gap: 2.2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--forest); }

.nav-cta {
  color: var(--cream) !important;
  background: var(--forest);
  padding: 0.55rem 1.3rem;
  border-radius: 2px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--sage) !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  z-index: 300;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--forest);
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed; inset: 0; z-index: 199;
  background: var(--cream);
  flex-direction: column;
  align-items: center; justify-content: center; gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem; font-weight: 400;
  color: var(--forest);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--sage); }

/* ── HERO ── */
#home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding-top: var(--nav-h);
}

.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(3rem, 8vw, 7rem) clamp(2rem, 6vw, 6rem);
  background: var(--forest);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.hero-left::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 120% 80%, rgba(176,141,87,.18) 0%, transparent 60%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 1.6rem;
  opacity: 0; animation: fadeUp 0.8s 0.2s forwards;
}
.hero-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.6rem, 4.2vw, 4.8rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin-bottom: 2rem;
  opacity: 0; animation: fadeUp 0.8s 0.35s forwards;
}
.hero-heading em { font-style: italic; color: var(--gold-lt); }

.hero-sub {
  font-size: 0.97rem; line-height: 1.8;
  color: rgba(246,243,238,0.7);
  max-width: 400px;
  margin-bottom: 2.8rem;
  font-weight: 300;
  opacity: 0; animation: fadeUp 0.8s 0.5s forwards;
}
.hero-cta-group {
  display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.8s 0.65s forwards;
}

.btn-primary {
  display: inline-block;
  background: var(--gold); color: var(--forest);
  padding: 0.85rem 2rem;
  font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--gold-lt); transform: translateY(-2px); }

.btn-outline {
  display: inline-block;
  border: 1px solid rgba(246,243,238,.35); color: var(--cream);
  padding: 0.85rem 2rem;
  font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase;
  border-radius: 2px;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: var(--cream); background: rgba(246,243,238,.07); }

.hero-right {
  background: var(--stone);
  position: relative;
  overflow: hidden;
  display: flex; align-items: flex-end;
}
.hero-right::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(61,107,85,.22) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(26,48,40,.35) 0%, transparent 50%);
}
.hero-pattern {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(26,48,40,.055) 39px, rgba(26,48,40,.055) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(26,48,40,.055) 39px, rgba(26,48,40,.055) 40px);
}
.hero-stat-block {
  position: relative; z-index: 2;
  padding: 3rem;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px; width: 100%;
  opacity: 0; animation: fadeUp 0.8s 0.7s forwards;
}
.hero-stat {
  background: rgba(246,243,238,0.9);
  padding: 1.8rem 1.5rem;
  backdrop-filter: blur(8px);
}
.hero-stat:first-child { grid-column: 1 / -1; background: var(--forest); }
.hero-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem; font-weight: 300;
  color: var(--gold); line-height: 1; margin-bottom: 0.3rem;
}
.hero-stat:first-child .hero-stat-num { color: var(--gold-lt); }
.hero-stat-label {
  font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--mid); font-weight: 500;
}
.hero-stat:first-child .hero-stat-label { color: rgba(246,243,238,.55); }

/* ── MARQUEE ── */
.marquee-wrap {
  background: var(--forest);
  border-top: 1px solid rgba(176,141,87,.28);
  border-bottom: 1px solid rgba(176,141,87,.28);
  padding: 0.9rem 0; overflow: hidden;
}
.marquee-track {
  display: flex; gap: 3rem; white-space: nowrap;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-size: 0.72rem; letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(200,220,209,.6); font-weight: 500;
}
.marquee-track .dot { color: var(--gold); }

/* ── ABOUT ── */
#about {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 80vh;
}
.about-left {
  background: var(--cream);
  padding: clamp(3rem, 8vw, 7rem) clamp(2rem, 6vw, 6rem);
  display: flex; flex-direction: column; justify-content: center;
}
.about-body {
  margin-top: 2rem; font-size: 0.97rem;
  color: var(--mid); line-height: 1.85; font-weight: 300;
}
.about-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.5rem; }
.tag {
  font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 500;
  color: var(--sage);
  background: rgba(61,107,85,.09);
  padding: 0.35rem 0.85rem;
  border-radius: 2px;
  border: 1px solid rgba(61,107,85,.2);
}

.about-right {
  background: var(--forest);
  padding: clamp(3rem, 8vw, 7rem) clamp(2rem, 6vw, 6rem);
  display: flex; flex-direction: column; justify-content: center; gap: 2.5rem;
}
.about-right .section-heading { color: var(--cream); }
.about-right .section-label { color: var(--gold-lt); }

.differentiator-list { display: flex; flex-direction: column; gap: 1.3rem; margin-top: 0.5rem; }
.diff-item { display: flex; gap: 1rem; align-items: flex-start; }
.diff-icon {
  flex-shrink: 0; width: 28px; height: 28px;
  border: 1px solid var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 0.75rem; margin-top: 0.1rem;
}
.diff-text {
  font-size: 0.9rem; color: rgba(246,243,238,.7);
  line-height: 1.65; font-weight: 300;
}
.diff-text strong { color: var(--cream); font-weight: 500; }

/* ── SERVICES ── */
#services { padding: clamp(3rem, 8vw, 7rem) clamp(2rem, 6vw, 6rem); background: var(--stone); }
.services-header {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: flex-end; gap: 2rem; margin-bottom: 4rem;
}
.services-sub {
  max-width: 380px; font-size: 0.9rem;
  color: var(--mid); font-weight: 300; line-height: 1.7;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.service-card {
  background: var(--cream); padding: 2.5rem;
  position: relative; overflow: hidden;
  transition: transform 0.25s;
}
.service-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.service-card:hover { transform: translateY(-3px); }
.service-card:hover::before { transform: scaleX(1); }
.service-card.dark { background: var(--forest); cursor: pointer; }
.service-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem; font-weight: 300;
  color: var(--stone); line-height: 1; margin-bottom: 1rem;
  user-select: none;
}
.service-card.dark .service-num { color: rgba(246,243,238,.1); }
.service-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 500;
  color: var(--forest); margin-bottom: 1rem;
}
.service-card.dark .service-title { color: var(--cream); }
.service-list { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.service-list li {
  font-size: 0.85rem; color: var(--mid);
  padding-left: 1rem; position: relative; font-weight: 300;
}
.service-list li::before { content: '—'; position: absolute; left: 0; color: var(--gold); font-size: 0.75rem; }
.service-cta-text {
  font-size: 0.88rem; color: rgba(246,243,238,.6);
  font-weight: 300; line-height: 1.65; margin-bottom: 1.5rem;
}
.service-link {
  font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold); font-weight: 500;
}

/* ── CLIENTS ── */
#clients { padding: clamp(3rem, 6vw, 5.5rem) clamp(2rem, 8vw, 7rem); background: var(--cream); text-align: center; }
#clients .section-heading { margin-top: 0.5rem; }
.clients-sub {
  margin: 1rem auto 3.5rem; font-size: 0.95rem;
  color: var(--mid); font-weight: 300; max-width: 520px; line-height: 1.7;
}
.client-names { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 3.5rem; }
.client-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem; font-weight: 400;
  color: rgba(26,48,40,.3); letter-spacing: 0.02em;
  transition: color 0.2s;
}
.client-name:hover { color: var(--forest); }

/* ── APPROACH ── */
#approach { display: grid; grid-template-columns: 1fr 1fr; }
.approach-left {
  background: var(--sage);
  padding: clamp(3rem, 8vw, 7rem) clamp(2rem, 6vw, 6rem);
  display: flex; flex-direction: column; justify-content: center; gap: 3rem;
}
.approach-left .section-heading { color: var(--cream); }
.approach-left .section-label { color: var(--gold-lt); }

.approach-steps { display: flex; flex-direction: column; gap: 2rem; margin-top: 0.5rem; }
.approach-step { display: flex; gap: 1.5rem; align-items: flex-start; }
.step-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 300;
  color: var(--gold-lt); min-width: 2rem; padding-top: 0.05rem;
}
.step-title {
  font-size: 0.83rem; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--cream); margin-bottom: 0.3rem;
}
.step-desc { font-size: 0.88rem; color: rgba(246,243,238,.62); font-weight: 300; line-height: 1.65; }

.approach-right {
  background: var(--mist);
  padding: clamp(3rem, 8vw, 7rem) clamp(2rem, 6vw, 6rem);
  display: flex; flex-direction: column; justify-content: center;
}
.approach-right .section-label { color: var(--sage); }
.approach-right .section-heading { color: var(--forest); }

.how-items { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
.how-item {
  background: white; padding: 1.4rem 1.6rem;
  border-left: 3px solid var(--gold);
  font-size: 0.9rem; color: var(--mid); font-weight: 300; line-height: 1.6;
}
.how-item strong {
  color: var(--forest); font-weight: 500; display: block;
  margin-bottom: 0.25rem; font-size: 0.78rem;
  letter-spacing: 0.07em; text-transform: uppercase;
}

/* ── CONTACT ── */
#contact {
  background: var(--forest);
  padding: clamp(3rem, 8vw, 7rem) clamp(2rem, 8vw, 7rem);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6vw; align-items: center;
}
#contact .section-label { color: var(--gold-lt); }
#contact .section-heading { color: var(--cream); margin-bottom: 1.5rem; }
.contact-body {
  font-size: 0.95rem; color: rgba(246,243,238,.65);
  font-weight: 300; line-height: 1.8; margin-bottom: 2.5rem;
}
.contact-details { display: flex; flex-direction: column; gap: 1rem; }
.contact-row { display: flex; gap: 1rem; align-items: center; }
.contact-icon { font-size: 1rem; width: 22px; text-align: center; }
.contact-value { font-size: 0.9rem; color: rgba(246,243,238,.72); font-weight: 300; }
.contact-value a { color: inherit; transition: color 0.2s; }
.contact-value a:hover { color: var(--gold-lt); }

.contact-form-box {
  background: rgba(246,243,238,.04);
  border: 1px solid rgba(246,243,238,.1);
  padding: 3rem; border-radius: 2px;
}
.contact-form-box h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 400;
  color: var(--cream); margin-bottom: 2rem;
}
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block; font-size: 0.7rem;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: rgba(246,243,238,.45); margin-bottom: 0.4rem; font-weight: 500;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(246,243,238,.06);
  border: 1px solid rgba(246,243,238,.14);
  color: var(--cream);
  padding: 0.8rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; font-weight: 300;
  border-radius: 2px; outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none; appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(246,243,238,.28); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--gold); }
.form-group textarea { height: 100px; resize: vertical; }
.form-group select option { background: var(--forest); color: var(--cream); }
.form-group select { cursor: pointer; }
.form-submit {
  width: 100%; padding: 0.9rem;
  background: var(--gold); color: var(--forest);
  border: none; font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; border-radius: 2px;
  transition: background 0.2s; margin-top: 0.5rem;
}
.form-submit:hover { background: var(--gold-lt); }
.form-submit.sent { background: var(--sage); }

/* ── FOOTER ── */
footer {
  background: #111a16;
  padding: 2.2rem clamp(2rem, 8vw, 7rem);
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center; gap: 1rem;
  border-top: 1px solid rgba(176,141,87,.18);
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; font-weight: 400;
  color: rgba(246,243,238,.55); letter-spacing: 0.04em;
}
.footer-copy { font-size: 0.76rem; color: rgba(246,243,238,.28); letter-spacing: 0.05em; }
.footer-linkedin {
  font-size: 0.76rem; color: rgba(246,243,238,.38);
  display: flex; align-items: center; gap: 0.45rem;
  transition: color 0.2s;
}
.footer-linkedin:hover { color: var(--gold-lt); }
.footer-linkedin svg { flex-shrink: 0; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Large desktop (1400px+) — extra breathing room */
@media (min-width: 1400px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-heading { font-size: 5rem; }
}

/* Medium desktop (1100–1399px) */
@media (max-width: 1200px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet landscape (901–1099px) */
@media (max-width: 1100px) {
  #about { grid-template-columns: 1fr; }
  .about-right { padding: 3.5rem clamp(2rem, 6vw, 5rem); }
  .about-left  { padding: 3.5rem clamp(2rem, 6vw, 5rem); }

  #approach { grid-template-columns: 1fr; }
  .approach-left  { padding: 3.5rem clamp(2rem, 6vw, 5rem); }
  .approach-right { padding: 3.5rem clamp(2rem, 6vw, 5rem); }

  #contact { grid-template-columns: 1fr; }
  .contact-form-box { display: none; } /* hide form on tablet — show contact info */
}

/* Tablet portrait + small laptop (768–900px) */
@media (max-width: 900px) {
  :root { --nav-h: 60px; }

  #home { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { min-height: calc(100vh - var(--nav-h)); padding: 3.5rem 6vw 4rem; }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  #services { padding: 3.5rem 6vw; }
  .services-header { flex-direction: column; }
  .services-sub { max-width: 100%; }

  #clients { padding: 3rem 6vw; }
  .client-names { gap: 1rem 2.5rem; }

  footer { flex-direction: column; text-align: center; gap: 0.6rem; }
}

/* Large phone landscape + small tablet (600–767px) */
@media (max-width: 767px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .hero-heading { font-size: clamp(2.4rem, 8vw, 3.2rem); }
}

/* Phone portrait (up to 599px) */
@media (max-width: 599px) {
  body { font-size: 15px; }

  .hero-left { padding: 2.5rem 5vw 3rem; }
  .hero-heading { font-size: clamp(2.2rem, 10vw, 2.8rem); }
  .hero-sub { font-size: 0.93rem; }
  .hero-cta-group { flex-direction: column; }
  .btn-primary, .btn-outline { text-align: center; }

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

  .about-left, .about-right,
  .approach-left, .approach-right { padding: 3rem 5vw; }

  #contact { padding: 3rem 5vw; }
  .contact-body { font-size: 0.9rem; }

  .client-names { gap: 0.8rem 2rem; }
  .client-name { font-size: 1.2rem; }

  .section-heading { font-size: clamp(1.7rem, 7vw, 2.2rem); }

  footer { padding: 2rem 5vw; }
  .footer-copy { font-size: 0.7rem; }
}

/* Very small phones (up to 380px) */
@media (max-width: 380px) {
  .hero-heading { font-size: 2rem; }
  .hero-eyebrow { font-size: 0.68rem; }
  .section-heading { font-size: 1.7rem; }
  .service-card { padding: 1.8rem; }
  .how-item { padding: 1.1rem 1.2rem; }
}
