/* ==========================================================================
   For Dads Sake — global styles
   Brand palette sampled from design mockups
   ========================================================================== */

:root {
  --navy: #32353e;
  --orange: #fbb543;
  --cream: #fff8db;
  --cream-soft: #fdf2c9;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Lato", "Helvetica Neue", Arial, sans-serif;
  --radius-card: 28px;
  --radius-pill: 999px;
  --header-h: 150px;
  --page-pad: clamp(20px, 4vw, 56px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--navy);
  background: var(--cream);
}

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

a {
  color: inherit;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0;
}

.section-title {
  font-size: clamp(34px, 4.2vw, 62px);
  text-align: center;
}

.section-sub {
  max-width: 640px;
  margin: 18px auto 0;
  text-align: center;
  font-size: clamp(16px, 1.3vw, 19px);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-align: center;
  border-radius: var(--radius-pill);
  padding: 16px 42px;
  font-size: 19px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.btn--navy {
  background: var(--navy);
  color: var(--cream);
}

.btn--orange {
  background: var(--orange);
  color: var(--navy);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  background: var(--navy);
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 var(--page-pad);
}

.site-header__inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo img {
  width: 104px;
  height: 104px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  margin-left: auto;
}

.site-nav a:not(.btn) {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 21px;
  color: var(--cream);
  text-decoration: none;
}

.site-nav a:not(.btn):hover {
  color: var(--orange);
}

.site-nav .btn {
  padding: 18px 64px;
  margin-left: clamp(4px, 2vw, 32px);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--cream);
}

.nav-toggle svg {
  width: 34px;
  height: 34px;
  display: block;
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--cream);
  display: none;
  flex-direction: column;
  padding: 26px 24px 40px;
  overflow-y: auto;
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mobile-menu__bar img {
  width: 74px;
  height: 74px;
}

.mobile-menu__bar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.mobile-menu__bar .btn {
  padding: 12px 30px;
  font-size: 16px;
}

.mobile-menu__close {
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
  color: var(--navy);
}

.mobile-menu__close svg {
  width: 30px;
  height: 30px;
  display: block;
}

.mobile-menu__links {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 34px;
  text-align: center;
}

.mobile-menu__links a {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 30px;
  color: var(--navy);
  text-decoration: none;
}

.mobile-menu__social {
  margin-top: 58px;
  display: flex;
  justify-content: center;
  gap: 34px;
}

.mobile-menu__social svg {
  width: 40px;
  height: 40px;
  color: var(--orange);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  height: min(52vw, 758px);
  overflow: hidden;
  background: var(--navy);
}

.hero--tall {
  height: min(60vw, 894px);
}

.hero picture,
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--page-pad);
  color: var(--cream);
}

.hero__title {
  font-size: clamp(44px, 6.5vw, 96px);
  letter-spacing: 0.02em;
}

.hero__tagline {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(24px, 3vw, 46px);
  line-height: 1.2;
  margin-top: 10px;
}

.hero__content .btn {
  margin-top: 40px;
}

/* Placeholder hero images have the title baked into the artwork.
   Remove the `has-baked-text` class from the hero section once clean
   photography (no text) replaces the placeholder crops — the real HTML
   heading/button below will then become visible. */
.has-baked-text .hero__content {
  opacity: 0;
}

/* Split hero (About page) */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--cream);
  min-height: min(54vw, 776px);
}

.hero-split__media {
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

.hero-split__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-split__media .hero-split__baked-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-size: clamp(44px, 6vw, 90px);
}

.has-baked-text .hero-split__baked-title {
  opacity: 0;
}

.hero-split__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: clamp(40px, 5vw, 90px) clamp(28px, 6vw, 110px);
}

.hero-split__panel h1 {
  font-size: clamp(30px, 2.9vw, 44px);
}

.hero-split__quote {
  max-width: 460px;
  margin: 34px auto 0;
  font-size: clamp(16px, 1.4vw, 20px);
}

.hero-split__attribution {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(19px, 1.7vw, 25px);
  margin-top: 30px;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: clamp(56px, 6vw, 96px) var(--page-pad);
}

.section--orange {
  background: var(--orange);
}

.section--cream {
  background: var(--cream);
}

.section--navy {
  background: var(--navy);
  color: var(--cream);
}

.section__inner {
  max-width: 1400px;
  margin: 0 auto;
}

.section__cta {
  text-align: center;
  margin-top: clamp(40px, 4vw, 64px);
}

/* Emergency banner */
.emergency-banner {
  background: var(--navy);
  color: var(--orange);
  text-align: center;
  padding: 34px var(--page-pad);
  font-size: clamp(16px, 1.5vw, 21px);
}

.emergency-banner p {
  max-width: 900px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Event cards
   -------------------------------------------------------------------------- */

.event-card {
  background: var(--cream);
  border-radius: var(--radius-card);
  padding: clamp(26px, 3vw, 44px) clamp(22px, 2.6vw, 38px);
  display: flex;
  flex-direction: column;
}

.event-card__title {
  font-size: clamp(24px, 2vw, 31px);
}

.event-card__meta {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
}

.event-card__meta li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.event-card__meta svg {
  width: 18px;
  height: 18px;
  color: var(--orange);
  flex-shrink: 0;
}

.event-card__desc {
  margin: 20px 0 26px;
  font-size: 15px;
}

.event-card__actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.event-card__actions .btn {
  padding: 14px 20px;
  font-size: 17px;
  width: 100%;
}

/* Connect page grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
  max-width: 1180px;
  margin: clamp(40px, 5vw, 72px) auto 0;
}

/* Homepage carousel */
.carousel {
  position: relative;
  margin-top: clamp(36px, 4vw, 60px);
  padding: 0 46px;
}

.carousel__track {
  display: flex;
  gap: clamp(18px, 2.4vw, 36px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__track .event-card {
  flex: 0 0 min(78vw, 400px);
  scroll-snap-align: center;
}

.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: var(--navy);
  cursor: pointer;
  padding: 8px;
  z-index: 2;
}

.carousel__arrow svg {
  width: 30px;
  height: 30px;
  display: block;
}

.carousel__arrow--prev {
  left: 0;
}

.carousel__arrow--next {
  right: 0;
}

/* Regular meetups */
.regular-meets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 80px);
  max-width: 1280px;
  margin: clamp(40px, 5vw, 72px) auto 0;
}

.regular-card {
  border-radius: var(--radius-card);
  text-align: center;
  padding: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 44px);
}

.regular-card--orange {
  background: var(--orange);
  color: var(--navy);
}

.regular-card--navy {
  background: var(--navy);
  color: var(--orange);
}

.regular-card h3 {
  font-size: clamp(26px, 2.6vw, 40px);
}

.regular-card__freq {
  margin: 10px 0 0;
  font-size: 15px;
}

.regular-card--navy .regular-card__freq {
  color: var(--orange);
}

.regular-card__time {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(20px, 1.9vw, 28px);
  margin-top: 14px;
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */

.testimonials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 110px);
  max-width: 1300px;
  margin: clamp(90px, 9vw, 130px) auto 0;
}

.testimonial {
  position: relative;
  background: var(--cream);
  border-radius: var(--radius-card);
  padding: clamp(90px, 8vw, 120px) clamp(26px, 3.4vw, 60px) clamp(40px, 4vw, 70px);
  text-align: center;
}

.testimonial__badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(130px, 14vw, 190px);
  height: clamp(130px, 14vw, 190px);
  border-radius: 50%;
}

.testimonial__quote {
  margin: 0;
  font-size: clamp(16px, 1.5vw, 21px);
  max-width: 440px;
  margin-inline: auto;
}

.testimonial__author {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(19px, 1.9vw, 27px);
  margin-top: 28px;
}

/* --------------------------------------------------------------------------
   Support / charity cards
   -------------------------------------------------------------------------- */

.charity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 52px);
  max-width: 1300px;
  margin: clamp(44px, 5vw, 80px) auto 0;
}

.charity-card {
  background: var(--orange);
  border-radius: var(--radius-card);
  padding: clamp(28px, 3vw, 46px) clamp(22px, 2.6vw, 40px);
  display: flex;
  flex-direction: column;
}

.charity-card__logo {
  height: clamp(90px, 9vw, 130px);
  display: flex;
  align-items: center;
}

.charity-card__logo img {
  max-height: 100%;
  width: auto;
  max-width: 85%;
  border-radius: 10px;
}

.charity-card h3 {
  font-size: clamp(28px, 2.6vw, 40px);
  margin-top: 18px;
}

.charity-card__phone {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 16px;
}

.charity-card__phone svg {
  width: 18px;
  height: 18px;
  color: var(--cream);
}

.charity-card__desc {
  margin: 14px 0 30px;
  font-size: 15px;
}

.charity-card .btn {
  margin-top: auto;
  width: 100%;
  padding: 16px 12px;
}

/* --------------------------------------------------------------------------
   Products
   -------------------------------------------------------------------------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 52px);
  max-width: 1300px;
  margin: clamp(44px, 5vw, 80px) auto 0;
}

.product-card {
  background: var(--cream);
  border-radius: var(--radius-card);
  padding: clamp(26px, 2.8vw, 40px) clamp(22px, 2.6vw, 38px);
  display: flex;
  flex-direction: column;
}

.product-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.product-card h3 {
  font-size: clamp(24px, 2.1vw, 32px);
  margin-top: 22px;
}

.product-card__desc {
  margin: 8px 0 0;
  font-size: 15px;
}

.product-card__price {
  font-weight: 700;
  color: #e8960c;
  margin: 10px 0 24px;
  font-size: 17px;
}

.product-card .btn {
  margin-top: auto;
  width: 100%;
  padding: 15px 12px;
}

/* --------------------------------------------------------------------------
   News
   -------------------------------------------------------------------------- */

.chip-strip {
  background: var(--cream);
  padding: 26px var(--page-pad);
}

.chip-strip__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: safe center;
}

.chip-strip__track::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--cream);
  background: var(--navy);
  border: 0;
  border-radius: var(--radius-pill);
  padding: 12px 28px;
  cursor: pointer;
}

.chip:hover,
.chip.is-active {
  background: var(--navy);
  color: var(--orange);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 2.6vw, 44px);
  max-width: 1400px;
  margin: clamp(44px, 5vw, 80px) auto 0;
}

.news-card {
  background: var(--cream);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.news-card__image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.news-card__body {
  padding: 26px 24px 34px;
}

.news-card h3 {
  font-size: 22px;
}

.news-card p {
  margin: 14px 0 0;
  font-size: 15px;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin-top: clamp(44px, 5vw, 72px);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
}

.pagination a {
  text-decoration: none;
  color: var(--navy);
}

.pagination a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.pagination__arrow svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* --------------------------------------------------------------------------
   Team
   -------------------------------------------------------------------------- */

.team-member {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 90px);
  max-width: 1300px;
  margin: clamp(56px, 6vw, 90px) auto 0;
  align-items: start;
}

.team-member__photo img {
  width: 100%;
  border-radius: var(--radius-card);
}

.team-member__bio h3 {
  font-size: clamp(24px, 2.2vw, 34px);
}

.team-member__bio p {
  margin: 18px 0 0;
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   Social icons
   -------------------------------------------------------------------------- */

.social-row {
  display: flex;
  justify-content: center;
  gap: clamp(30px, 5vw, 70px);
  margin-top: 36px;
}

.social-row a,
.footer__social a {
  color: var(--orange);
}

.social-row svg {
  width: clamp(38px, 4vw, 52px);
  height: clamp(38px, 4vw, 52px);
}

.social-row a:hover,
.footer__social a:hover {
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy);
  color: var(--cream);
  padding: clamp(48px, 5vw, 72px) var(--page-pad) 40px;
}

.site-footer__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
}

.site-footer__logo img {
  width: clamp(120px, 12vw, 168px);
  height: auto;
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.footer__links a {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(20px, 1.9vw, 27px);
  color: var(--cream);
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--orange);
}

.footer__social {
  display: grid;
  grid-template-columns: repeat(2, 56px);
  gap: 22px;
  justify-content: end;
}

.footer__social svg {
  width: 52px;
  height: 52px;
}

.site-footer__copy {
  text-align: center;
  margin: 44px 0 0;
  font-size: 17px;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .charity-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 118px;
  }

  .site-logo img {
    width: 82px;
    height: 82px;
  }

  .site-nav a:not(.btn) {
    display: none;
  }

  .site-nav .btn {
    padding: 13px 32px;
    font-size: 16px;
    margin-left: 0;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    height: min(94vw, 420px);
  }

  .hero--tall {
    height: min(94vw, 420px);
  }

  .hero-split {
    grid-template-columns: 1fr;
  }

  .hero-split__media {
    min-height: 100vw;
  }

  .events-grid,
  .regular-meets,
  .testimonials,
  .charity-grid,
  .product-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .testimonials {
    gap: 110px;
  }

  .team-member {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer__social {
    justify-content: center;
    grid-template-columns: repeat(2, 48px);
  }

  .footer__social svg {
    width: 44px;
    height: 44px;
  }
}
