/* Ronan Kennedy Coaching - site styles.
   Built from the brand kit (tokens/brand.css). Colours, fonts and devices come from there.
   Rules: no gradients, glows or drop shadows. Never lime text on chalk, night text on olive, or fog on chalk. */

@font-face { font-family: "Bebas Neue"; font-weight: 400; font-display: swap; src: url("../fonts/BebasNeue-Regular.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("../fonts/Montserrat-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("../fonts/Barlow-Regular.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("../fonts/Barlow-Medium.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("../fonts/Barlow-SemiBold.woff2") format("woff2"); }

:root {
  --rk-lime: #D2F53C;
  --rk-night: #0D1014;
  --rk-olive: #364B18;
  --rk-chalk: #F3F2EC;
  --rk-moss: #4A5244;
  --rk-fog: #A4AA9F;
  --rk-font-display: "Bebas Neue", "Oswald", sans-serif;
  --rk-font-heading: "Montserrat", sans-serif;
  --rk-font-body: "Barlow", sans-serif;
  --pad: 22px;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--rk-font-body); font-weight: 400; font-size: 18px; line-height: 1.5; background: var(--rk-night); color: var(--rk-chalk); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 720px; }
section { padding: 64px 0; }

/* Section backgrounds */
.bg-night { background: var(--rk-night); color: var(--rk-chalk); }
.bg-olive { background: var(--rk-olive); color: var(--rk-chalk); }
.bg-chalk { background: var(--rk-chalk); color: var(--rk-night); }
.bg-lime  { background: var(--rk-lime);  color: var(--rk-night); }

/* Type */
.rk-headline, h1, h2 { font-family: var(--rk-font-display); font-weight: 400; line-height: .9; text-transform: uppercase; letter-spacing: .01em; }
h1 { font-size: clamp(64px, 17vw, 132px); }
h2 { font-size: clamp(46px, 11vw, 80px); }
h3 { font-family: var(--rk-font-heading); font-weight: 600; text-transform: uppercase; letter-spacing: .2em; font-size: 14px; line-height: 1.3; }
.rk-label { font-family: var(--rk-font-heading); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: 13px; line-height: 1.3; }
.bg-night .rk-label, .bg-olive .rk-label { color: var(--rk-lime); }
.bg-chalk .rk-label { color: var(--rk-moss); }
p + p { margin-top: 1em; }
.lead { font-size: 20px; font-weight: 500; }
.small { font-size: 16px; }
.bg-night .small, .bg-olive .small { color: var(--rk-fog); }
.bg-chalk .small { color: var(--rk-moss); }
.rk-accent { color: var(--rk-lime); }
.rk-highlight { background: var(--rk-lime); color: var(--rk-night); padding: 0 .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Devices: the Line and the Block */
.rk-line { width: 72px; height: 6px; background: var(--rk-lime); margin: 20px 0 24px; }
.rk-line.dark { background: var(--rk-night); }
.rk-block { display: inline-block; font-family: var(--rk-font-display); line-height: .98; text-transform: uppercase; text-align: center; font-size: 30px; padding: .26em .42em .2em; border-radius: .2em; background: var(--rk-lime); color: var(--rk-night); }
.rk-block.olive { background: var(--rk-olive); color: var(--rk-lime); }

/* Buttons */
.btn { display: inline-block; font-family: var(--rk-font-heading); font-weight: 600; text-transform: uppercase; letter-spacing: .2em; font-size: 13px; line-height: 1.3; text-decoration: none; text-align: center; padding: 18px 24px; border-radius: 6px; border: 2px solid var(--rk-lime); background: var(--rk-lime); color: var(--rk-night); cursor: pointer; }
.btn:hover, .btn:focus-visible { background: var(--rk-night); color: var(--rk-lime); }
.btn.ghost { background: transparent; color: var(--rk-chalk); border-color: var(--rk-chalk); }
.btn.ghost:hover, .btn.ghost:focus-visible { background: var(--rk-chalk); color: var(--rk-night); }
.bg-chalk .btn, .bg-lime .btn { background: var(--rk-night); color: var(--rk-lime); border-color: var(--rk-night); }
.bg-chalk .btn:hover, .bg-lime .btn:hover, .bg-chalk .btn:focus-visible, .bg-lime .btn:focus-visible { background: transparent; color: var(--rk-night); }
.btn-row { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
:focus-visible { outline: 3px solid var(--rk-lime); outline-offset: 3px; }
.bg-chalk :focus-visible, .bg-lime :focus-visible { outline-color: var(--rk-night); }

/* Header */
.site-header { background: var(--rk-night); border-bottom: 1px solid #23272c; position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.logo img { width: 176px; height: auto; }
.nav-toggle { background: none; border: 2px solid var(--rk-chalk); color: var(--rk-chalk); border-radius: 6px; padding: 10px 12px; font-family: var(--rk-font-heading); font-weight: 600; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--rk-night); border-bottom: 1px solid #23272c; padding: 8px var(--pad) 24px; }
.site-nav.open { display: block; }
.site-nav a { display: block; padding: 16px 0; font-family: var(--rk-font-heading); font-weight: 600; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--rk-chalk); border-bottom: 1px solid #23272c; }
.site-nav a[aria-current="page"] { color: var(--rk-lime); }
.site-nav a.btn { color: var(--rk-night); border: 2px solid var(--rk-lime); margin-top: 20px; padding: 16px 20px; }
.site-nav a.btn:hover { color: var(--rk-lime); }

/* Hero */
.hero { padding: 44px 0 0; }
.hero .rk-label { margin-bottom: 14px; display: block; }
.hero-photo { margin-top: 40px; }
.hero-photo img, .photo img { width: 100%; border-radius: 6px; }
.page-hero { padding: 48px 0 56px; }
.page-hero h1 { font-size: clamp(54px, 14vw, 112px); }

/* Generic two-column */
.two { display: grid; gap: 36px; }
.photo figcaption { margin-top: 10px; }

/* Steps */
.steps { display: grid; gap: 28px; margin-top: 12px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 18px; border-top: 2px solid #2a2f35; }
.steps li::before { content: "0" counter(step); font-family: var(--rk-font-display); font-size: 56px; line-height: .9; color: var(--rk-lime); display: block; margin-bottom: 8px; }
.steps strong { display: block; font-family: var(--rk-font-heading); font-weight: 600; text-transform: uppercase; letter-spacing: .2em; font-size: 14px; margin-bottom: 8px; }

/* Quotes */
.quotes { display: grid; gap: 16px; margin-top: 8px; }
.quote { border: 2px solid var(--rk-lime); border-radius: 10px; padding: 24px 22px 20px; }
.quote p { font-size: 21px; font-weight: 500; line-height: 1.3; }
.quote footer { margin-top: 16px; font-family: var(--rk-font-heading); font-weight: 600; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--rk-fog); }
.quote footer::before { content: ""; display: block; width: 36px; height: 4px; background: var(--rk-lime); margin-bottom: 12px; }

/* Before and after */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ba figure { position: relative; }
.ba img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; }
.ba figcaption { position: absolute; left: 10px; bottom: 10px; }
.ba .rk-block { font-size: 22px; }

/* Podcast */
.episodes { display: grid; gap: 16px; margin-top: 32px; }
.yt { position: relative; aspect-ratio: 16 / 9; background: var(--rk-night); border-radius: 8px; overflow: hidden; }
.yt button { position: absolute; inset: 0; width: 100%; height: 100%; background: var(--rk-night); color: var(--rk-chalk); border: 0; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; text-align: left; padding: 20px; font: inherit; }
.yt button:hover .play, .yt button:focus-visible .play { background: var(--rk-chalk); }
.yt .ep-title { font-family: var(--rk-font-display); font-size: 30px; line-height: .95; text-transform: uppercase; }
.yt .ep-meta { font-family: var(--rk-font-heading); font-weight: 600; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--rk-lime); display: flex; align-items: center; gap: 12px; }
.yt .play { width: 44px; height: 44px; border-radius: 50%; background: var(--rk-lime); display: inline-flex; align-items: center; justify-content: center; }
.yt .play::after { content: ""; border-left: 14px solid var(--rk-night); border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Cards */
.cards { display: grid; gap: 16px; margin-top: 32px; }
.card { border: 2px solid var(--rk-night); border-radius: 10px; padding: 24px 22px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.bg-night .card { border-color: #2a2f35; }
.card .icon { width: 64px; height: 64px; border-radius: 12px; background: var(--rk-night); display: flex; align-items: center; justify-content: center; }
.bg-night .card .icon { background: var(--rk-olive); }
.card .icon img { width: 34px; height: 34px; }
.card h3 { font-family: var(--rk-font-display); font-weight: 400; font-size: 34px; letter-spacing: .01em; line-height: .95; }
.card .more { margin-top: auto; padding-top: 8px; font-family: var(--rk-font-heading); font-weight: 600; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
a.card:hover, a.card:focus-visible { background: var(--rk-night); color: var(--rk-chalk); }
a.card:hover .icon, a.card:focus-visible .icon { background: var(--rk-olive); }

/* Tick lists */
.ticks { display: grid; gap: 14px; margin-top: 24px; }
.ticks li { padding-left: 38px; background: url("../icons/check-night.svg") left 2px / 24px 24px no-repeat; }
.bg-night .ticks li, .bg-olive .ticks li { background-image: url("../icons/check-lime.svg"); }
.dashes li { padding-left: 38px; position: relative; }
.dashes { display: grid; gap: 14px; margin-top: 24px; }
.dashes li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 18px; height: 3px; background: var(--rk-moss); }

/* Coaching options */
.options { display: grid; gap: 16px; margin-top: 32px; }
.option { background: var(--rk-night); color: var(--rk-chalk); border-radius: 10px; padding: 26px 22px; }
.option h3 { font-family: var(--rk-font-display); font-weight: 400; font-size: 40px; letter-spacing: .01em; line-height: .95; color: var(--rk-lime); }
.option dl { margin-top: 18px; }
.option dt { font-family: var(--rk-font-heading); font-weight: 600; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--rk-fog); padding-top: 14px; border-top: 1px solid #2a2f35; }
.option dd { padding: 4px 0 14px; font-weight: 500; }

/* Split: chalk half and night half */
.split { display: grid; padding: 0; }
.split > div { padding: 56px var(--pad); }
.split h2 { font-size: clamp(40px, 10vw, 64px); }

/* Questions */
.faq { margin-top: 28px; border-top: 2px solid #2a2f35; }
.faq details { border-bottom: 2px solid #2a2f35; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-family: var(--rk-font-display); font-size: 36px; color: var(--rk-lime); }
.faq details[open] summary::after { content: "-"; }
.faq details p { padding: 0 0 22px; max-width: 640px; }

/* Closing call to action */
.cta { text-align: left; }
.cta p { max-width: 520px; margin-top: 18px; font-weight: 500; font-size: 20px; }

/* Free stuff page */
.magnet { display: grid; gap: 18px; padding: 32px 0; border-top: 2px solid var(--rk-night); }
.magnet .icon { width: 84px; height: 84px; border-radius: 16px; background: var(--rk-night); display: flex; align-items: center; justify-content: center; }
.magnet .icon img { width: 44px; height: 44px; }
.magnet h2 { font-size: clamp(38px, 9vw, 56px); }
.magnet .btn { align-self: start; justify-self: start; }
.form-placeholder { border: 2px dashed var(--rk-moss); border-radius: 8px; padding: 18px; color: var(--rk-moss); font-family: var(--rk-font-heading); font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.6; }

/* Story (About) */
.story { display: grid; gap: 40px; }
.story .photo-pair { display: grid; gap: 16px; }

/* Legal pages */
.legal h2 { font-size: 40px; margin-top: 44px; }
.legal h2 + p, .legal h2 + ul { margin-top: 14px; }
.legal ul { list-style: disc; padding-left: 22px; margin-top: 12px; display: grid; gap: 8px; }
.legal a { color: var(--rk-night); font-weight: 600; }

/* Footer */
.site-footer { background: var(--rk-night); color: var(--rk-chalk); border-top: 1px solid #23272c; padding: 48px 0 40px; }
.site-footer .brand { display: flex; align-items: center; gap: 14px; }
.site-footer .brand img { width: 46px; height: auto; }
.site-footer .brand span { font-family: var(--rk-font-heading); font-weight: 600; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.site-footer nav, .site-footer .meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; }
.site-footer a { font-family: var(--rk-font-heading); font-weight: 600; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; padding: 8px 0; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--rk-lime); }
.site-footer .contact { margin-top: 26px; color: var(--rk-fog); font-size: 16px; }
.site-footer .contact a { font-family: var(--rk-font-body); font-weight: 500; font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--rk-chalk); text-decoration: underline; }
.site-footer .copy { margin-top: 22px; color: var(--rk-fog); font-size: 15px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: var(--rk-lime); color: var(--rk-night); padding: 12px 16px; border-radius: 6px; }

/* Tablet and up */
@media (min-width: 640px) {
  .btn-row { flex-direction: row; flex-wrap: wrap; }
  .quotes { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .options { grid-template-columns: 1fr 1fr; }
  .episodes { grid-template-columns: repeat(3, 1fr); }
  .yt .ep-title { font-size: 24px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .magnet { grid-template-columns: 84px 1fr; column-gap: 28px; }
  .magnet > :not(.icon) { grid-column: 2; }
  .magnet .icon { grid-row: span 5; }
  .story .photo-pair { grid-template-columns: 1.6fr 1fr; }
  .story .photo-pair figure:last-child img { aspect-ratio: 1.14; }
  .story .photo-pair img { height: 100%; object-fit: cover; }
  .ba { gap: 16px; }
  .ba .rk-block { font-size: 30px; }
}

/* Desktop */
@media (min-width: 900px) {
  :root { --pad: 40px; }
  section { padding: 104px 0; }
  body { font-size: 19px; }
  .lead { font-size: 23px; }
  .nav-toggle { display: none; }
  .site-nav { display: flex; position: static; align-items: center; gap: 30px; padding: 0; border: 0; }
  .site-nav a { padding: 8px 0; border: 0; }
  .site-nav a:hover { color: var(--rk-lime); }
  .site-nav a.btn { margin-top: 0; padding: 13px 18px; }
  .site-header .wrap { min-height: 80px; }
  .logo img { width: 210px; }
  .hero { padding: 0; }
  .hero .two { grid-template-columns: 1.1fr .9fr; align-items: end; gap: 56px; }
  .hero-text { padding: 88px 0 96px; }
  .hero-photo { margin-top: 0; align-self: end; }
  .hero-photo img { border-radius: 6px 6px 0 0; max-height: 660px; object-fit: cover; object-position: top; }
  .page-hero { padding: 88px 0 96px; }
  .two { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .two.top { align-items: start; }
  .quotes { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .quote p { font-size: 23px; }
  .yt .ep-title { font-size: 32px; }
  .split { grid-template-columns: 1fr 1fr; }
  .split > div { padding: 104px 56px; }
  .split > div:first-child { padding-left: max(40px, calc((100vw - var(--max)) / 2 + 40px)); }
  .split > div:last-child { padding-right: max(40px, calc((100vw - var(--max)) / 2 + 40px)); }
  .story { gap: 72px; }
  .site-footer .cols { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
  .site-footer nav { margin-top: 6px; }
}
