/* ==========================================================================
   KINA — Global Styles
   Replication of https://www.ptkina.com/ (Squarespace 7.1 aesthetic)
   Palette recovered from live site: black, white, #F5F5F5, #797979, #D9D9D9
   Font: "obviously" (proprietary) -> Manrope substitute + system fallback
   ========================================================================== */

:root {
  --black: #000000;
  --white: #ffffff;
  --light: #f5f5f5;
  --gray: #797979;
  --accent: #d9d9d9;

  --base: 16px;
  --h1: 4rem;
  --h2: 3.5rem;
  --h3: 2.5rem;
  --h4: 1.4rem;
  --large: 1.2rem;
  --body: 1rem;
  --small: 0.9rem;

  --font: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --content-max: 1400px;
  --section-pad: 6.5rem 4vw;
  --header-h: 92px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: var(--base);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--body);
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--black);
}

h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
h4 { font-size: var(--h4); }

p {
  color: var(--gray);
  font-weight: 400;
}

.eyebrow {
  font-size: var(--small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gray);
}

.lead {
  font-size: var(--large);
  color: var(--gray);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 4vw;
}

.section {
  padding: var(--section-pad);
  position: relative;
}

.section--light { background: var(--light); }
.section--white { background: var(--white); }
.section--black { background: var(--black); }
.section--black h1, .section--black h2, .section--black h3, .section--black h4,
.section--black p, .section--black .eyebrow { color: var(--white); }
.section--black .eyebrow { color: var(--accent); }

.section-head {
  max-width: 720px;
  margin-bottom: 3rem;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head .eyebrow { margin-bottom: 0.75rem; }

.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 1.05em 2.4em;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  text-align: center;
  border-radius: 0;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), opacity 0.25s var(--ease);
  border: 1px solid transparent;
}

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

.btn--black:hover { background: #333333; }

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

.btn--white:hover { background: var(--light); }

.btn--outline {
  background: transparent;
  border-color: var(--black);
  color: var(--black);
}

.btn--outline:hover { background: var(--black); color: var(--white); }

.btn--ghost-light {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn--ghost-light:hover { background: var(--white); color: var(--black); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #ececec;
}

.header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-h);
}

.header-branding { justify-self: start; }

.header-logo {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.header-nav { justify-self: center; }

.header-nav-list {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}

.header-nav-list > li > a,
.header-nav-folder-title {
  font-size: var(--small);
  font-weight: 600;
  color: var(--black);
  padding: 0.6rem 0;
  letter-spacing: 0.01em;
  transition: color 0.2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.header-nav-list > li > a:hover,
.header-nav-folder-title:hover { color: var(--gray); }

.header-nav-list > li.active > a {
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* dropdown */
.has-dropdown { position: relative; }

.dropdown-caret {
  font-size: 0.6em;
  transition: transform 0.25s var(--ease);
}

.has-dropdown:hover .dropdown-caret,
.has-dropdown.open .dropdown-caret { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--white);
  border: 1px solid #ebebeb;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  min-width: 210px;
  padding: 0.6rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  z-index: 50;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu,
.has-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.55rem 1.4rem;
  font-size: var(--small);
  color: var(--black);
  white-space: nowrap;
}

.dropdown-menu a:hover { background: var(--light); }

.dropdown-menu .soon { color: var(--gray); }

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-actions .btn { padding: 0.85em 1.8em; }

/* mobile toggle */
.menu-toggle {
  justify-self: end;
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  z-index: 120;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--black);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   Mobile menu overlay
   ========================================================================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 110;
  padding: calc(var(--header-h) + 1rem) 2rem 2rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.mobile-menu.open { opacity: 1; visibility: visible; }

.mobile-menu .mobile-links > li > a,
.mobile-menu .mobile-folder-title {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--black);
  padding: 0.9rem 0;
  border-bottom: 1px solid #eeeeee;
}

.mobile-menu .mobile-sub {
  padding-left: 1rem;
  margin-bottom: 0.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.mobile-menu .mobile-sub.open { max-height: 400px; }

.mobile-menu .mobile-sub a {
  display: block;
  padding: 0.6rem 0;
  color: var(--gray);
  font-size: 1rem;
}

.mobile-menu .mobile-foot {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  background-color: #0c0c0c;
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.site-footer .footer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.footer-inner {
  position: relative;
  padding: 6rem 4vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: var(--content-max);
  margin: 0 auto;
}

.footer-inner .eyebrow { color: var(--accent); }

.footer-inner h2 { color: var(--white); max-width: 700px; }

.footer-contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  margin-top: 0.5rem;
}

.footer-contact-links a {
  color: var(--white);
  font-size: var(--body);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 2px;
}

.footer-contact-links a:hover { border-color: var(--white); }

.footer-bottom {
  position: relative;
  padding: 1.25rem 4vw;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: var(--small);
  color: rgba(255, 255, 255, 0.75);
}

.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: var(--small);
}

/* ==========================================================================
   Animations / reveal
   ========================================================================== */
[data-reveal] {
  opacity: 1;
}

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

html.js [data-reveal].is-revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive (base)
   ========================================================================== */
@media (max-width: 1100px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .header-nav { display: none; }
  .header-actions .btn { display: none; }
  .menu-toggle { display: flex; }
}

@media (max-width: 768px) {
  :root { --section-pad: 4.5rem 6vw; }
  h1 { font-size: clamp(2.4rem, 8vw, 3.5rem); }
  h2 { font-size: clamp(2rem, 7vw, 3rem); }
  h3 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  h4 { font-size: 1.3rem; }
  .header-logo { height: 38px; }
  .header-inner { min-height: 74px; padding: 0 1.25rem; }
  .footer-contact-links { flex-direction: column; gap: 0.75rem; }
}
