:root {
  --bg: #0f1419;
  --bg-soft: #1a222c;
  --surface: #f4f6f8;
  --surface-alt: #e8eef4;
  --ink: #1a2430;
  --ink-muted: #4a5563;
  --brand: #366092;
  --brand-deep: #274872;
  --accent: #c4a35a;
  --line: #d5dde6;
  --white: #ffffff;
  --max: 1120px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(54, 96, 146, 0.12), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(196, 163, 90, 0.08), transparent 55%),
    linear-gradient(180deg, #f7f9fb 0%, #eef2f6 100%);
  line-height: 1.65;
  min-height: 100vh;
}

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

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--brand-deep);
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(15, 20, 25, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(196, 163, 90, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--white);
  flex-shrink: 0;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  padding: 0.55rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 0.28rem 0;
  background: var(--white);
}

.site-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem 0.35rem;
}

.nav-list > li > a,
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.65rem;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.nav-list > li > a:hover,
.dropdown-toggle:hover,
.nav-list > li.is-active > a {
  color: var(--accent);
}

.has-dropdown {
  position: relative;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background: var(--bg-soft);
  border: 1px solid rgba(196, 163, 90, 0.25);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.has-dropdown:hover > .dropdown,
.has-dropdown.is-open > .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  padding: 0.55rem 1rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.9rem;
}

.dropdown a:hover {
  background: rgba(54, 96, 146, 0.45);
  color: var(--white);
}

.site-main {
  padding-bottom: 3rem;
}

.page-header {
  background:
    linear-gradient(120deg, rgba(15, 20, 25, 0.88), rgba(39, 72, 114, 0.75)),
    url("/assets/img/hero-local.jpg") center/cover no-repeat;
  color: var(--white);
  padding: 3.5rem 0 3rem;
}

.page-header h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.content-body {
  padding-top: 2rem;
}

.content-body h2,
.content-body h3 {
  font-family: var(--font-display);
  color: var(--brand-deep);
  line-height: 1.25;
}

.content-body h2 {
  font-size: 1.9rem;
  margin: 2rem 0 0.75rem;
}

.content-body h3 {
  font-size: 1.45rem;
  margin: 1.5rem 0 0.5rem;
}

.content-body p {
  margin: 0 0 1rem;
  color: var(--ink);
}

.content-body ul,
.content-body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.content-figure {
  margin: 1.5rem 0;
}

.content-figure img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(15, 20, 25, 0.25) 10%, rgba(15, 20, 25, 0.82) 100%),
    url("/assets/img/hero-local.jpg") center/cover no-repeat;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 90px;
  background: linear-gradient(135deg, transparent 40%, var(--brand) 40.2%, var(--brand) 58%, transparent 58.2%);
  opacity: 0.85;
  pointer-events: none;
  animation: hero-sheen 8s ease-in-out infinite alternate;
}

@keyframes hero-sheen {
  from { transform: translateX(-8%); }
  to { transform: translateX(8%); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 4rem 0 5rem;
  max-width: 36rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  font-weight: 700;
  line-height: 0.95;
  margin: 0 0 0.75rem;
  letter-spacing: 0.01em;
}

.hero-lead {
  margin: 0 0 1.5rem;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.9);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.35rem;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 0;
  transition: transform 0.25s ease, background 0.25s ease;
}

.btn:hover {
  background: #d4b56a;
  color: var(--bg);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.55);
  margin-left: 0.6rem;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.home-panels {
  display: flex;
  flex-direction: column;
}

.home-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 42vh;
  padding: 3rem 0;
  color: var(--white);
  background-size: cover;
  background-position: center;
  position: relative;
}

.home-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 20, 25, 0.78), rgba(15, 20, 25, 0.35));
}

.home-panel .wrap {
  position: relative;
  z-index: 1;
}

.home-panel h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
}

.panel-mix {
  background-image:
    linear-gradient(90deg, rgba(15, 20, 25, 0.78), rgba(15, 20, 25, 0.35)),
    url("/assets/img/photo-local.jpg");
}

.panel-coffee {
  background-image:
    linear-gradient(90deg, rgba(39, 72, 114, 0.8), rgba(15, 20, 25, 0.4)),
    url("/assets/img/hero-local.jpg");
}

.panel-latte {
  background-image:
    linear-gradient(90deg, rgba(15, 20, 25, 0.82), rgba(54, 96, 146, 0.35)),
    url("/assets/img/photo-local.jpg");
}

.home-panel:nth-child(2) {
  animation: panel-rise 0.9s ease both;
}

.home-panel:nth-child(3) {
  animation: panel-rise 1.1s ease both;
}

@keyframes panel-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.site-footer {
  background: var(--bg);
  color: rgba(255, 255, 255, 0.86);
  padding: 2.5rem 0 2rem;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-logo {
  width: 96px;
  height: auto;
}

.footer-contact p,
.footer-social a {
  margin: 0 0 0.35rem;
  color: rgba(255, 255, 255, 0.86);
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links-block {
  margin-top: 1.5rem;
}

.blog-container {
  padding: 0.5rem 0 2rem;
}

.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-card {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.blog-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
}

.blog-title a {
  text-decoration: none;
  color: var(--brand-deep);
}

.blog-title a:hover {
  color: var(--brand);
}

.blog-preview p {
  margin: 0;
  color: var(--ink-muted);
}

.person-grid,
.link-grid,
.course-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.person-grid > *,
.link-grid > *,
.course-grid > * {
  flex: 1 1 240px;
}

.soft-block {
  background: var(--surface);
  padding: 1.25rem 1.35rem;
  border-left: 3px solid var(--brand);
  margin: 1rem 0;
}

.romlicontainer {
  width: min(100% - 2rem, 820px);
  margin: 1.5rem auto 3rem;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg-soft);
    padding: 0.75rem 1rem 1.25rem;
    border-bottom: 1px solid rgba(196, 163, 90, 0.25);
  }

  body.nav-open .site-nav {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border: 0;
    background: rgba(0, 0, 0, 0.2);
  }

  .has-dropdown.is-open > .dropdown {
    display: block;
  }

  .cta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-ghost {
    margin-left: 0;
  }
}
