/* =========================================================
   tula — Header / Hero / Menu / Footer
   Flat colors only. No gradients, shadows, italics or script fonts.
   ========================================================= */

:root {
  --cream:      #F7F3EC;
  --off-white:  #FBF9F5;
  --ink:        #17130F;
  --ink-soft:   rgba(23,19,15,0.62);
  --ink-faint:  rgba(23,19,15,0.4);
  --line:       rgba(23,19,15,0.14);
  --line-strong: rgba(23,19,15,0.28);

  --panel-dark:  #241B13;
  --panel-light: #EFE6D4;
  --on-dark:      #F7F3EC;
  --on-dark-soft: rgba(247,243,236,0.65);
  --on-dark-line: rgba(247,243,236,0.16);

  --font-sans: 'Elms Sans', 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 64px);
  --radius: 2px;
  --ease: cubic-bezier(.25,.65,.3,1);

  --top-offset: 146px;
}

/* -----------------------------------------------------------
   Reset
----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, p, ul, li { margin: 0; }
ul { list-style: none; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  font-style: normal;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--top-offset);
}

::selection { background: var(--ink); color: var(--cream); }

/* -----------------------------------------------------------
   Reveal-on-load
----------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* -----------------------------------------------------------
   Buttons
----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 15px 32px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
  font-style: normal;
  border: 1px solid var(--on-dark);
  border-radius: var(--radius);
  color: var(--on-dark);
  background: transparent;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.btn:hover { background: var(--on-dark); color: var(--ink); }

/* =============================================================
   Top fixed stack: announcement bar + header
============================================================= */
.site-top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
}

.announcement-bar {
  background: var(--panel-dark);
  color: var(--on-dark);
  padding: 9px var(--gutter);
  text-align: center;
}
.announcement-bar p {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.menu-toggle-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.menu-icon { display: flex; flex-direction: column; gap: 5px; width: 22px; }
.menu-icon span { display: block; height: 1px; width: 100%; background: var(--ink); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.logo { justify-self: center; display: block; }
.logo img { width: 130px; height: auto; }

.header-actions { justify-self: end; display: flex; align-items: center; gap: 26px; }
.header-action {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

/* -----------------------------------------------------------
   Backdrop
----------------------------------------------------------- */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23,19,15,0.45);
  z-index: 350;
  padding: 0;
}
.backdrop[hidden] { display: none; }

/* -----------------------------------------------------------
   Side menu
----------------------------------------------------------- */
.side-menu {
  position: fixed;
  top: 0; bottom: 0; left: 0;
  width: min(400px, 88vw);
  background: var(--off-white);
  z-index: 400;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .45s var(--ease);
  overflow-y: auto;
  border-right: 1px solid var(--line);
}
.side-menu.is-open { transform: translateX(0); }
.side-menu[hidden] { display: flex; }

.side-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.side-menu-title {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.menu-close {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.side-menu-list { padding: 10px 0 40px; }
.side-menu-list > li { border-bottom: 1px solid var(--line); }

.side-link {
  display: block;
  padding: 18px var(--gutter);
  font-size: 15px;
  color: var(--ink);
  transition: color .25s var(--ease), padding-left .25s var(--ease);
}
.side-link:hover { color: var(--ink-soft); padding-left: calc(var(--gutter) + 6px); }

.side-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  font-size: 15px;
  color: var(--ink);
}
.chevron {
  width: 8px; height: 8px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  transform: rotate(45deg);
  transition: transform .3s var(--ease);
  flex-shrink: 0;
}
.side-group-toggle[aria-expanded="true"] .chevron { transform: rotate(-135deg); }

.side-sub {
  max-height: 0;
  overflow: hidden;
  background: var(--cream);
  transition: max-height .4s var(--ease);
}
.side-group.is-open .side-sub { max-height: 260px; }
.side-sub .side-link { padding-left: calc(var(--gutter) + 18px); font-size: 14px; color: var(--ink-soft); }
.side-sub .side-link:hover { padding-left: calc(var(--gutter) + 24px); color: var(--ink); }

/* =============================================================
   Hero
============================================================= */
.hero {
  position: relative;
  height: calc(100vh - var(--top-offset));
  min-height: 520px;
  background: var(--panel-dark);
  overflow: hidden;
}

.hero-frame {
  position: absolute;
  top: 7%;
  right: 6%;
  bottom: 7%;
  width: 54%;
  background: var(--panel-light);
  border: 1px solid rgba(23,19,15,0.18);
}
.hero-frame-index {
  position: absolute;
  top: 20px;
  left: 22px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
}

.hero-content {
  position: absolute;
  left: var(--gutter);
  bottom: 44px;
  max-width: 380px;
  z-index: 2;
}
.hero-content h1 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  font-style: normal;
  color: var(--on-dark);
  line-height: 1.3;
  margin-bottom: 12px;
}
.hero-subtitle {
  font-size: 14px;
  color: var(--on-dark-soft);
  margin-bottom: 26px;
}

/* =============================================================
   Footer
============================================================= */
.site-footer { background: var(--panel-dark); color: var(--on-dark); }

.footer-brand-row {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px var(--gutter) 36px;
  border-bottom: 1px solid var(--on-dark-line);
}
.footer-logo {
  width: 100px;
  height: auto;
  display: block;
}

.footer-top {
  max-width: var(--container);
  margin: 0 auto;
  padding: 46px var(--gutter) 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--on-dark-soft);
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(247,243,236,0.78);
  margin-bottom: 13px;
  transition: color .25s var(--ease);
  width: fit-content;
}
.footer-col a:hover { color: var(--on-dark); }

.footer-bottom {
  border-top: 1px solid var(--on-dark-line);
  padding: 20px var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.footer-bottom p { font-size: 12px; color: var(--on-dark-soft); }

/* =============================================================
   Responsive
============================================================= */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero-frame { top: 9%; bottom: 9%; right: 5%; width: 60%; }
  .hero-content { max-width: 300px; }
}

@media (max-width: 640px) {
  :root { --top-offset: 117px; }
  .header-inner { padding: 14px var(--gutter); gap: 10px; }
  .logo img { width: 96px; }
  .menu-toggle-label { display: none; }
  .header-actions { gap: 14px; }
  .header-action { font-size: 11px; }

  .hero { height: auto; min-height: auto; overflow: visible; }
  .hero-frame {
    position: static;
    width: auto;
    top: auto; right: auto; bottom: auto;
    height: 260px;
    margin: 24px var(--gutter) 0;
  }
  .hero-content { position: static; max-width: none; padding: 26px var(--gutter) 34px; }

  .footer-top { grid-template-columns: 1fr; gap: 30px; padding: 36px var(--gutter) 46px; }
}
