:root {
  --color-accent: #d85f00;
  --color-accent-dark: #b34d00;
  --color-text: #37404e;
  --color-muted: #5c6675;
  --color-bg: #f7f4ef;
  --color-surface: #ffffff;
  --color-line: #e2ddd4;
  --font-sans: "Source Sans 3", "Segoe UI", sans-serif;
  --font-display: "Source Serif 4", Georgia, serif;
  --max: 1100px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(216, 95, 0, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(55, 64, 78, 0.06), transparent 50%),
    linear-gradient(180deg, #faf8f4 0%, var(--color-bg) 40%, #f3efe8 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent-dark);
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--color-text);
}

.logo img {
  display: block;
  height: 48px;
  width: auto;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-accent);
}

.nav-toggle {
  margin-left: auto;
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  border-radius: 6px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

.site-nav {
  flex: 1 1 100%;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a {
  display: block;
  padding: 0.4rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  border-radius: 4px;
}

.nav-list > li > a:hover,
.nav-list > li:hover > a {
  color: var(--color-accent);
  background: rgba(216, 95, 0, 0.08);
  text-decoration: none;
}

.sub-nav {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 220px;
  margin: 0;
  padding: 0.4rem 0;
  list-style: none;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(55, 64, 78, 0.12);
  z-index: 50;
}

.has-sub:hover > .sub-nav,
.has-sub:focus-within > .sub-nav {
  display: block;
}

.sub-nav a {
  display: block;
  padding: 0.45rem 0.9rem;
  font-size: 0.88rem;
  color: var(--color-text);
  text-decoration: none;
}

.sub-nav a:hover {
  background: rgba(216, 95, 0, 0.08);
  color: var(--color-accent);
}

/* Main */
.site-main {
  flex: 1;
  width: 100%;
}

.hero {
  background:
    linear-gradient(135deg, rgba(216, 95, 0, 0.92), rgba(55, 64, 78, 0.88)),
    url("/assets/img/hero-tagline.jpg") center / cover no-repeat;
  color: #fff;
  padding: 3.5rem 1.25rem 3.75rem;
  animation: hero-in 0.7s ease-out;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.brand-mark {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 600;
  opacity: 0.95;
  max-width: 36em;
}

.hero-lead {
  margin: 0 0 1.5rem;
  max-width: 34em;
  font-size: 1.05rem;
  opacity: 0.92;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: #fff;
  color: var(--color-accent-dark);
}

.btn-primary:hover {
  background: #fff8f2;
  color: var(--color-accent-dark);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.page-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 0.5rem;
}

.page-header h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--color-text);
  border-bottom: 3px solid var(--color-accent);
  display: inline-block;
  padding-bottom: 0.35rem;
}

.romlicontainer,
.content-body {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem 2.5rem;
}

.home-content {
  animation: fade-up 0.55s ease-out 0.15s both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.content-body p {
  margin: 0 0 1rem;
}

.content-body h2,
.content-body h3 {
  font-family: var(--font-display);
  margin: 1.5rem 0 0.6rem;
  color: var(--color-text);
}

.content-body ul,
.content-body ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}

.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.92rem;
}

.content-body th,
.content-body td {
  border: 1px solid var(--color-line);
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.content-body th {
  background: rgba(216, 95, 0, 0.08);
}

.content-body img {
  display: block;
  margin: 0.75rem 0;
  border-radius: 4px;
}

/* Blog list helpers */
.blog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.blog-list article {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-line);
}

.blog-list h2 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}

.home-intro {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-line);
}

.home-news h2 {
  font-family: var(--font-display);
  margin: 0 0 1rem;
  color: var(--color-text);
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.news-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-line);
}

.news-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-family: var(--font-display);
}

.news-item p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: var(--color-text);
  color: #d8dde5;
  margin-top: auto;
  padding: 2rem 1.25rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand strong {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.15rem;
}

.footer-brand p {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-nav a {
  color: #f0c9a0;
  font-size: 0.92rem;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-copy {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  opacity: 0.75;
}

/* Mobile */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    flex: 1 1 100%;
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .sub-nav {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    padding-left: 0.75rem;
    background: transparent;
  }

  .has-sub:hover > .sub-nav,
  .site-nav.is-open .has-sub:focus-within > .sub-nav {
    display: block;
  }

  .has-sub > a::after {
    content: " ?";
    font-size: 0.75em;
  }
}
