/* ============================================================
   Cool Cal Productions — Main Stylesheet
   ============================================================ */

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

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

:root {
  --color-bg:        #333333;
  --color-hero:      #05487c;
  --color-nav:       #1e1e1e;
  --color-footer:    #2a2a2a;
  --color-footer-line: #111111;
  --color-white:     #ffffff;
  --color-accent:    #1a6baa;
  --max-width:       1200px;
  --nav-height:      64px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV BAR ─────────────────────────────────────────────── */
/* Reference: dark charcoal/near-black bar with blue accent bottom border */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: var(--nav-height);
  background-color: var(--color-nav);
  border-bottom: 3px solid var(--color-hero);
  display: flex;
  align-items: center;
  padding: 0 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-brand {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-brand span {
  color: #5ba3d9;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: #cccccc;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
  position: relative;
}

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

.nav-links a:hover {
  color: var(--color-white);
}

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

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ── HERO SECTION ────────────────────────────────────────── */
/*
  Hero is full-width with solid bg #05487c.
  Split into two equal halves via a table-like layout.
  Portrait image (970×1080) sets the height of the hero.
  The portrait must sit flush with the bottom of the cell.
  Coming Soon image is centered (horiz + vert) in left half.
  Both images are responsive — they scale down with the section.
*/
.hero {
  width: 100%;
  background-color: var(--color-hero);
  overflow: hidden;
}

.hero-table {
  display: flex;
  width: 100%;
  align-items: stretch;
}

/* LEFT CELL */
.hero-left {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  flex-shrink: 0;
}

.hero-left img {
  max-width: 100%;
  width: 100%;
  max-width: 560px;
  height: auto;
  display: block;
}

/* RIGHT CELL */
.hero-right {
  width: 50%;
  display: flex;
  align-items: flex-end;  /* flush with bottom */
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  overflow: hidden;
}

.hero-right img {
  /*
    Portrait natural ratio: 970 × 1080 ≈ 0.898 wide per 1 tall.
    We set width to 100% of the right cell so the image fills it
    and drives the hero height organically.
    max-width is capped so the image doesn't exceed natural size.
  */
  display: block;
  width: 100%;
  max-width: 970px;
  height: auto;
  object-fit: contain;
  object-position: bottom center;
  vertical-align: bottom;
}

/* ── HERO BASE BORDER ────────────────────────────────────── */
/* Decorative transition strip between hero and body */
.hero-base {
  width: 100%;
  display: block;
  line-height: 0;
  font-size: 0;
}

.hero-base img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── PAGE BODY / CONTENT AREA ────────────────────────────── */
.page-body {
  background-color: var(--color-bg);
  width: 100%;
  padding: 60px 24px 80px;
}

.content-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Section headings */
.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--color-white);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin-top: 8px;
}

.content-block {
  margin-bottom: 60px;
}

.content-block p {
  font-size: 1rem;
  line-height: 1.75;
  color: #cccccc;
  max-width: 720px;
}

/* Placeholder content card (to fill body) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.card {
  background: #3d3d3d;
  border: 1px solid #4a4a4a;
  border-radius: 6px;
  padding: 28px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: #5ba3d9;
}

.card p {
  font-size: 0.9rem;
  color: #aaaaaa;
  line-height: 1.65;
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background-color: var(--color-footer);
  border-top: 2px solid var(--color-footer-line);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.footer-brand span {
  color: #5ba3d9;
}

.footer-desc {
  font-size: 0.85rem;
  color: #888888;
  line-height: 1.65;
}

.footer-col h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aaaaaa;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #777777;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: var(--color-white);
}

/* Copyright bar */
.footer-copyright {
  border-top: 1px solid #3a3a3a;
  margin-top: 40px;
  padding: 20px 24px;
  text-align: center;
  font-size: 0.78rem;
  color: #666666;
  letter-spacing: 0.04em;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--color-nav);
    border-bottom: 3px solid var(--color-hero);
    padding: 12px 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .hero-table {
    flex-direction: column;
  }

  .hero-left,
  .hero-right {
    width: 100%;
  }

  .hero-left {
    padding: 32px 20px 20px;
    order: 1;
  }

  .hero-right {
    order: 2;
    justify-content: center;
  }

  .hero-right img {
    max-width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 400px) {
  :root {
    --nav-height: 56px;
  }

  .nav-brand {
    font-size: 1rem;
  }
}
