/* ============================================
   KAINALU SOUND — 1:1 replica of the live
   Squarespace site (phase 1 migration).
   Adobe Typekit fonts (runda / futura-pt) are
   approximated with Work Sans + Jost.
   ============================================ */

:root {
  --bg-page:     #00070f;   /* body + 11px frame */
  --bg-header:   #bababa;   /* gray nav bar */
  --bg-content:  #ffffff;   /* white main body */
  --bg-footer:   #00070f;   /* dark footer */
  --text:        #616161;  /* live body copy color */
  --text-dark:   #242424;
  --text-muted:  #616161;
  --text-nav:    #474747;
  --text-footer: #ffffff;
  --text-footer-muted: #bdbdbd;
  --border:      #e5e5e5;
  --link:        #1a7fd4;
  --accent:      #ffc414;   /* Squarespace yellow accent (used for buttons) */

  --font-heading: 'Work Sans', 'Helvetica Neue', Arial, sans-serif; /* stand-in for runda */
  --font-body:    'Jost', 'Helvetica Neue', Arial, sans-serif;      /* stand-in for futura-pt */

  --frame:       11px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-page);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0.03em;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.15s ease-out; }
a:hover { color: #000; }

/* ---- Site frame ----
   Desktop: the 11px dark frame wraps the entire site (nav + main + footer).
   Mobile (<=720px): the frame wraps only the body content; nav and footer
   extend edge-to-edge. Matches the live Squarespace responsive behavior. */
.site {
  margin: var(--frame);
  background: var(--bg-content);
  min-height: calc(100vh - 2 * var(--frame));
}
.site-inner { background: var(--bg-content); }

/* ---- Typography (metrics from live site.css) ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 300;
  line-height: 1.3;
  color: var(--text-dark);
}
h1 { font-size: 34px; letter-spacing: 0.03em; line-height: 1.2; color: #2b2b2b; }
h2 { font-size: 21px; letter-spacing: 0.04em; line-height: 1.4; color: #141414; }
h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.2;
  color: #28617b;
}
h4 { font-size: 1rem;   font-weight: 600; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.content a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(0,0,0,.2); }
.content a:hover { color: #000; text-decoration-color: #000; }

/* ---- Layout ---- */
.container {
  max-width: 1248px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- Header / Nav ----
   Big left-justified logo with nav links clustered immediately to its
   right, matching the live Squarespace header. The remainder of the
   gray bar to the right stays empty. */
.site-header {
  background: var(--bg-header);
  padding: 1rem 2rem;
}
.header-inner {
  max-width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.header-branding { flex-shrink: 0; display: block; margin-left: 0.5rem; }
.header-logo { height: 288px; width: auto; display: block; }
.header-nav { display: flex; align-items: center; }
.nav-links { list-style: none; display: flex; gap: 1.75rem; align-items: center; }
.nav-links a {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-nav);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 0;
  white-space: nowrap;
  transition: color 170ms ease-in-out;
}
.nav-links a:hover { color: #28617b; }
.nav-links a.active { color: #28617b; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}
.nav-toggle .dot {
  display: block;
  width: 5px; height: 5px;
  background: var(--text-nav);
  border-radius: 1px;
}

/* Header social icons, right-aligned — live shows FB/YT/IG at top right
   (regular style: dark glyphs, ~34px, group-fade hover). */
.header-social {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding-right: 0.5rem;
}
.header-social a { display: block; width: 34px; height: 34px; }
.header-social svg {
  width: 100%;
  height: 100%;
  fill: #262626;
  transition: fill 170ms ease-in-out;
}
.header-social:hover svg { fill: rgba(38, 38, 38, 0.4); }
.header-social a:hover svg { fill: #262626; }

/* Mobile slide-in menu, matching the live Squarespace overlay:
   white panel from the right (calc(100% - 60px)), close button at
   top left, dimmed click-away backdrop. */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  transition: visibility 0s 350ms;
}
.mobile-overlay.is-active { visibility: visible; transition: none; }
.mobile-overlay-back {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 350ms cubic-bezier(0.55, 0, 0.1, 1);
}
.mobile-overlay.is-active .mobile-overlay-back { opacity: 1; }
.mobile-overlay-menu {
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: calc(100% - 60px);
  background: #fff;
  padding: 36px;
  overflow-y: auto;
  transform: translate3d(100%, 0, 0);
  transition: transform 350ms cubic-bezier(0.55, 0, 0.1, 1);
}
.mobile-overlay.is-active .mobile-overlay-menu { transform: translate3d(0, 0, 0); }
.mobile-overlay-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-overlay-nav a {
  display: block;
  padding-bottom: 0.618em;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-nav);
}
.mobile-overlay-nav a.active { color: var(--link); }
.mobile-overlay-close {
  position: absolute;
  top: 0; left: 0;
  z-index: 2;
  padding: 22px;
  background: #fff;
  border: 0;
  cursor: pointer;
  line-height: 0;
  opacity: 0;
  transition: opacity 350ms cubic-bezier(0.55, 0, 0.1, 1) 175ms;
}
.mobile-overlay.is-active .mobile-overlay-close { opacity: 1; }
.mobile-overlay-close svg {
  width: 16px; height: 16px;
  stroke: #222;
  fill: none;
}

hr.divider {
  width: 100%;
  max-width: 720px;
  margin: 2.5rem auto;
  border: 0;
  border-top: 1px solid var(--border);
}

/* ---- Home page ---- */
.home-welcome {
  padding: 4rem 0 1rem;
  text-align: center;
}
.home-welcome h1 { margin-bottom: 1rem; font-weight: 300; }
.home-welcome .tagline {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 1.75rem;
}
.home-welcome .services-line {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--text-dark);
  max-width: 860px;
  margin: 0 auto;
  line-height: 1.4;
}

.home-spotlight { padding: 2rem 0 3rem; }
.home-spotlight h1 { font-size: 2.15rem; margin-bottom: 1.5rem; font-weight: 300; }

.home-clients { padding: 1rem 0 3rem; }
.home-clients h2 { font-weight: 300; margin-bottom: 1.75rem; }
.home-clients .client-entry {
  margin-bottom: 0.9rem;
  line-height: 1.75;
}
.home-clients .client-entry strong { color: var(--text-dark); font-weight: 600; }
.home-clients .outro { margin-top: 2rem; color: var(--text); }

/* ---- Testimonial (home) ---- */
.home-testimonial { padding: 1rem 0 3rem; }
.testimonial-figure {
  max-width: 820px;
  margin: 0 auto;
}
.testimonial-figure img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  cursor: zoom-in;
}
.testimonial-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.6rem;
  line-height: 1.5;
}
.testimonial-caption a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: rgba(0,0,0,.2);
}
.testimonial-caption a:hover { color: #000; }

/* ---- Video embed ---- */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.video-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ---- Page hero ---- */
.page-hero {
  padding: 3.5rem 0 1.5rem;
  text-align: center;
}
.page-hero h1 {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 300;
  margin-bottom: 0.5rem;
}
.page-hero p {
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

/* ---- Portfolio ----
   Emulates the Squarespace Index layout: each section is a 2-column grid
   with featured-width videos on the left and a paragraph + 2x2 sub-grid
   of smaller videos on the right, then more featured videos. */

.portfolio-section { padding: 2.5rem 0; }
.portfolio-section + .portfolio-section { border-top: 1px solid var(--border); }

.portfolio-wrap {
  max-width: 1820px;
  margin: 0 auto;
  padding: 0 2rem;
}

.portfolio-narrow {
  max-width: 760px;
  margin: 0 auto;
}

.portfolio-section h3 { margin-bottom: 1rem; }
.portfolio-section p,
.portfolio-section .section-intro {
  color: var(--text);
  margin-bottom: 1.25rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.portfolio-grid .col-left,
.portfolio-grid .col-right {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Outdoor grid: right column has a tall hero image spanning the full height. */
.outdoor-grid .col-right.hero-col { align-self: stretch; }
.tall-hero {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

/* 2x2 sub-grid for smaller thumbnail-sized videos. */
.sub-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0.25rem 0;
}

/* Featured videos fill the column width. Default .video-embed already
   keeps a 16:9 aspect ratio; the .feature modifier is a semantic hook. */
.video-embed.feature { width: 100%; }

/* Pair of images side-by-side (Outdoor Festivals). */
.image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.image-pair img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
}
.image-pair .video-embed { border-radius: 2px; overflow: hidden; }

.full-width-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 2px;
  margin: 0.5rem 0;
}

.portfolio-figure {
  margin: 0;
  text-align: center;
}
.portfolio-figure img {
  width: 100%;
  border-radius: 2px;
}
.portfolio-figure figcaption {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.68;
  margin-top: 0.6rem;
}
.portfolio-figure figcaption a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: rgba(0,0,0,.2);
}

/* ---- Audio samples — now nested inside Recording/Mixing section.
   Matches the live Squarespace Audio Block styling: a simple stack of
   titled tracks with native-looking controls. */
.audio-grid {
  display: grid;
  gap: 0.75rem;
  margin: 2rem 0 0;
}
.audio-track {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.9rem 1.15rem;
  display: grid;
  gap: 0.4rem;
}
.track-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.35;
}
.track-artist {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}
.track-player audio { width: 100%; height: 36px; margin-top: 0.3rem; }

/* ---- About ----
   Top row: portrait (left) + bio (right). Below: 2-column masonry-style
   gallery with figures stacking in each column, mirroring Squarespace. */

.about-wrap {
  max-width: 1820px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}

/* Live Squarespace structure: 5/12 left column, 7/12 right column */
.about-top {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 3rem;
}

.about-col-left,
.about-col-right {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  min-width: 0;
}

.about-top figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.about-top figure img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  display: block;
}
/* Live image captions: 12px, regular style, body gray */
.about-top figcaption {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.68;
}
.about-top figcaption a,
.about-bio a {
  color: inherit;
  text-decoration: underline;
}

.about-bio p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.about-rule {
  border: 0;
  border-top: 1px solid #e3e3e3;
  margin: 0.5rem 0;
}

/* Sub-row under the bio: live uses a 4/3 column split */
.about-subrow {
  display: grid;
  grid-template-columns: 4fr 3fr;
  gap: 1.25rem;
  align-items: start;
}
.about-substack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}


/* ---- Services (2-column rows) ---- */
.services-body {
  max-width: 1430px;
  margin: 0 auto;
  padding: 2rem 2rem 3rem;
}
.service-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.service-row:last-child { border-bottom: 0; }
.service-label h2 { margin: 0; }
.service-desc p {
  color: var(--text);
  margin: 0;
}

/* ---- Contact (2-column form + photo) ---- */
.contact-body {
  max-width: 1560px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.contact-copy h2 { margin-bottom: 1rem; }
.contact-intro {
  color: var(--text);
  margin-bottom: 2rem;
}
.contact-intro a { text-decoration: underline; text-decoration-color: rgba(0,0,0,.2); }
.contact-intro a:hover { color: #000; text-decoration-color: #000; }

.contact-photo img {
  width: 100%;
  height: auto;
  border-radius: 2px;
}

/* --- Form --- */
.contact-form .group-label,
.contact-form label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  letter-spacing: 0;
  text-transform: none;
}
.contact-form .req {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}
.contact-form .form-group { margin-bottom: 1.25rem; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form .form-subgroup .field-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  color: var(--text-dark);
  background: #fff;
  border: 1px solid #bbb;
  padding: 0.65rem 0.85rem;
  transition: border-color 0.15s ease-out;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #666;
}
.contact-form textarea { min-height: 120px; resize: vertical; }

.contact-form .honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form .turnstile {
  margin: 1rem 0 1.25rem;
}

/* Yellow pill submit button matching the live site */
/* Live medium outline pill button: futura-pt 12px/600, 21px 34px padding */
.btn-pill {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1em;
  padding: 21px 34px;
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 300px;
  cursor: pointer;
  transition: background 0.15s ease-out, color 0.15s ease-out;
}
.btn-pill:hover { background: var(--accent); color: #fff; }

.form-status {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
  text-align: center;
}
.form-status.success { background: #e7f4ea; color: #1e5e33; border: 1px solid #c4e0cc; }
.form-status.error   { background: #fbe9e7; color: #8a2010; border: 1px solid #e8bdb6; }

/* ---- Lightbox (click-to-zoom for images) ---- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  border-radius: 2px;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.6rem;
  font-family: var(--font-heading);
}
.lightbox-close:hover { color: var(--accent); }

/* ---- Footer ---- */
.site-footer {
  background: var(--bg-footer);
  color: var(--text-footer);
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}
.footer-inner {
  max-width: 760px;
  margin: 0 auto;
}

/* Footer has no social icons — live shows them in the header only. */

.footer-email {
  margin-bottom: 1.5rem;
}
.footer-email a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text-footer);
  text-decoration: none;
}
.footer-email a:hover { color: var(--accent); }

.footer-nav { margin-bottom: 1.5rem; }
.footer-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
/* Live footer nav: runda 20px, regular weight, no uppercase, #dbdbdb */
.footer-nav a {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 400;
  color: #dbdbdb;
  letter-spacing: 0.03em;
  transition: color 0.15s ease-out;
}
.footer-nav a:hover { color: rgba(219, 219, 219, 0.5); }

/* Live copyright is an h3-styled line: bold, wide-tracked, #e0e0e0 */
.site-footer .copyright {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: #e0e0e0;
  letter-spacing: 0.18em;
  margin: 1.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}

/* ---- 404 ---- */
.notfound-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}
.notfound-body ul { margin: 0 0 1.5rem 1.25rem; }
.notfound-body li { margin-bottom: 0.5rem; }
.notfound-body a { text-decoration: underline; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .services-body { padding-left: 1.5rem; padding-right: 1.5rem; }
  .service-row { grid-template-columns: 1fr; gap: 0.75rem; padding: 1.5rem 0; }
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .contact-photo { order: -1; }
  .about-top { grid-template-columns: 1fr; }
  .about-portrait { max-width: 420px; margin: 0 auto; width: 100%; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .home-welcome .services-line { font-size: 1.15rem; }
}

@media (max-width: 720px) {
  /* On mobile, frame wraps only the body — nav + footer go edge-to-edge. */
  .site { margin: 0; min-height: 100vh; background: transparent; }
  .site-inner { margin: var(--frame); }
  .site-header { padding: 0.35rem 1rem 0.25rem; position: relative; }
  .header-inner { flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
  .header-branding { order: 2; }
  .header-logo { height: 180px; }
  .nav-toggle {
    display: flex;
    position: absolute;
    left: 0.75rem; top: 0.9rem;
    order: 1;
  }
  /* Desktop nav + social hide on mobile; the slide-in overlay takes over. */
  .header-nav { display: none; }
  .header-social { display: none; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .sub-grid-2 { grid-template-columns: 1fr; }
  .image-pair { grid-template-columns: 1fr; }
  .footer-nav ul { gap: 1rem; }
  h1 { font-size: 1.65rem; }
}
