/* Ituna Partners — site styles */

:root {
  --navy: #071A33;
  --navy-2: #0D2647;
  --gold: #C5A04D;
  --gold-light: #D9BD7C;
  --white: #FFFFFF;
  --off-white: #F7F6F2;
  --line: #E4E1D8;
  --ink: #1B2636;
  --muted: #5C6675;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", Arial, sans-serif;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.2em; }

h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--navy); }
h2 { font-size: clamp(2.1rem, 3.6vw, 3rem); }
h3 { font-size: 1.5rem; line-height: 1.2; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy); padding: 10px 16px; z-index: 200; }
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.eyebrow {
  margin: 0 0 16px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border: 1px solid transparent;
  border-radius: 2px;
  font: 600 .76rem/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-sm { padding: 13px 20px; font-size: .7rem; }
.btn-block { display: flex; width: 100%; }
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-outline { color: var(--white); border-color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-2); }
.btn-navy .icon { color: var(--gold); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gold);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy);
}
.text-link .icon { width: 1.1em; height: 1.1em; color: var(--gold); transition: transform .2s; }
.text-link:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(197, 160, 77, .35);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand img { width: 56px; height: auto; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; line-height: 1.05; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav ul { display: flex; gap: 32px; }
.site-nav ul a { position: relative; padding: 8px 0; font-size: .86rem; font-weight: 500; color: var(--white); transition: color .2s; }
.site-nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.site-nav ul a:hover, .site-nav ul a.is-active { color: var(--gold-light); }
.site-nav ul a:hover::after, .site-nav ul a.is-active::after { transform: scaleX(1); }

.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--gold); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy); color: var(--white); overflow: hidden; }
.hero-media {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 58%;
  background:
    linear-gradient(90deg, var(--navy) 0%, rgba(7, 26, 51, .55) 38%, rgba(7, 26, 51, .15) 100%),
    var(--hero-image, url("../assets/img/hero-library.jpg")) center / cover no-repeat;
}
.hero-inner { position: relative; padding: 120px 0 130px; }
.hero h1 { max-width: 12em; font-size: clamp(2.7rem, 5.6vw, 4.6rem); line-height: 1.05; color: var(--gold-light); }
.hero-lead { max-width: 30em; margin: 28px 0 40px; font-size: 1.12rem; color: rgba(255, 255, 255, .88); }

.hero-strip { position: relative; background: var(--navy); border-top: 1px solid rgba(197, 160, 77, .35); }
.strip-list { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-list li { display: flex; align-items: center; gap: 16px; padding: 26px 24px; font-size: .84rem; line-height: 1.45; color: rgba(255, 255, 255, .75); }
.strip-list li + li { border-left: 1px solid rgba(197, 160, 77, .25); }
.strip-list li:first-child { padding-left: 0; }
.strip-list .icon { width: 30px; height: 30px; color: var(--gold); }
.strip-list strong { display: block; font-weight: 600; color: var(--white); }

/* ---------- Mobile quick actions ---------- */
.quick { display: none; padding: 28px 0; background: var(--off-white); border-bottom: 1px solid var(--line); }
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 22px; }
.quick-actions a { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: .72rem; font-weight: 500; line-height: 1.3; text-align: center; color: var(--navy); }
.quick-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--navy); color: var(--gold); }
.quick-icon .icon { width: 24px; height: 24px; }
.quick .btn + .btn { margin-top: 10px; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-tint { background: var(--off-white); }
.section-head { max-width: 640px; margin: 0 auto 64px; text-align: center; }
.section-head::after { content: ""; display: block; width: 56px; height: 1px; margin: 28px auto 0; background: var(--gold); }
.section-lead { margin: 18px 0 0; font-size: 1.05rem; color: var(--muted); }
.section-foot { margin: 56px 0 0; text-align: center; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.services li { position: relative; padding: 44px 36px 48px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color .2s; }
.services li::before { content: ""; position: absolute; left: 36px; top: -1px; width: 48px; height: 2px; background: var(--gold); }
.services li:hover { background: var(--off-white); }
.services .icon { width: 38px; height: 38px; margin-bottom: 26px; color: var(--gold); stroke-width: 1.2; }
.services h3 { margin-bottom: 12px; }
.services p { margin: 0; font-size: .94rem; color: var(--muted); }

/* ---------- About split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; }
.split-media { position: relative; margin: 0 0 24px 24px; }
.split-media::before { content: ""; position: absolute; inset: 24px 24px -24px -24px; border: 1px solid var(--gold); }
.split-media img { position: relative; width: 100%; aspect-ratio: 6 / 5; object-fit: cover; }
.split-body h2 { margin-bottom: 26px; }
.split-body p:not(.eyebrow) { margin-bottom: 36px; font-size: 1.04rem; color: var(--muted); }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.portrait { position: relative; display: grid; place-items: end center; aspect-ratio: 4 / 5; margin-bottom: 24px; background: #E9E7E0; overflow: hidden; }
.portrait svg { width: 68%; aspect-ratio: 4 / 5; fill: #CFCCC2; }
.portrait span { position: absolute; left: 0; right: 0; bottom: 16px; font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-align: center; color: var(--muted); }
.team h3 { font-size: 1.6rem; }
.team .role { margin: 6px 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.team .bio { margin: 0; font-size: .92rem; color: var(--muted); }

/* ---------- Company profile ---------- */
.profile { padding: 84px 0; background: var(--navy); color: var(--white); }
.profile-frame { display: flex; align-items: center; gap: 40px; padding: 52px 56px; border: 1px solid rgba(197, 160, 77, .6); }
.profile-icon { width: 60px; height: 60px; color: var(--gold); stroke-width: 1; }
.profile-body { flex: 1; }
.profile-body h2 { margin-bottom: 14px; color: var(--white); }
.profile-body p:last-child { max-width: 36em; margin: 0; color: rgba(255, 255, 255, .78); }

/* ---------- Insights ---------- */
.insights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.insights article { display: flex; flex-direction: column; align-items: flex-start; }
.insights img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 24px; }
.meta { display: flex; justify-content: space-between; gap: 12px; width: 100%; margin-bottom: 14px; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.meta time { color: var(--muted); font-weight: 500; }
.insights h3 { margin-bottom: 12px; }
.insights article > p:not(.meta) { font-size: .94rem; color: var(--muted); }
.insights .text-link { margin-top: auto; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 5fr 6fr; gap: 72px; align-items: start; }
.contact-info dl { margin: 0 0 28px; }
.contact-info dl > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-info dl > div:first-child { padding-top: 0; }
.contact-info dt { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); }
.contact-info dt .icon { color: var(--gold); }
.contact-info dd { margin: 0 0 0 30px; color: var(--muted); }
.contact-info dd a:hover { color: var(--navy); }

.map {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  min-height: 240px;
  margin-top: 32px;
  border: 1px solid var(--line);
  background-color: #EEECE5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  text-align: center;
}
.map .icon { width: 34px; height: 34px; color: var(--gold); }
.map p { margin: 0; font-weight: 600; color: var(--navy); }
.map span { display: block; font-size: .82rem; font-weight: 400; color: var(--muted); }
.map iframe { width: 100%; height: 320px; border: 0; }
.map.has-map { display: block; background: none; }

.contact-form { padding: 44px; background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--gold); }
.field { margin-bottom: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { display: block; margin-bottom: 8px; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #CFCBC0;
  border-radius: 2px;
  background: var(--white);
  font: inherit;
  font-size: .96rem;
  color: var(--ink);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(197, 160, 77, .2); }
.field .is-invalid { border-color: #A33A2B; }
.form-note { margin: 20px 0 0; font-size: .8rem; color: var(--muted); }
.form-status { margin: 14px 0 0; font-size: .9rem; font-weight: 500; color: var(--navy); }
.form-status:empty { display: none; }
.form-status.is-error { color: #A33A2B; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .72); font-size: .9rem; border-top: 2px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.4fr 1.3fr; gap: 56px; padding: 76px 0 60px; }
.footer-about p { margin: 24px 0; max-width: 26em; }
.site-footer h4 { margin-bottom: 20px; font: 600 .74rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: var(--gold-light); }
.social { display: flex; gap: 22px; }
.social a { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding: 24px 0; border-top: 1px solid rgba(197, 160, 77, .25); font-size: .82rem; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; gap: 28px; }
.footer-bottom li { margin: 0; }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .site-nav { gap: 22px; }
  .site-nav ul { gap: 20px; }
  .split { gap: 56px; }
  .contact { gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .profile-frame { flex-wrap: wrap; }
}

@media (max-width: 920px) {
  :root { --header-h: 72px; }

  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 8px 24px 28px;
    background: var(--navy);
    border-bottom: 1px solid rgba(197, 160, 77, .35);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 15px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 1rem; }
  .site-nav ul a::after { display: none; }

  .section { padding: 76px 0; }
  .section-head { margin-bottom: 44px; }
  .services, .team, .insights { grid-template-columns: repeat(2, 1fr); }
  .split, .contact { grid-template-columns: 1fr; }
  .strip-list { grid-template-columns: repeat(2, 1fr); }
  .strip-list li { padding: 20px 16px; }
  .strip-list li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .strip-list li:nth-child(n+3) { border-top: 1px solid rgba(197, 160, 77, .25); }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .container { width: calc(100% - 40px); }
  .brand-name { font-size: 1.15rem; }
  .brand img { width: 48px; }

  .hero-media {
    width: 100%;
    background:
      linear-gradient(180deg, rgba(7, 26, 51, .78) 0%, rgba(7, 26, 51, .9) 100%),
      var(--hero-image, url("../assets/img/hero-library.jpg")) center / cover no-repeat;
  }
  .hero-inner { padding: 64px 0 68px; }
  .hero-lead { margin: 20px 0 30px; font-size: 1rem; }
  .hero .btn { width: 100%; }
  .hero-strip { display: none; }

  .quick { display: block; }

  .section { padding: 60px 0; }
  .services, .team, .insights { grid-template-columns: 1fr; }
  .services li { display: grid; grid-template-columns: 34px 1fr; column-gap: 18px; padding: 26px 20px; }
  .services li::before { left: 20px; width: 34px; }
  .services .icon { grid-row: span 2; width: 32px; height: 32px; margin: 2px 0 0; }
  .services h3 { font-size: 1.3rem; margin-bottom: 6px; }

  .split { gap: 44px; }
  .split-media { margin: 0 0 16px 16px; }
  .split-media::before { inset: 16px 16px -16px -16px; }
  .split-body .btn, .profile .btn, .contact-form .btn, .contact-info .btn { width: 100%; }

  .team { gap: 44px; }
  .portrait { aspect-ratio: 1 / 1; }
  .portrait svg { width: 52%; }

  .profile { padding: 56px 0; }
  .profile-frame { padding: 36px 24px; gap: 24px; }
  .profile-icon { width: 48px; height: 48px; }

  .contact-form { padding: 28px 20px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 40px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
