/* ============================================================
   CUP & CODE LLC landing page styles
   Reference palette: painterly sunset (deep magenta → rose → coral)
   Buttons: solid coral-red (#EE4D5F), no gradient wash
   Type: bold sans (nav/eyebrow) + classic serif headline
         + warm italic script accent
   ============================================================ */

:root {
  /* Sunset palette (sampled from reference) */
  --c-night:    #2A0F2E;   /* deep magenta, top of sky */
  --c-purple:   #5A1A4A;   /* plum/magenta mid */
  --c-magenta:  #B43A6A;   /* dusty rose mid */
  --c-coral:    #D9602E;   /* sunset orange, low */
  --c-amber:    #E25A3C;   /* hot coral, lower band */

  /* Solid button red (sampled) */
  --c-red:      #EE4D5F;
  --c-red-deep: #D43D4F;

  /* Surfaces */
  --c-cream:    #FAF3EA;
  --c-cream-2:  #F2E8DA;
  --c-card:     #FFFFFF;
  --c-line:     rgba(42, 15, 46, 0.10);

  /* Ink */
  --c-ink:      #2A0F2E;
  --c-ink-soft: #5A1A4A;

  /* Type stacks */
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino,
                  "Book Antiqua", Georgia, ui-serif, serif;
  --font-script: "Snell Roundhand", "Apple Chancery", "Lucida Calligraphy",
                 "Brush Script MT", "Segoe Script", cursive;

  /* Hero / nav / pill typography (Priya's hero spec) */
  --font-nav: "Space Grotesk", ui-sans-serif, system-ui, -apple-system,
              "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-hero-display: "Fraunces", "Iowan Old Style", "Palatino Linotype",
                       Palatino, "Book Antiqua", Georgia, ui-serif, serif;
  --font-sub: "Inter", ui-sans-serif, system-ui, -apple-system,
              "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Hero palette (Priya's spec, kept as variables for the hero only) */
  --c-plum-dark: #2A1740;
  --c-plum:      #7A2A5A;
  --c-rose:      #C8504A;
  --c-amber:     #E0903A;
  --c-headline:  #F3EEF7;
  --c-accent:    #E8C9A8;
  --c-btn:       #D64F4F;
  --c-btn-deep:  #B83D3D;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 6px rgba(42, 15, 46, 0.06), 0 1px 2px rgba(42, 15, 46, 0.04);
  --shadow-md: 0 12px 28px rgba(90, 26, 74, 0.14), 0 2px 6px rgba(42, 15, 46, 0.06);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--c-red);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--c-purple); color: #fff; padding: 8px 14px;
  border-radius: 0 0 8px 0; text-decoration: none;
  font-weight: 700;
}
.skip-link:focus { left: 0; z-index: 100; }

.container {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
}

/* ============================================================
   Header / nav
   ============================================================ */

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(42, 23, 64, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
  box-sizing: border-box;
}

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none;
  color: #fff;
}

.brand-mark { width: 44px; height: 44px; flex-shrink: 0; }
.brand-text { text-decoration: none; color: #fff; }
.brand-mark {
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  line-height: 0;
  border-radius: 10px;
}
.brand-mark:focus-visible {
  outline: 2px solid var(--c-red);
  outline-offset: 3px;
}
.brand-mark img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.10);
}

.brand-name {
  font-family: var(--font-hero-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.01em;
  color: #fff;
}

.brand-sub {
  display: block;
  font-family: var(--font-nav);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 2px;
}

.nav-menu {
  display: flex; align-items: center; gap: clamp(14px, 1.6vw, 28px);
  list-style: none; margin: 0; padding: 0;
}
.nav-menu a {
  color: #fff;
  text-decoration: none;
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 16px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
}
.nav-menu a:hover { border-bottom-color: rgba(255,255,255,0.7); }

.nav-cta {
  background: var(--c-btn);
  color: #fff !important;
  padding: 12px 22px !important;
  border-radius: 8px;
  border-bottom: none !important;
  font-family: var(--font-nav);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--c-btn-deep); border-bottom-color: transparent !important; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  margin: 5px auto;
  width: 22px;
  border-radius: 2px;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(42, 15, 46, 0.96);
    padding: 8px clamp(20px, 4vw, 32px) 18px;
    display: none;
    box-shadow: 0 16px 32px rgba(0,0,0,0.18);
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu li { border-top: 1px solid rgba(255,255,255,0.10); }
  .nav-menu a { display: block; padding: 14px 4px; }
  .nav-cta { text-align: center; margin-top: 12px; }
}

/* ============================================================
   Hero: Priya's painterly sunset sky
   ============================================================ */

.hero {
  position: relative;
  min-height: 85vh;
  display: flex; align-items: center;
  background: var(--c-plum-dark) url('hero-sunset.jpg') center / cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.hero::after {
  /* plum dark overlay for WCAG AA contrast (top ~55% → bottom ~25%) */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(42, 23, 64, 0.55) 0%,
    rgba(42, 23, 64, 0.40) 50%,
    rgba(42, 23, 64, 0.25) 100%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
  padding: 100px clamp(20px, 4vw, 32px) 124px;
  z-index: 1;
}

/* Tagline pill: higher contrast, Space Grotesk, uppercase, wide tracking */
.eyebrow {
  display: inline-block;
  padding: 9px 22px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: rgba(42, 23, 64, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  font-family: var(--font-nav);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--c-headline);
  margin: 0 0 28px;
}

/* Headline: Fraunces, two explicit lines */
.hero-title {
  font-family: var(--font-hero-display);
  font-weight: 700;
  font-size: clamp(40px, 6.5vw, 78px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  color: var(--c-headline);
  text-wrap: balance;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
}
.hero-title .line {
  display: block;
}
.hero-title .accent {
  font-family: var(--font-hero-display);
  font-weight: 700;
  font-style: normal;
  color: var(--c-accent);
}
/* Subheading: Inter, weight 400 */
.hero-sub {
  font-family: var(--font-sub);
  font-weight: 400;
  max-width: 640px;
  margin: 0 auto 36px;
  font-size: 17px;
  color: var(--c-headline);
  opacity: 0.94;
  line-height: 1.6;
}

.hero-actions {
  display: flex; gap: 14px; justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* Narrow screens: hero buttons stack, type scaled for small phones */
@media (max-width: 520px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin-inline: auto;
  }
  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }
  .hero-inner {
    padding: 72px 24px 88px;
  }
  .hero-title {
    font-size: clamp(30px, 9.5vw, 40px);
    line-height: 1.1;
  }
  .hero-sub {
    font-size: 16px;
  }
  .section-title {
    font-size: clamp(24px, 7vw, 32px);
  }
}

/* Buttons: Space Grotesk, weight 600, solid #D64F4F primary */
.btn {
  display: inline-block;
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--c-btn);
  color: #fff;
}
.btn-primary:hover { background: var(--c-btn-deep); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

/* ============================================================
   Generic page sections (light cream)
   ============================================================ */

.section {
  padding: clamp(60px, 9vw, 96px) 0;
}

.section-eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--c-magenta);
  margin: 0 0 14px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--c-ink);
  max-width: 22ch;
}

.section-lede {
  font-size: 17px;
  color: var(--c-ink-soft);
  max-width: 60ch;
  margin: 0 0 40px;
}

/* ============================================================
   About
   ============================================================ */

.about {
  background: var(--c-cream);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}
.about-text p {
  margin: 0 0 18px;
  color: var(--c-ink-soft);
}
.about-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.about-card h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--c-ink);
}
.about-card ul {
  margin: 0; padding-left: 18px;
  color: var(--c-ink-soft);
}
.about-card li { margin-bottom: 10px; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Services
   ============================================================ */

.services {
  background: var(--c-cream-2);
}

/* Section bands: light plum -> beige -> soft rose, then the dark plum contact block */
#services { background: #EFE5EE; }
#process  { background: #F2E8DA; }
#about    { background: #F6E0E3; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 1080px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .card-grid { grid-template-columns: 1fr; }
}
.card {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #FBEFE3;
  color: var(--c-purple);
  border-radius: 10px;
  margin-bottom: 18px;
}
.card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--c-ink);
}
.card p {
  margin: 0 0 16px;
  color: var(--c-ink-soft);
  font-size: 15px;
  line-height: 1.55;
}
.card-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  list-style: none; margin: 0; padding: 0;
}
.card-tags li {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(90, 26, 74, 0.08);
  color: var(--c-purple);
  font-weight: 700;
}

/* "Good fit for" callout: sits below the service cards */
.good-fit {
  margin-top: 48px;
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
}
.good-fit h3 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--c-ink);
}
.good-fit ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
}
.good-fit li {
  font-size: 15px;
  color: var(--c-ink-soft);
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}
.good-fit li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--c-red);
  border-radius: 50%;
}
@media (max-width: 720px) {
  .good-fit { padding: 22px 22px; }
  .good-fit ul { grid-template-columns: 1fr; gap: 10px; }
}

/* ============================================================
   Process
   ============================================================ */

.process { background: var(--c-cream); }
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.steps li {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--c-red);
  margin-bottom: 14px;
}
.steps h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--c-ink);
}
.steps p {
  margin: 0;
  color: var(--c-ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

/* ============================================================
   Contact
   ============================================================ */

.contact {
  background: #2A0F2E;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute; inset: 0;
  background: url('hero-clouds.svg') center / cover no-repeat;
  opacity: 0.28;
  pointer-events: none;
}
.eyebrow-light {
  color: #FFB7A8 !important;
}
.contact-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
.contact .section-title { color: #fff; }
.contact p { color: rgba(255,255,255,0.86); }

.contact-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.contact-card .btn { width: 100%; text-align: center; margin-top: 8px; }

.contact-invitation p:last-child {
  margin: 0;
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
}

@media (max-width: 820px) {
  .contact-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: #1F0822;
  color: rgba(255,255,255,0.72);
  padding: 32px 0;
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand img {
  width: 40px; height: 40px;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.10);
}
.footer-name {
  margin: 0;
  font-family: var(--font-hero-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.01em;
  color: #fff;
}
.footer-name-sub {
  margin: 2px 0 0;
  font-family: var(--font-nav);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}
.footer-meta { margin: 0; font-size: 14px; }
.footer-copy { margin: 0; font-size: 13px; color: rgba(255,255,255,0.5); }

/* ============================================================
   Logo lightbox
   ============================================================ */

.logo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 5vw, 56px);
  background: rgba(24, 8, 32, 0.88);
}
.logo-lightbox[hidden] { display: none; }
.logo-lightbox img {
  max-width: min(80vw, 720px);
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.logo-lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.logo-lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }

/* ============================================================
   Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}