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

html,
body {
  margin: 0;
  padding: 0;
}

/* VARIABLES */
:root {
  --max-width: 1240px;
  --side-gap: 40px;
  --section-gap: 40px;
  --border-color: rgba(255, 255, 255, 0.12);
  --bg-main: #0b0f14;
  --bg-panel: #121821;
  --bg-panel-2: #18212d;
  --bg-soft: #0f141b;
  --text-main: #edf2f7;
  --text-soft: #a7b4c4;
  --text-faint: #7d8b9c;
  --accent: #c7a86d;
  --accent-strong: #f0c981;
  --line-strong: rgba(199, 168, 109, 0.4);
  --shadow-deep: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

/* BASE TYPOGRAPHY */
html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at top left, rgba(199, 168, 109, 0.10), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.04), transparent 20%),
    linear-gradient(180deg, #0a0d12 0%, #0d1218 100%);
  color: var(--text-main);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.78;
  letter-spacing: 0.01em;
}

/* MAIN PAGE WRAPPERS */
.top-header,
.top-nav,
.below-header,
.container,
.above-footer,
.footer {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--side-gap);
  padding-right: var(--side-gap);
  border: 0;
  position: relative;
}

/* REMOVE INTERNAL DUPLICATE LINES INSIDE PARTIALS */
.top-header hr,
.top-nav hr,
.below-header hr,
.container hr,
.above-footer hr,
.footer hr {
  display: none;
}

.top-header > *,
.top-nav > *,
.below-header > *,
.above-footer > *,
.footer > * {
  border-top: 0;
  border-bottom: 0;
}

/* VERTICAL SPACING */
.top-header,
.below-header,
.above-footer,
.footer {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

.container {
  padding-top: 70px;
  padding-bottom: 70px;
}

.top-nav {
  padding-top: 18px;
  padding-bottom: 18px;
}

/* SINGLE SECTION DIVIDERS */
.top-header {
  margin-top: 28px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    var(--bg-panel);
  box-shadow: var(--shadow-deep);
}

.top-nav {
  margin-top: 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  box-shadow: var(--shadow-deep);
}

.below-header {
  margin-top: 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  box-shadow: var(--shadow-deep);
  overflow: hidden;
}

.above-footer {
  margin-top: 30px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-panel) 0%, var(--bg-panel-2) 100%);
  box-shadow: var(--shadow-deep);
}

.footer {
  margin-top: 18px;
  margin-bottom: 28px;
  padding-top: 30px;
  padding-bottom: 30px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: #0f151d;
  box-shadow: var(--shadow-deep);
}

/* HEADER */
.top-header h1,
.top-header .site-title {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  line-height: 0.96;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--text-main);
  max-width: 12ch;
}

/* NAVIGATION */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.top-nav li {
  margin: 0;
  padding: 0;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  transition:
    transform 0.2s ease,
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.top-nav a:hover {
  text-decoration: none;
  color: #0b0f14;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(199, 168, 109, 0.28);
  transform: translateY(-2px);
}

/* TEXT */
p {
  font-size: 1.06rem;
  line-height: 1.9;
  margin: 0;
  color: var(--text-soft);
  max-width: 76ch;
}

ul,
ol {
  margin: 0;
  padding-left: 1.4rem;
}

li {
  font-size: 1.04rem;
  line-height: 1.85;
  color: var(--text-soft);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-main);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.03em;
}

main.container h1,
main.container h2,
main.container h3 {
  margin-top: 0;
  font-weight: 700;
  line-height: 1.06;
}

main.container h1 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  text-transform: uppercase;
  letter-spacing: -0.05em;
}

main.container h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

main.container h3 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

/* BASE FLOW */
main.container > * + * {
  margin-top: 28px;
}

/* EXTRA SPACE BEFORE HEADINGS */
main.container h1:not(:first-child),
main.container h2:not(:first-child),
main.container h3:not(:first-child) {
  margin-top: 64px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* MAIN CONTENT PANEL FEEL */
main.container {
  position: relative;
}

.container {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
    var(--bg-panel);
  box-shadow: var(--shadow-deep);
}

/* FOOTER */
.footer p,
.footer small,
.footer div {
  margin: 0;
  color: var(--text-soft);
}

.footer small {
  font-size: 0.92rem;
  line-height: 1.8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* LINKS */
a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(199, 168, 109, 0.35);
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

a:hover {
  color: var(--accent-strong);
  border-bottom: 1px solid var(--accent-strong);
}

/* HAMBURGER BUTTON */
.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-main);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-toggle:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b0f14;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  :root {
    --side-gap: 22px;
    --section-gap: 24px;
  }

  html {
    font-size: 16px;
  }

  .top-header,
  .top-nav,
  .below-header,
  .container,
  .above-footer,
  .footer {
    border-radius: 20px;
  }

  .top-header h1,
  .top-header .site-title {
    font-size: 2.35rem;
    max-width: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
  }

  .top-nav {
    display: block;
  }

  .top-nav ul {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-top: 10px;
    gap: 10px;
  }

  .top-nav.open ul {
    display: flex;
  }

  /* MENU ITEM STRUCTURE */
  .top-nav li {
    width: 100%;
    border-bottom: 0;
  }

  .top-nav li:last-child {
    border-bottom: none;
  }

  .top-nav a {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    padding: 14px 16px;
    font-size: 0.92rem;
    border-radius: 14px;
  }

  p,
  li {
    font-size: 1rem;
  }

  main.container h1 {
    font-size: 2rem;
  }

  main.container h2 {
    font-size: 1.55rem;
  }

  main.container h3 {
    font-size: 1.22rem;
  }

  .container {
    padding-top: 42px;
    padding-bottom: 42px;
  }
}

/* HEADER STRUCTURE */
.header h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  color: var(--text-main);
}

/* SLOGAN */
.site-slogan {
  margin-top: 12px;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  max-width: 70ch;
}

/* TWO-COLUMN AND THREE-COLUMN SUPPORT */
.two-col,
.three-col {
  display: grid;
  width: 100%;
  gap: 28px;
  margin-top: 32px;
  margin-bottom: 32px;
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* COLUMN ITEMS */
.two-col > *,
.three-col > * {
  min-width: 0;
  padding: 28px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    var(--bg-panel-2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

/* INTERNAL SPACING INSIDE COLUMN BOXES */
.two-col > * > *:first-child,
.three-col > * > *:first-child {
  margin-top: 0;
}

.two-col > * > *:last-child,
.three-col > * > *:last-child {
  margin-bottom: 0;
}

.two-col > * + *,
.three-col > * + * {
  margin-top: 0;
}

/* OPTIONAL COLUMN VARIANTS WITHOUT BOX BORDER */
.two-col.clean > *,
.three-col.clean > * {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* COLUMN WRAPPERS INSIDE MAIN SECTIONS */
.below-header .two-col,
.below-header .three-col,
.container .two-col,
.container .three-col,
.above-footer .two-col,
.above-footer .three-col {
  margin-top: 0;
  margin-bottom: 0;
}

/* RESPONSIVE STACKING */
@media (max-width: 900px) {
  .three-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .two-col,
  .three-col {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .two-col > *,
  .three-col > * {
    padding: 20px;
    border-radius: 16px;
  }
}