/* ================= GLOBAL SETTINGS ================= */

:root {

  /* ================= 1. BRANDING & COLORS (change these to match your vibe! - accent: buttons/links, text: color, bg: page, surface: boxes) ================= */

  --accent: #6a6a6a;
  --text: #1f1f1f;
  --bg: #f2f2f2;
  --outer-bg: #d6d6d6;
  --surface: #ffffff;

  /* ================= 2. TYPOGRAPHY (paste your google font stack here to change the whole site) ================= */

  --font-main: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* ================= 3. LAYOUT & GEOMETRY (container: max width, pad: side spacing, radius: corners, banner: header height, section-pad: vertical spacing) ================= */

  --container: 1260px;
  --pad: 20px;
  --radius: 14px;

  --banner-min-h: 220px;
  --banner-max-h: 420px;

  --section-pad: 15px;
  --content-top-gap: 32px;
  --content-bottom-gap: 40px;

  /* ================= 4. ADVANCED SETTINGS (controls shadows, borders, and secondary colors) ================= */

  --muted: #5f5f5f;
  --line: #d9d9d9;
  --nav-bg: #e6e6e6;
  --footer-bg: #dedede;

  --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  --page-shadow: 0 0 35px rgba(0, 0, 0, 0.1);
}

/* ================= BASE ================= */

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  margin: 0;
  overflow-y: scroll;
}

body {
  height: 100%;
  margin: 0;

  font-family: var(--font-main);
  background: var(--outer-bg);
  color: var(--text);
  line-height: 1.5;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 1300px;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: var(--page-shadow);
}

.site-main {
  flex: 1;
  padding-top: var(--content-top-gap);
}

.container {
  width: min(var(--container), calc(100% - (var(--pad) * 2)));
  margin: 0 auto;
}

/* ================= LINK STYLING ================= */

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0.22);
  text-underline-offset: 3px;

  /* ================= SMOOTH COLOR TRANSITION ================= */
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

a:hover {
  color: var(--accent);
  text-decoration-color: rgba(0, 0, 0, 0.35);
}

/* ================= ICON SPACING (FONT AWESOME) ================= */

.icon,
.btn i,
.nav-cta i,
.nav-toggle i {
  display: inline-block;
  margin-right: 8px;
}

.nav-dark i {
  margin-right: 0;
}

.nav-links a,
.brand,
.nav-cta {
  text-decoration-color: initial;
  transition: none;
}

.site-header {
  width: 100%;
}

/* ================= NAVIGATION ================= */

.header-bar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  color: var(--text);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 14px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text);
  font-weight: bold;
  padding: 8px 10px;
  border-radius: 10px;
}

.nav-links a.active {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text);
}

.nav-links a:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
}

.nav a,
.nav a:hover,
.nav a:focus,
.nav a:active {
  text-decoration: none;
  text-decoration-color: initial;
}


.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

.nav-dark:hover {
  background: #f7f7f7;
}

.nav-cta {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
}

.nav-cta:hover {
  background: #f7f7f7;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  align-items: center;
}

.nav-toggle:hover {
  background: #f7f7f7;
}

/* ================= DROPDOWNS ================= */

.nav-item-has-children {
  position: relative;
}

.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  margin: 6px 0 0 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  list-style: none;
  z-index: 100;
}

.nav-item-has-children:hover .sub-menu {
  display: block;
}

.sub-menu li {
  display: block;
}

.sub-menu a {
  display: block;
  white-space: nowrap;
  font-size: 14px;
}

/* ================= HEADER IMAGE ================= */

.header-image {
  width: 100%;
  background-image: url("header.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 520px;
  min-height: var(--banner-min-h);
  max-height: var(--banner-max-h);

  position: relative;
}

.header-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: flex-end;
}

.header-content {
  color: #fff;
  padding: 22px 0;
}

.header-kicker {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  opacity: 0.9;
}

.header-title {
  margin: 0 0 10px;
  font-size: 42px;
  line-height: 1.1;
}

.header-text {
  margin: 0;
  max-width: 600px;
  opacity: 0.92;
}

/* ================= CONTENT ================= */

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section+.section {
  margin-top: 30px;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: min(var(--container), calc(100% - (var(--pad) * 2)));
  border-top: 1px solid var(--line);
}

.section h1,
.section h2,
.section h3,
.section h4 {
  margin: 0 0 10px;
}

.section p {
  margin: 0 0 24px;
  color: var(--text);
}

/* ================= BLOCKQUOTE ================= */

blockquote {
  max-width: 760px;
  margin: 12px auto;
  padding: 16px 20px;

  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: 10px;

  color: var(--text);

  box-shadow: var(--shadow);
}

blockquote .icon {
  margin-right: 4px;
}

/* ================= OPTIONAL BUTTON COMPONENT (USES ACCENT) ================= */

.btn {
  display: inline-block;
  margin-top: 10px;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.btn:hover {
  filter: brightness(0.95);
}

.btn i {
  margin-right: 8px;
}

/* ================= BOXES ================= */

.box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 22px;
  box-shadow: var(--shadow);

  transition: transform 150ms ease, box-shadow 150ms ease;
}

/* Ensure consistent spacing for content inside boxes */
.box>*:first-child {
  margin-top: 0;
}

.box>*:last-child {
  margin-bottom: 0;
}

/* ================= BOXES GRID ================= */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 0;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* ================= FORMS ================= */

.form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: bold;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.10);
}

.form .btn {
  width: 100%;
  text-align: center;
}

/* ================= FOOTER ================= */

.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--line);
  padding: 16px 0;
  margin-top: var(--content-bottom-gap);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-left {
  display: grid;
  gap: 6px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
}

.footer-credit {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-credit a {
  color: var(--muted);
}

.footer-credit a:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ================= MOBILE ================= */

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .header-image {
    height: 320px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .js .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .js #sticky-nav.nav-open .nav-links {
    display: flex;
  }

  .nav-actions {
    margin-left: auto;
  }

  /* ================= SUB-MENU MOBILE ADJUSTMENTS ================= */

  .sub-menu {
    position: static;
    display: none;
    width: 100%;
    margin: 0;
    padding: 0 0 0 15px;
    /* Simple indentation for nested look */
    border: none;
    box-shadow: none;
  }

  .nav-item-has-children:hover .sub-menu {
    display: none;
  }

  .nav-item-has-children.is-open .sub-menu {
    display: block;
  }

  .sub-menu a {
    padding: 6px 10px;
  }
}

@media (max-width: 520px) {
  :root {
    --pad: 14px;
  }
}

/* ================= THEME TRANSITION UTILITY ================= */

.theme-transition,
.theme-transition *,
.theme-transition *:before,
.theme-transition *:after {
  transition: all 0.1s ease-out !important;
  transition-delay: 0 !important;
}