/* ZB Ventures — main stylesheet */

/* =============================================================================
   1. GOOGLE FONTS IMPORT
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;1,9..144,300&family=Instrument+Sans:wght@400;500;600&display=swap');

/* =============================================================================
   2. CSS RESET
   ============================================================================= */

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

html,
body {
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =============================================================================
   3. CSS CUSTOM PROPERTIES
   ============================================================================= */

:root {
  --bg: #F9F7F5;
  --text: #1A1A1A;
  --primary: #4A5568;
  --accent: #C96442;
  --surface: #F0EDE8;
  --border: #E2DDD8;
  --max-width: 1100px;
  --header-height: 72px;
  --radius: 4px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --transition: 200ms ease;
}

/* =============================================================================
   4. BASE TYPOGRAPHY
   ============================================================================= */

body {
  font-family: 'Instrument Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

h1,
h2,
h3,
h4 {
  font-family: 'Fraunces', serif;
  color: var(--primary);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  max-width: 65ch;
}

.eyebrow {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

/* =============================================================================
   5. LAYOUT UTILITIES
   ============================================================================= */

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

.section {
  padding: 5rem 0;
}

@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }
}

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

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

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* =============================================================================
   6. BUTTONS
   ============================================================================= */

.btn-primary {
  background: var(--accent);
  color: white;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-block;
  transition: background var(--transition);
  border: none;
}

.btn-primary:hover {
  background: #b55538;
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-block;
  transition: background var(--transition), color var(--transition);
  border: 2px solid var(--primary);
}

.btn-ghost:hover {
  background: var(--primary);
  color: white;
}

.btn-ghost-white {
  background: transparent;
  color: white;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-block;
  transition: background var(--transition), color var(--transition);
  border: 2px solid white;
}

.btn-ghost-white:hover {
  background: white;
  color: var(--accent);
}

/* =============================================================================
   7. HEADER
   ============================================================================= */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo img {
  height: 60px;
  width: auto;
}

nav#nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav#nav-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
  transition: color var(--transition);
}

nav#nav-menu a:hover {
  color: var(--accent);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-phone {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

/* Hamburger — mobile only */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .header-phone {
    display: none;
  }

  nav#nav-menu {
    display: none;
    position: fixed;
    inset: var(--header-height) 0 0 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 99;
  }

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

  nav#nav-menu a {
    font-size: 1.5rem;
  }

  .header-cta .btn-primary {
    display: none;
  }
}

/* =============================================================================
   8. HERO SECTION
   ============================================================================= */

.hero {
  padding: 7rem 0 5rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  margin: 1rem 0 1.5rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: #4a4a4a;
  margin-bottom: 2.5rem;
  max-width: 55ch;
}

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

.hero-link {
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 768px) {
  .hero {
    padding: 4rem 0 3rem;
    min-height: auto;
  }
}

/* =============================================================================
   9. PROCESS SECTION
   ============================================================================= */

.process {
  background: var(--surface);
  padding: 5rem 0;
}

.process-header {
  max-width: 600px;
  margin-bottom: 3rem;
}

.process-diagram {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

/* =============================================================================
   10. SERVICES OVERVIEW (CARDS)
   ============================================================================= */

.service-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.service-card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.service-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1.25rem;
}

.service-card a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =============================================================================
   11. CTA STRIP
   ============================================================================= */

.cta-strip {
  background: var(--accent);
  padding: 4rem 0;
  text-align: center;
}

.cta-strip h2 {
  color: white;
  margin-bottom: 0.75rem;
}

.cta-strip p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* =============================================================================
   12. SERVICES PAGE — DETAIL SECTIONS
   ============================================================================= */

.service-detail {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}

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

.service-detail-number {
  font-family: 'Fraunces', serif;
  font-size: 4rem;
  color: var(--border);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* =============================================================================
   13. ABOUT PAGE
   ============================================================================= */

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat-block {
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
}

.stat-number {
  font-family: 'Fraunces', serif;
  font-size: 3rem;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.25rem;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-item {
  padding: 2rem;
  background: var(--surface);
  border-radius: var(--radius);
}

.value-item h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.value-item p {
  font-size: 0.9rem;
  color: #555;
}

/* =============================================================================
   14. CONTACT PAGE
   ============================================================================= */

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

.contact-phone {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  color: var(--primary);
  font-weight: 400;
}

.contact-phone a:hover {
  color: var(--accent);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.95rem;
  background: white;
  color: var(--text);
  transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

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

/* =============================================================================
   15. FOOTER
   ============================================================================= */

footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 2rem;
}

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

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
    align-items: start;
  }
}

footer .logo img {
  filter: brightness(0) invert(1);
  opacity: 0.9;
  height: 54px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav a {
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: white;
}

.footer-legal {
  font-size: 0.8rem;
  line-height: 1.6;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  text-align: center;
}

/* =============================================================================
   16. SCROLL REVEAL
   ============================================================================= */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* =============================================================================
   17. PAGE HERO (INNER PAGES — SERVICES, ABOUT, CONTACT)
   ============================================================================= */

.page-hero {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.page-hero .eyebrow {
  margin-bottom: 0.75rem;
}

.page-hero h1 {
  max-width: 600px;
}

.page-hero p {
  font-size: 1.1rem;
  color: #555;
  margin-top: 1rem;
  max-width: 55ch;
}

/* Section alternation */
.section-alt {
  background: var(--surface);
}

/* Grid column reverse (alternating service layout) */
@media (min-width: 768px) {
  .grid-2.reverse {
    direction: rtl;
  }
  .grid-2.reverse > * {
    direction: ltr;
  }
}
