:root {
  --ink: #20282a;
  --muted: #617073;
  --paper: #f7f4ee;
  --surface: #ffffff;
  --forest: #164c4d;
  --forest-dark: #0d3537;
  --rust: #b84e32;
  --rust-dark: #903821;
  --sand: #e9decf;
  --line: #dcd7ce;
  --shadow: 0 18px 50px rgba(18, 48, 49, .12);
  --radius: 1.25rem;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--forest); text-decoration-thickness: .08em; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #e7956e; outline-offset: 3px; }
.wrap { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; left: 1rem; top: -5rem; padding: .75rem 1rem; border-radius: .5rem; color: var(--forest-dark); background: #fff; }
.skip-link:focus { top: 1rem; }

h1, h2, h3, h4 { margin: 0 0 .8em; font-family: Georgia, "Times New Roman", serif; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); letter-spacing: -.025em; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1rem; }

.site-header { position: sticky; top: 0; z-index: 50; color: #fff; background: rgba(13, 53, 55, .97); border-bottom: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(16px); }
.nav-shell { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; color: #fff; text-decoration: none; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: var(--rust); font: 700 1.15rem/1 Georgia, serif; }
.brand-logo { width: auto; max-width: 160px; height: 46px; object-fit: contain; }
.brand-name { display: block; font: 700 1.38rem/1 Georgia, serif; }
.brand-sub { display: block; margin-top: .25rem; color: #cbd9d7; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.main-nav .mod-menu { display: flex; align-items: center; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.main-nav a { display: block; color: #eaf0ef; font-size: .95rem; text-decoration: none; }
.main-nav a:hover, .main-nav .current > a, .main-nav .active > a { color: #fff; text-decoration: underline; text-decoration-color: #e7956e; text-decoration-thickness: 2px; text-underline-offset: .45rem; }
.main-nav .mod-menu > li:last-child > a { padding: .68rem 1rem; border: 1px solid #d77a58; border-radius: 999px; background: var(--rust); color: #fff; font-weight: 750; text-decoration: none; }
.main-nav .mod-menu > li:last-child > a:hover { background: var(--rust-dark); }
.main-nav .deeper { position: relative; }
.main-nav .deeper > ul { position: absolute; display: none; min-width: 220px; margin: 0; padding: .7rem; border-radius: .75rem; background: var(--forest-dark); box-shadow: var(--shadow); list-style: none; }
.main-nav .deeper:hover > ul, .main-nav .deeper:focus-within > ul { display: grid; gap: .3rem; }
.main-nav .deeper > ul a { padding: .45rem .6rem; }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 10px; border: 1px solid rgba(255,255,255,.35); border-radius: .7rem; color: #fff; background: transparent; }
.menu-toggle span { display: block; width: 100%; height: 2px; margin: 5px 0; background: currentColor; }

.hero { position: relative; min-height: 650px; display: grid; align-items: center; isolation: isolate; overflow: hidden; color: #fff; background: var(--forest-dark); }
.hero-media { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(7,34,35,.96) 0%, rgba(7,34,35,.82) 37%, rgba(7,34,35,.22) 70%, rgba(7,34,35,.08) 100%); }
.hero-inner { width: 100%; }
.hero-copy { max-width: 650px; padding-block: 7rem; }
.hero h1 { max-width: 13ch; margin-bottom: 0; font-size: clamp(2.7rem, 6vw, 5.2rem); }
.eyebrow { margin: 0 0 .8rem; color: var(--rust); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero .eyebrow { color: #f2a481; }
.hero-lead { max-width: 58ch; margin: 1.5rem 0 0; color: #e3ecea; font-size: clamp(1.05rem, 2vw, 1.22rem); }

.button, .btn, button.btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: .55rem; margin-top: 1rem; padding: .78rem 1.2rem; border: 1px solid transparent; border-radius: 999px; background: var(--rust); color: #fff; font-weight: 750; text-decoration: none; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.button:hover, .btn:hover { transform: translateY(-2px); background: var(--rust-dark); color: #fff; }
.btn-secondary { background: var(--forest); }

.top-modules { background: var(--surface); }
.top-modules > * { margin: 0; }
.main-content { min-height: 50vh; padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.is-home .main-content { padding-top: clamp(4rem, 7vw, 6rem); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.content-grid.has-sidebar { grid-template-columns: minmax(0, 1fr) minmax(250px, 340px); }
.sidebar { display: grid; align-content: start; gap: 1rem; }
.sidebar .card, .sidebar .moduletable { padding: 1.5rem; border: 1px solid var(--line); border-radius: 1rem; background: #fff; }
.above-component { margin-bottom: 2rem; }
.below-component { margin-top: 3rem; }

.com-content-article, .blog, .contact, .com-contact { max-width: 900px; }
.page-header { margin-bottom: 2rem; }
.article-info { color: var(--muted); font-size: .9rem; }
.item-image { margin-bottom: 2rem; overflow: hidden; border-radius: var(--radius); }
.category-desc, .com-content-category-blog__items { margin-top: 2rem; }
.blog-item { padding: 1.6rem; border: 1px solid var(--line); border-radius: 1rem; background: #fff; }

.pc-section { margin-block: clamp(3rem, 6vw, 5.5rem); }
.pc-section:first-child { margin-top: 0; }
.pc-section-head { display: grid; grid-template-columns: .8fr 1.2fr; align-items: end; gap: 3rem; margin-bottom: 2.5rem; }
.pc-section-head p { color: var(--muted); }
.pc-grid-2, .pc-grid-3 { display: grid; gap: 1.25rem; }
.pc-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pc-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pc-card { padding: 1.8rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 12px 32px rgba(18,48,49,.08); }
.pc-card p { color: var(--muted); }
.pc-card ul { margin: 1rem 0 0; padding-left: 1.2rem; }
.pc-card li { margin: .45rem 0; }
.pc-quote { padding: clamp(2rem, 4vw, 3.5rem); border-radius: var(--radius); color: #fff; background: var(--forest); font: 700 clamp(1.5rem, 3vw, 2.4rem)/1.3 Georgia, serif; }
.pc-notice { padding: 1.2rem 1.4rem; border-left: 5px solid var(--rust); border-radius: 0 .8rem .8rem 0; background: #f3e7df; }
.pc-cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 3rem; padding: clamp(2rem, 4vw, 3.5rem); border-radius: var(--radius); color: #fff; background: var(--rust); }
.pc-cta h2 { margin-bottom: .25rem; font-size: clamp(1.8rem, 4vw, 2.7rem); }
.pc-cta p { margin: 0; color: #ffe8df; }
.pc-cta .button { flex: 0 0 auto; margin: 0; color: var(--forest-dark); background: #fff; }

fieldset { min-width: 0; padding: 0; border: 0; }
legend { margin-bottom: 1rem; font: 700 1.6rem Georgia, serif; }
.control-group { margin-bottom: 1rem; }
.control-label { margin-bottom: .35rem; font-weight: 700; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], select, textarea { width: 100%; min-height: 48px; padding: .75rem .85rem; border: 1px solid #b9c3c1; border-radius: .6rem; color: var(--ink); background: #fff; }
textarea { min-height: 145px; resize: vertical; }
.form-check-input { accent-color: var(--forest); }
.alert { margin-bottom: 1.5rem; padding: 1rem 1.2rem; border-radius: .7rem; background: #e8f1ef; }
.alert-error, .alert-danger { background: #f8e6e1; }

.pagination { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; list-style: none; }
.page-link { display: grid; min-width: 42px; min-height: 42px; place-items: center; padding: .4rem; border: 1px solid var(--line); border-radius: .5rem; background: #fff; text-decoration: none; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; color: var(--muted); list-style: none; }

.site-footer { padding-block: 3.8rem 2rem; color: #d5e1df; background: #092b2d; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 3rem; }
.footer-grid h2 { color: #fff; font-size: 1.5rem; }
.footer-grid h3 { color: #fff; font-family: inherit; font-size: 1rem; line-height: 1.2; }
.footer-grid p { max-width: 42ch; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li { margin: .45rem 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.14); color: #9fb8b4; font-size: .82rem; }

.error-page { min-height: 100vh; display: grid; place-items: center; padding: 2rem; color: #fff; text-align: center; background: var(--forest-dark); }
.error-page > div { max-width: 700px; }
.error-page p:not(.eyebrow) { color: #cfe0de; }
.content-only { background: #fff; }

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

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .main-nav { position: fixed; inset: 78px 0 auto; display: none; padding: 1rem; background: var(--forest-dark); box-shadow: 0 16px 30px rgba(0,0,0,.22); }
  .main-nav.open { display: block; }
  .main-nav .mod-menu { display: grid; gap: .25rem; }
  .main-nav a { padding: .65rem .5rem; }
  .main-nav .deeper > ul { position: static; display: grid; box-shadow: none; }
  .content-grid.has-sidebar, .pc-section-head { grid-template-columns: 1fr; }
  .pc-grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .brand-sub { display: none; }
  .hero { min-height: 620px; }
  .hero-media { object-position: 64% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(7,34,35,.96) 0%, rgba(7,34,35,.82) 62%, rgba(7,34,35,.42) 100%); }
  .hero-copy { padding-block: 5rem; }
  .pc-grid-2, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .pc-cta, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .pc-cta .button, .button, .btn { width: 100%; }
}
