/* Green Crescendo Ventures — shared stylesheet */
/* Fonts loaded via <link> in HTML for faster rendering */

/* ── Design tokens ── */
:root {
  --emerald:    #0B3D2E;
  --gold:       #C9A646;
  --charcoal:   #1A1A1A;
  --white:      #FFFFFF;
  --off-white:  #F7F6F3;
  --border:     #E2DFD7;

  --font-head:  'Playfair Display', Georgia, serif;
  --font-body:  'Inter', system-ui, sans-serif;

  --max:        1200px;
  --pad-x:      2rem;
  --pad-section: 6rem var(--pad-x);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--charcoal);
  background: var(--white);
}

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

/* Skip-to-content link — visible only on keyboard focus */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--pad-x);
  z-index: 300;
  background: var(--emerald);
  color: var(--white);
  padding: 0.6rem 1.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.06em;
}
.skip-link:focus {
  top: 12px;
}

/* Keyboard focus ring — visible only via keyboard, not mouse */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ── Nav ── */
nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: 72px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  transition: box-shadow 0.25s;
}
/* Subtle shadow when page is scrolled — toggled by JS */
nav.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }

.nav-logo {
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--charcoal);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-logo-icon {
  width: 28px;
  height: 28px;
  display: block;
}
.nav-logo em { color: var(--gold); font-style: normal; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.4rem;
}
.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--charcoal);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--emerald);
  border-bottom-color: var(--gold);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--charcoal);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Hero ── */
.hero {
  background: var(--emerald);
  color: var(--white);
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 7rem var(--pad-x) 4rem;
}
.hero-inner { max-width: var(--max); width: 100%; }

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 400;
  line-height: 1.15;
  max-width: 780px;
  margin-bottom: 1.6rem;
}

.hero-sub {
  font-size: 1rem;
  font-weight: 300;
  max-width: 520px;
  line-height: 1.8;
  opacity: 0.75;
  margin-bottom: 3rem;
}

/* ── Gold rule ── */
.rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 1.6rem;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 2.2rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.btn:hover { background: var(--gold); color: var(--charcoal); }

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

/* ── Generic section ── */
section { padding: var(--pad-section); }
.inner  { max-width: var(--max); margin: 0 auto; width: 100%; }

.overline {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}

/* ── Focus areas (homepage) ── */
.focus { background: var(--off-white); }

.focus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 3rem;
}

.focus-card {
  background: var(--white);
  padding: 2.8rem 2rem;
  transition: background 0.2s, color 0.2s;
}
.focus-card:hover { background: var(--emerald); color: var(--white); }
.focus-card:hover .fc-num { color: rgba(201,166,70,0.4); }

.fc-num {
  font-family: var(--font-head);
  font-size: 2.5rem;
  color: var(--border);
  display: block;
  margin-bottom: 1.2rem;
  line-height: 1;
  transition: color 0.2s;
}

.focus-card h2 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: 0.6rem;
}

.focus-card p {
  font-size: 0.86rem;
  opacity: 0.65;
  line-height: 1.6;
}

/* ── Page header (inner pages) ── */
.page-header {
  background: var(--emerald);
  color: var(--white);
  padding: 10rem var(--pad-x) 5rem;
}
.page-header h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  max-width: 640px;
  margin-bottom: 1rem;
}
.page-header p {
  font-size: 1rem;
  font-weight: 300;
  opacity: 0.75;
  max-width: 500px;
}

/* ── Portfolio grid ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 3rem;
}

.p-card {
  background: var(--white);
  padding: 3rem 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.2s;
}
.p-card:hover { background: var(--off-white); }

/* Fixed-height container keeps all logos the same size so text aligns beneath */
.p-card-logo-wrap {
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  border: 1px solid var(--gold);
}

.p-card-logo-wrap img {
  max-height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Dark logo: fill the full container width, centered */
.p-card-logo-wrap--dark {
  background: #000;
  justify-content: center;
  padding: 12px 0;
  width: 100%;
}

.p-card-logo-wrap--dark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.p-card-tag {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.p-card h2 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--emerald);
  line-height: 1.25;
}

.p-card p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: #555;
  flex: 1;
}

/* ── About text ── */
.about-body {
  max-width: 700px;
}
.about-body p {
  font-size: 1.02rem;
  line-height: 1.9;
  margin-bottom: 2rem;
  color: #333;
}
.about-body p:last-child { margin-bottom: 0; }

/* ── About split layout ── */
.about-split {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 5rem;
  align-items: start;
}

.about-photo-wrap {
  position: static;
}

.about-photo {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}

@media (max-width: 900px) {
  .about-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-photo-wrap {
    position: static;
    max-width: 320px;
  }
}

/* ── Partnerships list ── */
.partner-list {
  list-style: none;
  margin-top: 2.4rem;
  border-top: 1px solid var(--border);
}
.partner-list li {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.98rem;
}
.partner-list li::before {
  content: '';
  flex-shrink: 0;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

/* ── Portfolio placeholder for future card ── */
.p-card-placeholder {
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  border: 1px dashed var(--border);
  color: var(--border);
  font-family: var(--font-head);
  font-size: 1.8rem;
  letter-spacing: 0.08em;
}

/* ── Partnership CTA ── */
.partner-cta {
  margin-top: 3.5rem;
  font-size: 0.95rem;
  color: #555;
  max-width: 480px;
  line-height: 1.8;
}
.partner-cta-btn {
  margin-top: 1.5rem;
}

/* ── Contact body ── */
.contact-body {
  max-width: 520px;
  font-size: 0.98rem;
  color: #444;
  line-height: 1.8;
}

/* ── Contact form ── */
.contact-form {
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border);
  max-width: 560px;
}

.contact-form .overline { margin-bottom: 1.4rem; }

.form-row {
  margin-bottom: 1.6rem;
}

.form-row label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  transition: border-color 0.18s;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--gold);
}
/* Remove the double indicator on mouse click but keep outline for keyboard */
.form-row input:focus:not(:focus-visible),
.form-row select:focus:not(:focus-visible),
.form-row textarea:focus:not(:focus-visible) {
  outline: none;
}

.form-row textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.7;
}

.form-row select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%231A1A1A'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-status {
  margin-top: 1.2rem;
  font-size: 0.88rem;
  color: var(--emerald);
  display: none;
}
.form-status.visible { display: block; }

/* ── Contact ── */
.contact-email {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--emerald);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  display: inline-block;
  margin-top: 1.5rem;
  transition: color 0.18s;
}
.contact-email:hover { color: var(--gold); }

.contact-note {
  margin-top: 3rem;
  font-size: 0.88rem;
  color: #888;
}

/* ── Footer ── */
footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.35);
  padding: 2.8rem var(--pad-x);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.footer-logo {
  font-family: var(--font-head);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .focus-grid        { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid    { grid-template-columns: 1fr; }

  /* Hamburger menu on tablets */
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 2rem var(--pad-x);
    gap: 1.6rem;
  }
  .nav-links.open { display: flex; }
}

@media (max-width: 600px) {
  :root { --pad-section: 4rem var(--pad-x); }

  .focus-grid     { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}
