/* =============================================
   SOCIALBREW — STYLES
   Design: Figma · Social Brew One Pager
   ============================================= */

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

:root {
  --red:        #e23f3c;
  --red-light:  #fef2f2;
  --red-tint:   rgba(226, 63, 60, 0.03);
  --black:      #0a0a0a;
  --mid:        #4a5565;
  --muted:      #6a7282;
  --white:      #ffffff;
  --border-red: rgba(226, 63, 60, 0.6);

  --font: 'Inter', system-ui, sans-serif;
  --radius-pill: 9999px;
  --radius-card: 16px;
  --radius-icon: 14px;

  --shadow-btn: 0 10px 16px rgba(0,0,0,.10), 0 4px 6px rgba(0,0,0,.10);
  --shadow-card: 0 2px 12px rgba(0,0,0,.06);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ── Container ──────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 5.5rem);
}

/* ── Section helpers ────────────────────────── */
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section--tinted { background: var(--red-tint); }

/* =============================================
   HEADER
   ============================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  padding-block: 0.5rem;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: clamp(-0.75rem, -3.5vw, -4rem);
}

.header__logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.header__logo-fallback {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: 1.4rem;
  color: var(--red);
}
.header__logo-fallback span { color: var(--black); }

.header__menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--black);
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: var(--radius-icon);
  transition: color .2s, background .2s;
}
.header__menu-btn i { font-size: 1.25rem; }
.header__menu-btn:hover { color: var(--red); background: var(--red-light); }
.header__menu-btn .header__menu-icon--close { display: none; }
.header.is-menu-open .header__menu-btn .header__menu-icon--open { display: none; }
.header.is-menu-open .header__menu-btn .header__menu-icon--close { display: block; }

.header__nav { display: flex; gap: 2rem; }

.nav-link {
  font-size: .9rem;
  font-weight: 400;
  color: var(--black);
  letter-spacing: -.01em;
  transition: color .2s;
}
.nav-link:hover { color: var(--red); }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.02em;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
  white-space: nowrap;
  box-shadow: var(--shadow-btn);
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--red); color: var(--white); }
.btn--dark    { background: var(--black); color: var(--white); }

.btn__icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}
.btn__icon-fallback { font-size: 1.1rem; flex-shrink: 0; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
}
.btn-group--center { justify-content: center; }

/* =============================================
   HERO
   ============================================= */
.hero { padding-top: clamp(1.5rem, 3vw, 3rem); overflow: hidden; }

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  justify-content: end;
  padding-left: clamp(2rem, 8vw, 8rem);
}

/* copy */
.hero__heading {
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .002em;
  color: var(--black);
  text-transform: capitalize;
  margin-bottom: 1.5rem;
}

.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  font-weight: 400;
  color: var(--mid);
  line-height: 1.6;
  letter-spacing: -.03em;
  margin-bottom: 2.25rem;
  max-width: 42rem;
}

.hero__ctas { display: flex; flex-direction: column; gap: 1rem; }

.hero__trust {
  font-size: .93rem;
  color: var(--muted);
  letter-spacing: -.01em;
  white-space: nowrap;
}

/* visual */
.hero__visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero__phone-wrap {
  position: relative;
  max-width: 300px;
  width: 100%;
  margin-right: 2rem;
}

.hero__phone-glow {
  position: absolute;
  width: 55%;
  aspect-ratio: 1;
  background: var(--red);
  border-radius: 50%;
  bottom: 30%;
  left: 15%;
  filter: blur(0);
  z-index: 0;
}

.hero__phone-img {
  position: relative;
  z-index: 1;
  width: 100%;
  object-fit: contain;
  border-radius: 24px;
}

/* =============================================
   FEATURE (SCHEDULING)
   ============================================= */
.feature__inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.feature__visual {
  display: flex;
  justify-content: center;
}

.feature__phone-img {
  max-width: 320px;
  width: 100%;
  object-fit: contain;
  border-radius: 24px;
}

/* badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--red-light);
  color: var(--red);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: -.01em;
  padding: .45rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
}

.badge__icon { width: 16px; height: 16px; object-fit: contain; }
.badge__icon-fallback { font-size: .85rem; }

.feature__heading {
  font-size: clamp(1.6rem, 2.8vw, 2.625rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: .006em;
  color: var(--black);
  margin-bottom: 1rem;
  max-width: 30rem;
}

.feature__sub {
  font-size: clamp(.9rem, 1.2vw, 1.125rem);
  color: var(--mid);
  line-height: 1.65;
  letter-spacing: -.025em;
  margin-bottom: 2rem;
  max-width: 38rem;
}

/* feature list */
.feature-list { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }

.feature-list__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-list__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red-light);
  border-radius: var(--radius-icon);
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  color: var(--red);
  font-size: 1.1rem;
}

.feature-list__icon-wrap img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.feature-list__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -.028em;
  margin-bottom: .25rem;
}

.feature-list__desc {
  font-size: 1rem;
  color: var(--mid);
  line-height: 1.5;
  letter-spacing: -.02em;
}

.feature__cta { align-self: flex-start; }

/* =============================================
   WHY CHOOSE
   ============================================= */
.why { background: var(--white); }

.why__inner { display: flex; flex-direction: column; gap: 3rem; }

.why__header { text-align: center; }

.why__heading {
  font-size: clamp(1.8rem, 3.5vw, 3.1rem);
  font-weight: 700;
  letter-spacing: .007em;
  color: var(--black);
  margin-bottom: .75rem;
}

.why__sub {
  font-size: clamp(.9rem, 1.3vw, 1.26rem);
  color: var(--mid);
  letter-spacing: -.028em;
  line-height: 1.55;
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
}

/* cards */
.why-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2rem 2.125rem;
  border: 0.5px solid var(--red);
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: box-shadow .2s, transform .2s;
}
.why-card:hover {
  box-shadow: 0 8px 24px rgba(226,63,60,.14);
  transform: translateY(-2px);
}

.why-card__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  border-radius: var(--radius-icon);
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  color: var(--white);
  font-size: 1.25rem;
}

.why-card__icon { width: 28px; height: 28px; object-fit: contain; }
.why-card__icon-fallback { font-size: 1.25rem; color: var(--white); }

.why-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: .003em;
  margin-bottom: .5rem;
  line-height: 1.33;
}

.why-card__desc {
  font-size: 1.13rem;
  color: var(--mid);
  line-height: 1.6;
  letter-spacing: -.024em;
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
  background: var(--red);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin: 0 clamp(1.25rem, 5.5vw, 5rem) clamp(3rem, 6vw, 5rem);
}

.cta-section__inner {
  text-align: center;
  padding-block: clamp(3.5rem, 7vw, 5rem);
}

.cta-section__heading {
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: .007em;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.cta-section__sub {
  font-size: clamp(.95rem, 1.6vw, 1.5rem);
  color: rgba(255,255,255,.9);
  letter-spacing: .003em;
  line-height: 1.55;
  margin-bottom: 2.5rem;
}

.cta-section__offer {
  margin-top: 1.75rem;
  font-size: .875rem;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  letter-spacing: -.01em;
}

.cta-section__offer strong { font-weight: 700; }

.cta-section__offer-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  vertical-align: middle;
}

.cta-section__social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  padding-block: .75rem 2rem;
  flex-wrap: wrap;
}

.cta-section__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.cta-section__social-link:hover { opacity: 1; }

.cta-section__social-link img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  object-position: center;
  /* Same white as .cta-section__heading (var(--white) #ffffff) */
  filter: brightness(0) saturate(100%) invert(1);
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Header ≤ 768px — hamburger menu */
@media (max-width: 768px) {
  .header__inner { position: relative; }
  .header__logo img { height: 48px; }
  .header__menu-btn {
    display: flex;
    visibility: visible;
    background: var(--red-light);
    color: var(--red);
    z-index: 2;
  }
  .header__menu-btn:hover { background: rgba(226, 63, 60, 0.2); color: var(--red); }
  .header__nav {
    display: none;
    position: absolute;
    top: 100%;
    right: clamp(1.25rem, 5vw, 5.5rem);
    left: clamp(1.25rem, 5vw, 5.5rem);
    flex-direction: column;
    gap: 0;
    margin-top: 0.5rem;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--red-light);
  }
  .header.is-menu-open .header__nav { display: flex; }
  .header__nav .nav-link {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
    border-bottom: 1px solid var(--red-light);
  }
  .header__nav .nav-link:last-child { border-bottom: none; }
  .header__nav .nav-link:hover { background: var(--red-light); }
}

/* Tablet ≤ 900px */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-left: 0;
    justify-content: center;
  }

  .hero__sub { margin-inline: auto; }
  .hero__ctas { align-items: center; }
  .hero__trust { text-align: center; }

  .hero__visual { order: -1; justify-content: center; }
  .hero__phone-wrap { max-width: 280px; margin-inline: auto; }
  .hero__copy { margin-top: -1.5rem; }

  .feature__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .feature__visual { justify-content: center; }
  .feature__heading,
  .feature__sub { margin-inline: auto; }
  .feature-list__item { text-align: left; }
  .feature__cta { align-self: center; }

  .why__grid { grid-template-columns: 1fr; }
}

/* Mobile ≤ 600px */
@media (max-width: 600px) {
  .header__inner { height: 56px; }
  .header__logo { padding-left: 0.5rem; }
  .header__logo img { height: 48px; }
  .header__nav .nav-link { font-size: .94rem; letter-spacing: 0; }

  .hero__heading { font-size: clamp(1.5rem, 5.5vw, 2.2rem); padding-top: 0.75rem; }
  .hero__phone-wrap { max-width: 200px; margin-inline: auto; }

  .btn { font-size: .9rem; padding: .8rem 1.5rem; }
  .btn-group { flex-direction: column; align-items: stretch; }
  .btn-group--center .btn { justify-content: center; }

  .feature__phone-img { max-width: 240px; }

  .why-card { flex-direction: column; gap: 1rem; }

  .cta-section { margin-inline: 1rem; }
  .cta-section__heading { font-size: clamp(1.6rem, 6vw, 2.5rem); }

  .hero__trust {
    font-size: .7rem;
    white-space: normal;
    line-height: 1.8;
  }
}

/* =============================================
   ACCESSIBILITY
   ============================================= */
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}
