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

/* ==========================================================================
   1. IMPORTS & FONTS
   ========================================================================== */
/* No specific classes - global font imports only */

/* ==========================================================================
   2. CUSTOM PROPERTIES & COLOR THEMES
   ========================================================================== */
:root {
  --color-accent: #6cd;
  --color-background: #fff;
  --color-text: #236;
  --color-white: #fff;
  /* --color-cream: #f9f5ec; */ /* Available if needed */

  /* Color variations */
  --color-text-10: #2233661a;
  --color-text-05: #2233660d;
  --color-text-60: #22336699;
  --color-white-10: #ffffff1a;
}

/* ==========================================================================
   3. RESET & BASE STYLES
   ========================================================================== */
/* No specific classes - global element styles only */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font: 100%/1 'DM Sans', system-ui, sans-serif;
  background: var(--color-background);
  color: var(--color-text);
}

h1,
h2,
h3,
p {
  margin: 0;
}

/* ==========================================================================
   4. TYPOGRAPHY
   ========================================================================== */
h1 {
  font-size: 5rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 3rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
}

p {
  line-height: 1.5;
  max-width: 65ch;
}

small {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.copy-2024 {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  line-height: 1.6;
  max-width: 65ch;
}

@media (max-width: 768px) {
  h1 {
    font-size: 3.5rem;
  }
}

/* ==========================================================================
   5. LAYOUT FUNDAMENTALS
   ========================================================================== */
.content {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Apply uniform padding to all sections */
section {
  padding: 4rem 0;
}

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

/* ==========================================================================
   6. SHARED COMPONENTS
   ========================================================================== */
.button,
.linkedin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--color-text);
  border-radius: 2rem;
  color: var(--color-white);
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover,
.linkedin-button:hover {
  background: var(--color-accent);
}

.linkedin-button {
  width: 100%;
}

/* ==========================================================================
   7. HEADER & HERO
   ========================================================================== */
#header {
  width: 100%;
  padding: 2rem 0;
}

#hero {
  padding: 4rem 0;
}

#hero .content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}

#hero p {
  font-size: 1.5rem;
  line-height: 1.5;
  max-width: 40rem;
}

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

/* ==========================================================================
   8. LETTER SECTION
   ========================================================================== */
/* Classes used:
   - .letter (section container)
   - .stack (vertical stack layout)
   Components used:
   - .linkedin-button
   - .copy-2024
*/
#letter {
}

#letter .content {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 3fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 768px) {
  #letter .content {
    grid-template-columns: 1fr;
  }
}

#letter .stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

#letter img {
  aspect-ratio: 3/4;
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: cover;
  border-radius: 0.75rem;
}

/* ==========================================================================
   9. STATS SECTION
   ========================================================================== */
#stats .stat-cards {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.stat-card {
  flex: 1;
  max-width: 16rem;
  padding: 2rem;
  background: var(--color-text-05);
  border-radius: 1rem;
  text-align: center;
}

.stat-card .number {
  font-size: 3rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.stat-card .label {
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--color-text-60);
}

@media (max-width: 768px) {
  .stat-cards {
    flex-direction: column;
    align-items: center;
  }

  .stat-card {
    width: 100%;
  }
}

/* ==========================================================================
   10. REACH OUT SECTION
   ========================================================================== */
/* Classes used:
   - .reach-out (section container)
   - .list (vertical list layout)
*/
#reach-out {
}

#reach-out .content {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 3fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 768px) {
  #reach-out .content {
    grid-template-columns: 1fr;
  }
}

#reach-out .list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

#reach-out p {
  font-size: 1.25rem;
  line-height: 1.5;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-text-10);
}

/* ==========================================================================
   11. PROJECTS SECTION
   ========================================================================== */
/* Classes used:
   - .projects (section container)
   - .wrap (flex container for cards)
   - .product-card (individual project card)
   Components used:
   - .badges
   - .badge
*/
#projects {
}

#projects .content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

#projects .content .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.product-card {
  min-height: 19rem;
  padding: 2rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  position: relative; /* For overlay positioning */
  isolation: isolate; /* Create stacking context */
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(34, 51, 102, 0.9), rgba(34, 51, 102, 0));
  border-radius: inherit;
  z-index: -1;
}

.airport-safety::before {
  background: linear-gradient(to top, rgba(34, 51, 102, 0.9), rgba(34, 51, 102, 0.2));
}

/* Specific background images for each card */
.ebike {
  background-image: url('https://res.cloudinary.com/moona/image/upload/v1737501377/FocalConsulting/vander-films-iyMab-cmy3I-unsplash_pprfxf.jpg');
}

.charging {
  background-image: url('https://res.cloudinary.com/moona/image/upload/v1737501195/FocalConsulting/Profile-100-Fluid-C-C-2K_xvmoma.png');
}

/* Ensure content stays above overlay */
.product-card .badges,
.product-card h3,
.product-card p {
  position: relative;
  z-index: 1;
}

.product-card h3 {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.product-card p {
  font-size: 1.125rem;
  opacity: 0.9;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  background: var(--color-white-10);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  white-space: nowrap;
}

/* Card width assignments */
.product-card:nth-child(1) {
  grid-column: span 2;
} /* First card - wide */
.product-card:nth-child(2) {
  grid-column: span 1;
} /* Second card - narrow */
.product-card:nth-child(3) {
  grid-column: span 1;
} /* Third card - narrow */
.product-card:nth-child(4) {
  grid-column: span 2;
} /* Fourth card - wide */
.product-card:nth-child(5) {
  grid-column: span 2;
} /* Fifth card - wide */
.product-card:nth-child(6) {
  grid-column: span 1;
} /* Sixth card - narrow */

@media (max-width: 768px) {
  #projects .content .wrap {
    grid-template-columns: 1fr;
  }

  .product-card:nth-child(n) {
    grid-column: 1; /* Reset all cards to full width on mobile */
  }
}

/* Add to the projects section */
.airport-safety {
  background-image: url('https://res.cloudinary.com/moona/image/upload/v1737501192/FocalConsulting/OTW-AHL-1_jikmo5.jpg');
}

.soft-goods {
  background-image: url('https://res.cloudinary.com/moona/image/upload/f_auto,q_auto/v1737501656/FocalConsulting/backpack-woods-trucker-cap_qg2mec');
}

.photo {
  background-image: url('https://images.unsplash.com/photo-1471341971476-ae15ff5dd4ea');
}

.power-tool {
  background-image: url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122');
}

/* ==========================================================================
   12. CONTACT SECTION
   ========================================================================== */
#contact {
}

#contact .content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

#contact .calendly-inline-widget {
  width: 100%;
  height: 44rem;
  background: var(--color-text-05);
  border-radius: 0.75rem;
}

@media (max-width: 1024px) {
  #contact .calendly-inline-widget {
    height: 88rem;
  }
}

@media (max-width: 768px) {
  #contact .calendly-inline-widget {
    margin-left: -2rem;
    margin-right: -2rem;
    width: calc(100% + 4rem);
    border-radius: 0;
  }
}

/* ==========================================================================
   13. FOOTER
   ========================================================================== */
#footer {
  padding: 4rem 0 6rem;
}

#footer .stack {
  display: flex;
  flex-direction: column;
  gap: 2rem; /* Match the consistent gap we use elsewhere */
}

#footer p {
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--color-text-60);
}
