/* Kettle Hill Capital Management - static site styles.
   Colors and fonts carried over from the 2018 WordPress theme. */

@font-face { font-family: "Crimson Text"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/crimson-text-400.woff2") format("woff2"); }
@font-face { font-family: "Crimson Text"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/crimson-text-600.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 300 700; font-style: normal; font-display: swap; src: url("fonts/open-sans-var.woff2") format("woff2"); }

:root {
  --navy: #00234f;
  --navy-deep: #021935;
  --blue-dark: #193e6c;
  --blue: #245391;
  --blue-bright: #27a0db;
  --text: #2b3740;
  --muted: #66696b;
  --line: #e3e3e3;
  --bg-soft: #f6f8fb;
  --white: #ffffff;
  --serif: "Crimson Text", Georgia, "Times New Roman", serif;
  --sans: "Open Sans", "Segoe UI", Arial, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.7; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1.1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 12px; }

/* Notice banner (optional, see content/site.json) */
.notice { background: var(--navy-deep); color: var(--white); font-size: .92rem; text-align: center; padding: 10px 24px; }
.notice strong { font-weight: 600; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 92px; flex-wrap: wrap; }
.brand img { width: 210px; }
.nav { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--text); text-decoration: none; font-size: 1rem; letter-spacing: .02em; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--blue-bright); }

/* Hero */
.hero { position: relative; color: var(--white); text-align: center; background-color: var(--blue); background-image: linear-gradient(to right, rgba(36, 83, 145, .92), rgba(39, 160, 219, .82)), url("img/hero-home.jpg"); background-size: cover; background-position: center; }
.hero .wrap { padding-top: 120px; padding-bottom: 130px; max-width: 860px; }
.hero h1 { color: var(--white); }
.hero p { font-size: 1.25rem; opacity: .95; margin-bottom: 2em; }
.hero.small .wrap { padding-top: 80px; padding-bottom: 80px; }
.hero.philosophy { background-image: linear-gradient(to right, rgba(36, 83, 145, .9), rgba(39, 160, 219, .75)), url("img/hero-philosophy.jpg"); }
.btn { display: inline-block; background: var(--white); color: var(--navy); text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; font-weight: 600; padding: 13px 28px; border: 2px solid var(--white); }
.btn:hover { background: transparent; color: var(--white); }
.btn.dark { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn.dark:hover { background: var(--white); color: var(--navy); }

/* Sections */
.section { padding: 80px 0; }
.section.soft { background: var(--bg-soft); }
.lead { font-size: 1.2rem; max-width: 860px; margin: 0 auto; text-align: center; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cards { display: grid; gap: 32px; }
.card { background: var(--white); padding: 36px; border-top: 4px solid var(--blue-bright); box-shadow: 0 2px 18px rgba(0, 35, 79, .08); }
.card a.more { font-weight: 600; text-decoration: none; letter-spacing: .04em; }
.photo { box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }

/* Philosophy blocks */
.blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.block { display: flex; gap: 20px; align-items: flex-start; padding: 28px; color: var(--white); }
.block.ltblue { background: var(--blue-bright); }
.block.dkblue { background: var(--blue-dark); }
.block h3 { color: var(--white); margin-bottom: .3em; }
.block p { margin: 0; }
.block .icon { flex: 0 0 56px; height: 56px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .12); display: flex; align-items: center; justify-content: center; }
.block .icon img { width: 28px; height: 28px; }

/* Team */
.mission { text-align: center; max-width: 900px; margin: 0 auto; }
.mission .statement { font-family: var(--serif); font-size: 1.6rem; color: var(--navy); line-height: 1.35; }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 48px 40px; margin-top: 48px; }
.member img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; filter: grayscale(15%); }
.member h3 { margin: 16px 0 2px; font-size: 1.35rem; }
.member .role { color: var(--muted); font-size: .95rem; margin-bottom: 8px; }
.member details summary { cursor: pointer; color: var(--blue); font-weight: 600; font-size: .92rem; letter-spacing: .03em; list-style: none; }
.member details summary::-webkit-details-marker { display: none; }
.member details summary::after { content: " +"; }
.member details[open] summary::after { content: " \2013"; }
.member details p { font-size: .95rem; margin-top: 10px; }

/* Legal text */
.legal { max-width: 860px; }
.legal h2 { margin-top: 1.4em; }
.legal h3 { margin-top: 1.3em; font-size: 1.2rem; }
.legal p { font-size: .97rem; }

/* Contact + footer */
.contact { text-align: center; background: var(--bg-soft); }
.contact .lines { font-size: 1.1rem; }
.contact .lines a { text-decoration: none; font-weight: 600; }
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .8); font-size: .92rem; padding: 48px 0 32px; }
.site-footer .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: start; }
.site-footer img { width: 84px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .copy { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 20px; margin: 8px 0 0; font-size: .85rem; }

/* Terms-of-use gate (shown by site.js until the visitor agrees) */
.gate { position: fixed; inset: 0; z-index: 50; background: rgba(2, 25, 53, .82); display: none; align-items: center; justify-content: center; padding: 16px; }
.gate.open { display: flex; }
.gate .panel { background: var(--white); max-width: 820px; width: 100%; max-height: 92vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.gate .head { padding: 22px 28px; border-bottom: 1px solid var(--line); }
.gate .head img { width: 180px; }
.gate .body { padding: 8px 28px; overflow-y: auto; font-size: .9rem; }
.gate .body h3 { font-family: var(--sans); font-size: .95rem; font-weight: 700; letter-spacing: .04em; margin: 1.4em 0 .5em; color: var(--navy); }
.gate .foot { padding: 18px 28px; border-top: 1px solid var(--line); display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.gate .foot button { font: inherit; font-size: .85rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 12px 26px; cursor: pointer; border: 2px solid var(--navy); }
.gate .agree { background: var(--navy); color: var(--white); }
.gate .disagree { background: var(--white); color: var(--navy); }
.gate .error { color: #b00020; font-weight: 600; display: none; }
.gate .error.show { display: block; }
body.gated { overflow: hidden; }

@media (max-width: 820px) {
  body { font-size: 16px; }
  .site-header .wrap { justify-content: center; padding-top: 14px; padding-bottom: 14px; }
  .nav { gap: 24px; }
  .two-up, .blocks { grid-template-columns: 1fr; gap: 32px; }
  .hero .wrap { padding-top: 80px; padding-bottom: 90px; }
  .section { padding: 56px 0; }
  .site-footer .wrap { grid-template-columns: 1fr; gap: 24px; }
  .wrap { padding: 0 16px; }
}
