/* ============================================================
   DUMBO YACHT CLUB — Stylesheet
   ============================================================ */

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

/* =====================
   Custom Properties
   ===================== */
:root {
  --black:      #000000;
  --white:      #ffffff;
  --yellow:     #FFD700;
  --light-gray: #F5F5F5;
  --charcoal:   #1A1A1A;

  --font: 'Montserrat', sans-serif;

  --max-w:  1200px;
  --pad-y:  100px;
  --gutter: 40px;

  --ease:   0.3s ease;
  --radius: 4px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { cursor: pointer; font-family: var(--font); }

/* =====================
   Typography
   ===================== */
h1 {
  font-size: clamp(38px, 5.5vw, 56px);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.08;
}

h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.15;
}

h3 {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  line-height: 1.3;
}

p { line-height: 1.78; }

strong { font-weight: 700; }

/* =====================
   Layout Utilities
   ===================== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 14px;
}

.divider {
  width: 48px;
  height: 3px;
  background: var(--yellow);
  margin: 20px 0;
}
.divider-center { margin: 20px auto; }

.text-center { text-align: center; }

/* =====================
   Buttons
   ===================== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--radius);
  transition:
    background-color var(--ease),
    color var(--ease),
    border-color var(--ease);
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}
.btn-primary:hover {
  background: var(--black);
  color: var(--yellow);
  border-color: var(--black);
}

.btn-secondary {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn-secondary:hover {
  background: var(--black);
  color: var(--yellow);
  border-color: var(--black);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline-white:hover {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}

/* =====================
   Navigation
   ===================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.site-header.scrolled {
  border-color: #e8e8e8;
  box-shadow: 0 4px 32px rgba(0,0,0,0.06);
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
}

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

.logo-img {
  width: 180px;
  height: auto;
  display: block;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
}

.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--black);
  position: relative;
  padding-bottom: 3px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: width var(--ease);
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta { margin-left: 8px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 17px;
  background: none;
  border: none;
  padding: 0;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--black);
  transition: transform var(--ease), opacity var(--ease), width var(--ease);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: translateY(7.75px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.75px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 999;
  padding: 52px var(--gutter) 40px;
  flex-direction: column;
  gap: 40px;
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(0.76, 0, 0.24, 1);
  overflow-y: auto;
}

.mobile-menu.open { transform: translateX(0); }

.mobile-nav { display: flex; flex-direction: column; gap: 0; }

.mobile-nav a {
  display: block;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--black);
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  transition: color var(--ease);
}

.mobile-nav a:first-child { border-top: 1px solid #eee; }
.mobile-nav a:hover { color: #666; }

.mobile-cta { margin-top: 8px; }

/* =====================
   Hero
   ===================== */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 72px 0 0;
  background: var(--white);
}

.hero .container {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.hero h1 {
  margin-bottom: 28px;
  color: var(--black);
}

.hero-sub {
  font-size: 19px;
  color: #444;
  margin-bottom: 48px;
  max-width: 460px;
  line-height: 1.7;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero wave decoration */
.hero-wave {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 52%;
  max-width: 660px;
  pointer-events: none;
  z-index: 1;
  animation: wave-drift 12s ease-in-out infinite;
}

@keyframes wave-drift {
  0%, 100% { transform: translateY(-50%) translateX(0px); }
  50%       { transform: translateY(-50%) translateX(14px); }
}

/* =====================
   How We're Different
   ===================== */
.how-different {
  padding: var(--pad-y) 0;
  background: var(--light-gray);
}

.how-different .inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.how-different h2 { margin-bottom: 12px; }

.how-different p {
  font-size: 18px;
  color: #444;
  line-height: 1.85;
  margin-top: 28px;
}

/* =====================
   What We Do
   ===================== */
.what-we-do {
  padding: var(--pad-y) 0;
  background: var(--white);
}

.what-we-do .section-head {
  text-align: center;
  margin-bottom: 64px;
}

.wwd-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  background: #e8e8e8;
  margin-bottom: 64px;
}

.wwd-item {
  background: var(--white);
  text-align: center;
  padding: 40px 20px;
  transition: background var(--ease);
}

.wwd-item:hover { background: var(--light-gray); }

.wwd-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 20px;
}

.wwd-icon svg {
  width: 100%;
  height: 100%;
}

.wwd-item h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--black);
}

.wwd-item p {
  font-size: 13px;
  color: #666;
  line-height: 1.75;
}

.wwd-cta { text-align: center; }

/* =====================
   Services Overview (Homepage)
   ===================== */
.services-overview {
  padding: var(--pad-y) 0;
  background: var(--light-gray);
}

.services-overview .section-head {
  text-align: center;
  margin-bottom: 56px;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: #d8d8d8;
}

.svc-card {
  background: var(--white);
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  transition: background var(--ease);
  text-decoration: none;
  color: var(--black);
}

.svc-card:hover { background: var(--charcoal); }

.svc-card:hover h3,
.svc-card:hover p { color: #ddd; }

.svc-card:hover .card-link { color: var(--yellow); }

.svc-card:hover .card-icon svg path,
.svc-card:hover .card-icon svg rect,
.svc-card:hover .card-icon svg polyline,
.svc-card:hover .card-icon svg line,
.svc-card:hover .card-icon svg circle { stroke: var(--yellow); }

.card-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 28px;
  flex-shrink: 0;
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.svc-card h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  transition: color var(--ease);
}

.svc-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.78;
  margin-bottom: 28px;
  flex: 1;
  transition: color var(--ease);
}

.card-link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--black);
  position: relative;
  display: inline-block;
  transition: color var(--ease);
}

.card-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--yellow);
}

/* =====================
   Page Hero (Inner Pages)
   ===================== */
.page-hero {
  padding: 164px 0 80px;
  background: var(--white);
}

.page-hero h1 { margin-bottom: 20px; }

.page-hero .lead {
  font-size: 18px;
  color: #555;
  max-width: 640px;
  line-height: 1.78;
}

.page-hero.centered { text-align: center; }
.page-hero.centered .lead { margin: 0 auto; }
.page-hero.centered .divider { margin: 16px auto 0; }

/* =====================
   Services Page
   ===================== */
.svc-section {
  padding: 88px 0;
}

.svc-section:nth-of-type(even) { background: var(--light-gray); }

.svc-section-inner { max-width: 800px; }

.svc-section h2 {
  font-size: clamp(22px, 2.8vw, 34px);
  margin-bottom: 12px;
}

.svc-positioning {
  font-size: 18px;
  color: #555;
  margin-bottom: 44px;
  padding-left: 20px;
  border-left: 3px solid var(--yellow);
  font-weight: 400;
  line-height: 1.55;
}

.capabilities {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.capabilities li {
  font-size: 16px;
  color: #333;
  padding-left: 28px;
  position: relative;
  line-height: 1.65;
}

.capabilities li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 12px;
  height: 2px;
  background: var(--yellow);
}

/* Services CTA banner */
.svc-cta-banner {
  background: var(--black);
  padding: var(--pad-y) 0;
  text-align: center;
}

.svc-cta-banner h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.svc-cta-banner p {
  color: #999;
  font-size: 18px;
  margin-bottom: 44px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* =====================
   About Page
   ===================== */
.about-section {
  padding: 88px 0;
}

.about-section:nth-of-type(even) { background: var(--light-gray); }

.about-inner {
  max-width: 800px;
  margin: 0 auto;
}

.about-section h2 { margin-bottom: 36px; }

.about-section p {
  color: #333;
  margin-bottom: 24px;
  font-size: 17px;
}

.about-section p:last-child { margin-bottom: 0; }

/* Problem blocks */
.problem-block {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid #e5e5e5;
}

.problem-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.problem-block h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--black);
}

/* Belief items */
.belief-items {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
}

.belief-item {
  font-size: 17px;
  color: #333;
  padding: 16px 0 16px 32px;
  position: relative;
  border-top: 1px solid #eee;
  line-height: 1.75;
}

.belief-item:last-child { border-bottom: 1px solid #eee; }

.belief-item::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--yellow);
  font-weight: 700;
}

/* How We Work */
.work-attrs {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.work-attr {
  display: grid;
  grid-template-columns: 110px 24px 1fr;
  gap: 0 8px;
  align-items: baseline;
}

.work-attr-label {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.work-attr-arrow {
  color: var(--yellow);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.work-attr-desc {
  font-size: 16px;
  color: #444;
  line-height: 1.65;
}

/* Values grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}

.value-card h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--yellow);
}

.value-card p {
  font-size: 15px;
  color: #555;
  line-height: 1.82;
  margin-bottom: 0;
}

/* Founder / Tarirai section */
.founder-section {
  background: var(--black);
  padding: var(--pad-y) 0;
  color: var(--white);
}

.founder-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 72px;
  align-items: start;
}

.founder-photo-wrap {
  position: relative;
  flex-shrink: 0;
}

.founder-photo-wrap::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: -14px;
  right: 14px;
  top: 14px;
  border: 2px solid var(--yellow);
  z-index: 0;
}

.founder-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  display: block;
  position: relative;
  z-index: 1;
}

.founder-content {
  padding-top: 4px;
}

.founder-section h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.founder-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--yellow);
  margin-bottom: 6px;
}

.founder-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 32px;
}

.founder-bio {
  font-size: 16px;
  color: #bbb;
  line-height: 1.85;
  margin-bottom: 20px;
}

.founder-bio:last-of-type {
  margin-bottom: 40px;
}

/* =====================
   Contact Page
   ===================== */
.contact-hero {
  padding: 164px 0 60px;
  background: var(--white);
  text-align: center;
}

.contact-hero h1 { margin-bottom: 20px; }

.contact-hero p {
  font-size: 18px;
  color: #555;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
}

.contact-body {
  padding: 60px 0 120px;
  background: var(--white);
}

.contact-form-wrap {
  max-width: 600px;
  margin: 0 auto;
}

.form-group { margin-bottom: 28px; }

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--black);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 16px;
  border: 1.5px solid #ddd;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--black);
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255,215,0,0.18);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #c0392b;
}

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

.field-error {
  display: none;
  font-size: 12px;
  color: #c0392b;
  margin-top: 6px;
  font-weight: 500;
}

.field-error.show { display: block; }

.contact-form .btn {
  width: 100%;
  padding: 16px;
  font-size: 14px;
}

.form-success {
  display: none;
  background: #f2faf3;
  border: 1.5px solid #27ae60;
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  margin-top: 28px;
}

.form-success.show { display: block; }

.form-success p {
  color: #1e8449;
  font-weight: 600;
  font-size: 16px;
}

.contact-alt {
  max-width: 600px;
  margin: 52px auto 0;
  text-align: center;
  padding-top: 52px;
  border-top: 1px solid #eee;
}

.contact-alt p {
  font-size: 15px;
  color: #666;
}

.contact-alt a {
  color: var(--black);
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.contact-alt a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--yellow);
}

/* =====================
   Footer
   ===================== */
.site-footer {
  background: var(--black);
  padding: 64px var(--gutter);
  text-align: center;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--yellow);
}

.footer-email a {
  font-size: 14px;
  color: #888;
  transition: color var(--ease);
}

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

.footer-copy {
  font-size: 12px;
  color: #4a4a4a;
}

/* =====================
   Scroll Animations
   ===================== */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.78s ease, transform 0.78s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* =====================
   Responsive — Tablet (≤ 1024px)
   ===================== */
@media (max-width: 1024px) {
  :root { --gutter: 32px; }

  .wwd-grid  { grid-template-columns: repeat(3, 1fr); }
  .svc-grid  { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }

  .work-attr { grid-template-columns: 100px 24px 1fr; }

  .hero-wave { width: 48%; right: -20px; }

  .founder-layout {
    grid-template-columns: 280px 1fr;
    gap: 52px;
  }
}

/* =====================
   Responsive — Mobile (≤ 768px)
   ===================== */
@media (max-width: 768px) {
  :root {
    --pad-y:  64px;
    --gutter: 24px;
  }

  /* Nav */
  .nav-links,
  .nav-cta   { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }

  /* Hero */
  .hero-wave  { display: none; }
  .hero-ctas  { flex-direction: column; align-items: flex-start; }
  .hero .container { padding-top: 48px; padding-bottom: 48px; }

  /* Grids */
  .wwd-grid    { grid-template-columns: 1fr; gap: 2px; }
  .svc-grid    { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; gap: 28px; }

  /* Work attrs */
  .work-attr {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .work-attr-arrow { display: none; }

  /* Inner page heroes */
  .page-hero    { padding: 128px 0 56px; }
  .contact-hero { padding: 128px 0 52px; }

  /* Founder */
  .founder-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .founder-photo-wrap {
    max-width: 300px;
  }

  /* Scale logo down on mobile */
  .logo-img { width: 140px; }
}

/* =====================
   Responsive — Small (≤ 480px)
   ===================== */
@media (max-width: 480px) {
  h1 { letter-spacing: 1.5px; }
  h2 { letter-spacing: 1px; }

  .mobile-nav a { font-size: 22px; }

  .svc-card { padding: 36px 24px; }

  .btn { padding: 13px 24px; }
}
