/* COPACABANA corporate site — minimalist system.

   Colour comes from the existing logo (assets/images/copacabana-logo.png): the disc is
   #103554 and the line art is #D2E4F3. Surfaces alternate white and a very light blue gray;
   navy carries the hierarchy instead of bold weights.
   Type is Nanum Gothic only (see assets/fonts/nanum-gothic.css), 400 by default — size,
   spacing, line-height and contrast create the hierarchy, not font-weight. */

:root {
  --page: #FFFFFF;
  --surface: #FFFFFF;
  --alt: #F2F6FB;
  --ink: #103554;
  --ink-hover: #0A2440;
  --muted: #5A6B80;
  --line: #DEE7F1;
  --inverse: #103554;
  --inverse-text: #FFFFFF;
  --inverse-soft: #D2E4F3;
  /* Service accents — small marks only, inside each service's own section. */
  --ls: #FFA300;
  --mu: #E8650A;

  --content: 1160px;
  --measure: 620px;
  --pad: 40px;
  --section: 120px;
  --header: 72px;
  --font: "Nanum Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.75;
  font-weight: 400;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
/* On the navy surfaces an --ink ring is invisible, so use the light text colour. */
.site-footer :focus-visible,
.contact-band :focus-visible { outline-color: var(--inverse-text); }
.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 30;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--inverse-text);
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--content), calc(100% - var(--pad) * 2)); margin: 0 auto; }
.measure { max-width: var(--measure); }
h1, h2, h3, p, figure { margin: 0; }

h1 {
  max-width: 18ch;
  font-size: 3.5rem;
  line-height: 1.18;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.eyebrow {
  display: block;
  margin-bottom: 28px;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--muted);
}
h2 { font-size: 1.5rem; font-weight: 400; line-height: 1.4; }
h3 { font-size: 1.25rem; font-weight: 400; line-height: 1.5; }
.lede {
  max-width: var(--measure);
  margin-top: 28px;
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--ink);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-decoration: none;
}
.brand-logo { flex: none; width: 34px; height: 34px; display: block; border-radius: 50%; }
.brand-name { line-height: 1; }
.brand:hover { color: var(--ink-hover); }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-item { position: relative; }
.nav-link, .nav-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.875rem;
  letter-spacing: 0.09em;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.nav-link:hover, .nav-trigger:hover { color: var(--ink-hover); }
.nav-link[aria-current="page"]::after,
.has-submenu.current .nav-trigger::after,
.nav-link:hover::after,
.has-submenu:hover .nav-trigger::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  height: 2px;
  background: var(--ink);
}
.caret {
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.submenu {
  position: absolute;
  top: 100%;
  left: -14px;
  z-index: 20;
  display: none;
  min-width: 236px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.has-submenu.open .submenu { display: block; }
.submenu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: 4px;
}
.submenu a:hover,
.submenu a:focus-visible { background: var(--alt); }
.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}
.menu-button span,
.menu-button span::before,
.menu-button span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 0 auto;
  background: var(--ink);
  position: relative;
}
.menu-button span::before,
.menu-button span::after { content: ""; position: absolute; left: 0; }
.menu-button span::before { top: -5px; }
.menu-button span::after { top: 5px; }

/* ---------- hero ---------- */
.hero { padding: 6rem 0 2.5rem; }

/* ---------- sections ---------- */
.section { padding: var(--section) 0; }
.band { background: var(--alt); }
.section-label {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--ink);
}
.section > .wrap > .section-label { margin-bottom: 40px; }
/* Thin full-width rule divides the hero from OUR SERVICES. */
.section.services { padding: 40px 0 0; border-top: 1px solid var(--line); }
.section.services > .wrap > .section-label { margin-bottom: 36px; }

/* ---------- services ----------
   One row per service, rendered from data/services.json by
   scripts/render-services.mjs. Rows alternate white / light blue gray by
   position, so adding a service needs no HTML or CSS change. */
.service {
  padding: 56px 0;
  background: var(--alt);
  --accent: var(--ink);
}
.service:nth-child(even) { background: var(--surface); }
.service[data-accent="mu"] { --accent: var(--mu); }
.service[data-accent="ls"] { --accent: var(--ls); }
.service-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 64px;
  align-items: center;
}
.service-grid.is-solo { grid-template-columns: minmax(0, var(--measure)); }
.service-side { display: grid; gap: 24px; justify-items: center; text-align: center; }
.service-name { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Official service marks sit beside the name (the right column holds only the
   store badges). Never re-drawn, never framed, never shadowed. */
.name-icon {
  flex: none;
  width: 40px;
  height: 40px;
  max-width: 40px;
  max-height: 40px;
  object-fit: contain;
  border-radius: 22.4%;
}
.title-mark {
  width: auto;
  height: 1em;
  border-radius: 22.4%;
}
.service-more { margin-top: 20px; }
.service-body::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin-bottom: 32px;
  background: var(--accent);
}
.service-index {
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.service-name {
  margin-top: 10px;
  font-size: 1.875rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.service-name .plus { font-size: 0.55em; vertical-align: super; line-height: 1; }
.service-line {
  margin-top: 22px;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--ink);
}
.service-copy {
  margin-top: 18px;
  max-width: var(--measure);
  color: var(--muted);
}
.service-cta { margin-top: 32px; }
.shot {
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.shot img { border-radius: 8px; width: 100%; height: auto; }

/* Official App Store / Google Play badges. Both are rendered at the same
   height; the asset keeps its own proportions, and a badge without a store URL
   yet is a plain <span> with no link. */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 44px;
  text-decoration: none;
}
.store-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* ---------- service detail ---------- */
.eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.eyebrow a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}
.detail-intro {
  font-size: 1.25rem;
  line-height: 1.7;
  max-width: var(--measure);
}
.detail-value {
  margin-top: 16px;
  max-width: var(--measure);
  color: var(--muted);
}
.detail-heading {
  margin-bottom: 36px;
  font-size: 1.25rem;
  font-weight: 400;
}
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 48px;
}
.feature-title { font-size: 1rem; font-weight: 400; }
.feature-item p {
  margin-top: 8px;
  max-width: 46ch;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Overview stats: figures carried by size and navy, not bold or a card. */
.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 48px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}
.detail-stat { display: flex; flex-direction: column; }
.detail-stat-num { font-size: 1.75rem; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); }
.detail-stat-label { margin-top: 4px; font-size: 0.875rem; color: var(--muted); }

/* Real app screenshots — reuse the .shot frame; five across, responsive. */
.screenshots {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

/* ---------- let's work together ---------- */
.work-cta { margin-top: 40px; }

.link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 0.9375rem;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: 4px;
}
.link:hover { color: var(--ink-hover); border-color: var(--ink-hover); background: var(--alt); }
.link.primary { background: var(--ink); color: var(--inverse-text); }
.link.primary:hover { background: var(--ink-hover); border-color: var(--ink-hover); color: var(--inverse-text); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- footer ---------- *
   Compact: an identity + links row over a thin rule, then a legal base. */
.site-footer {
  padding: 40px 0 28px;
  background: var(--inverse);
  color: var(--inverse-soft);
  font-size: 0.875rem;
}
.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 40px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.footer-id { display: flex; flex-direction: column; gap: 6px; }
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--inverse-text);
  text-decoration: none;
  font-size: 1.0625rem;
  letter-spacing: 0.12em;
}
.footer-logo img { flex: none; width: 34px; height: 34px; display: block; border-radius: 50%; }
.footer-tagline { color: var(--inverse-soft); font-size: 0.8125rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 2px 24px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--inverse-soft);
  text-decoration: none;
}
.footer-links a:hover { color: var(--inverse-text); }
.footer-base { line-height: 1.85; font-size: 0.8125rem; color: var(--inverse-soft); }
.footer-base p { margin: 0; }
.footer-base a { color: var(--inverse-soft); text-decoration: none; }
.footer-base a:hover { color: var(--inverse-text); text-decoration: underline; }
.footer-name { color: var(--inverse-text); }
.footer-copy { margin-top: 10px; opacity: 0.7; }
.legal { color: var(--inverse-soft); }

/* ---------- inner pages ---------- */
.page-hero { padding: 7rem 0 1.5rem; }
.page-hero h1 { font-size: 2.5rem; }
.page-hero p { margin-top: 20px; max-width: var(--measure); color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 28px; margin-top: 40px; }
.fact-list { margin: 40px 0 0; }
.fact-list div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}
.fact-list dt { color: var(--muted); }
.prose { max-width: var(--measure); }
.prose h2 { margin: 44px 0 12px; font-size: 1.375rem; font-weight: 400; }
.prose ul { padding-left: 1.1em; }
.note { margin-top: 28px; font-size: 0.875rem; color: var(--muted); }
.contact-line { margin-top: 18px; }
.fact-list a,
.contact-email,
.contact-phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
}
.contact-email {
  font-size: 1.375rem;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.contact-band { background: var(--inverse); color: var(--inverse-text); }
.contact-band a { color: inherit; }
.contact-band p { color: var(--inverse-soft); }

/* Anchor targets clear the sticky header. */
[id] { scroll-margin-top: calc(var(--header) + 24px); }

@media (max-width: 900px) {
  .service-grid, .service-grid.is-solo { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .feature-list { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .shot { max-width: 320px; }
  .screenshots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  :root { --pad: 24px; --section: 72px; --header: 64px; }
  body { font-size: 1rem; }
  h1 { font-size: 2.125rem; line-height: 1.28; }
  .page-hero { padding: 3.5rem 0 1rem; }
  .page-hero h1 { font-size: 1.875rem; }
  .hero { padding: 3.25rem 0 1.5rem; }
  .section > .wrap > .section-label { margin-bottom: 28px; }
  .section.services { padding: 28px 0 0; }
  .section.services > .wrap > .section-label { margin-bottom: 24px; }
  .service-name { font-size: 1.5rem; }
  .name-icon { width: 34px; height: 34px; max-width: 34px; max-height: 34px; }
  .service-line { font-size: 1.125rem; }
  .service { padding: 44px 0; }
  .service-side { gap: 20px; justify-items: start; }
  .screenshots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot { max-width: none; }
  .fact-list div { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .site-footer { padding: 2.25rem 0 1.25rem; }
  .footer-main { padding-bottom: 14px; margin-bottom: 14px; gap: 10px 24px; }
  .footer-links { gap: 0 20px; }
  .footer-base { line-height: 1.65; }

  .menu-button { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    background: var(--page);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-item { width: 100%; }
  .nav-link, .nav-trigger { width: 100%; min-height: 52px; justify-content: space-between; }
  .nav-link[aria-current="page"]::after { display: none; }
  .submenu {
    position: static;
    min-width: 0;
    padding: 0 0 8px;
    border: 0;
    border-radius: 0;
  }
  .has-submenu.open .submenu { display: block; }
  .submenu a { min-height: 48px; padding-left: 16px; color: var(--ink); }
  .submenu a:hover, .submenu a:focus-visible { background: var(--alt); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
/* TASK13: reuse corporate navy and existing service icon. */
.launch-banner{background:var(--alt);border-bottom:1px solid #dce5ef;}
.launch-banner__link{display:flex;align-items:center;gap:20px;padding-top:24px;padding-bottom:24px;color:var(--ink);}
.launch-banner__link>img{width:56px;height:56px;border-radius:12px;flex:none;}
.launch-banner__link>span>span{display:block;}.launch-banner__title{font-size:1.2rem;margin-bottom:6px;}
.launch-banner__cta{margin-left:auto;white-space:nowrap;}.launch-banner__link:focus-visible{outline:3px solid var(--ink);outline-offset:-3px;}
@media(max-width:600px){.launch-banner__link{flex-wrap:wrap;gap:14px;}.launch-banner__link>span:not(.launch-banner__cta){flex:1;min-width:0;}.launch-banner__cta{margin-left:70px;font-size:.9rem;}}
@media(max-width:600px){.launch-banner__link{display:grid;grid-template-columns:56px minmax(0,1fr);text-decoration:none;}.launch-banner__cta{grid-column:2;margin-left:0;white-space:normal;}.launch-banner__link>span{min-width:0;}}
