/* GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Lora:wght@400;500&family=Inter:wght@300;400;500;600&display=swap');

/* GLOBAL RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* GLOBAL STYLING */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #eaf2f8;
  color: #222;
  line-height: 1.7;
}

/* LINKS */
a {
  transition: opacity 0.2s ease, color 0.2s ease;
}

/* HEADER */
header {
  background: #0a3d62;
  color: white;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

header .logo {
  font-size: 1.4rem;
  font-weight: 600;
}

nav a {
  color: white;
  margin-left: 25px;
  text-decoration: none;
  font-weight: 500;
  opacity: 0.9;
}

nav a:hover {
  opacity: 1;
}

/* HERO SECTION */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 90px 40px 20px 40px; /* reduced bottom padding */
  background: linear-gradient(135deg, #0a3d62, #3c6382);
  color: white;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  position: relative;
  
}
.founder-floating {
  top: calc(66.8% - 10px) !important;
}
.hero-text {
  max-width: 50%;
}

.hero-text h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.25rem;
  line-height: 1.6;
  max-width: 600px;
}

.hero-image img {
  width: 330px;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

/* FOUNDER FLOATING BOX */
.founder-floating {
  position: absolute;
  top: 100%; /* sits directly under hero */
  right: 40px; /* aligns with hero image */
  width: 330px;
  background: white;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  z-index: 10;
}

.founder-floating h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #0a3d62;
  text-align: center;
}

.founder-floating p {
  font-family: 'Lora', serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #222;
  margin-bottom: 12px;
}

/* MAIN CONTENT SECTION — CLEANED */
.section {
  max-width: 1100px;
  margin: 0 auto 40px auto; /* default */
  background: white;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

/* OVERRIDE: MOVE CANVAS UP TO TOUCH HERO */
.section:first-of-type {
  margin-top: -120px !important; /* THIS is the fix */
}

.section h2 {
  grid-column: 1 / -1;
  font-size: 2rem;
  margin-bottom: 10px;
  color: #0a3d62;
}

/* CARD SECTIONS */
.card {
  background: #f8fbff;
  padding: 25px;
  border-radius: 14px;
  border: 1px solid #dce7f3;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* NEWSLETTER */
.newsletter {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 20px;
  padding: 30px;
  background: #eaf2f8;
  border-radius: 14px;
  border: 1px solid #c9dcec;
}

.newsletter input[type="email"] {
  padding: 12px;
  width: 260px;
  max-width: 80%;
  border-radius: 8px;
  border: 1px solid #bbb;
  margin-right: 10px;
}

.newsletter button {
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  background: #0a3d62;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

.newsletter button:hover {
  background: #07405a;
}

/* FOOTER */
footer {
  background: #0a3d62;
  color: #fff;
  padding: 40px;
  text-align: center;
  margin-top: 60px;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
}

footer .social-links a {
  color: #fff;
  margin: 0 10px;
  text-decoration: none;
  font-weight: 500;
  opacity: 0.9;
}

footer .social-links a:hover {
  opacity: 1;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  nav a {
    margin: 10px;
    display: inline-block;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px;
  }

  .hero-text {
    max-width: 100%;
    margin-bottom: 30px;
  }

  .hero-image img {
    width: 240px;
  }

  .section {
    padding: 30px 20px;
  }

  .founder-floating {
    position: static;
    margin: 20px auto;
  }
}

/* DARK MODE */
@media (prefers-color-scheme: dark) {
  body {
    background: #0a0f14;
    color: #f5f5f5;
  }

  header {
    background: #000;
  }

  .card {
    background: #0f1a24;
    border-color: #1f2d3a;
    box-shadow: 0 4px 16px rgba(0,0,0,0.6);
  }

  .newsletter {
    background: #0f1a24;
    border-color: #1f2d3a;
  }

  footer {
    background: #000;
  }

  input, textarea {
    background: #111;
    color: #f5f5f5;
    border-color: #444;
  }
  /* ABOUT PAGE — MATCH HOMEPAGE STRUCTURE */

/* 1 — Make About hero match homepage hero */
.small-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 90px 40px;
  background: linear-gradient(135deg, #0a3d62, #3c6382);
  color: white;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* 2 — Constrain About page photo EXACTLY like homepage */
.founder-photo img {
  width: 330px !important;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

/* 3 — Make About page layout match homepage hero layout */
.founder-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  max-width: 1100px;
  margin: -40px auto 60px auto; /* pulls it up like homepage canvas */
  padding: 0 40px;
}

/* 4 — Make full-width canvas sections match homepage canvas */
.canvas-fullwidth {
  width: 100%;
  background: white;
  padding: 60px 0;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  margin-bottom: 40px;
}

.canvas-fullwidth .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

/* 5 — Make founder bio match homepage text style */
.founder-bio {
  max-width: 650px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #222;
}

/* 6 — Make cards grid match homepage card layout */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

}
