/* =========================================================
   RESET
   Basic normalization to prevent browser inconsistencies
========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

/* =========================================================
   VARIABLES
   Change these first if you want to adjust spacing or colors
========================================================= */
:root {
  --side-gap: 48px;
  --section-gap: 28px;

  --bg-page: #f3f1ee;
  --bg-header: #98001f;
  --bg-header-hover: #7b0019;
  --bg-hero-overlay: rgba(0, 0, 0, 0.8);
  --bg-soft: #ebe7e1;
  --bg-button: #d8d0c5;

  --text-main: #1a1a1a;
  --text-light: #ffffff;
  --border-color: #d7d7d7;

  --site-max-width: 1280px;
}

/* =========================================================
   BASE TYPOGRAPHY AND ELEMENTS
========================================================= */
html {
  font-size: 18px;
}

body {
  background: var(--bg-page);
  color: var(--text-main);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: #98001f;
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: #7b0019;
}

p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
}

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

li {
  font-size: 1rem;
  line-height: 1.65;
}

/* =========================================================
   GLOBAL WRAPPERS
   These sections use consistent horizontal padding
========================================================= */
.top-header,
.below-header,
.container,
.above-footer,
.footer {
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--side-gap);
  padding-right: var(--side-gap);
  border: 0;
}

.top-header hr,
.below-header hr,
.container hr,
.above-footer hr,
.footer hr {
  display: none;
}

/* =========================================================
   HEADER
   Desktop: logo left, nav right
========================================================= */
.top-header {
  position: relative;
  background: var(--bg-header);
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding-top: 0;
  padding-bottom: 0;
}

/* Left side branding */
.site-branding {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
}

.site-title {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: var(--text-light);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
}

.site-title:hover {
  color: var(--text-light);
}

.site-title i {
  font-size: 1.15rem;
  line-height: 1;
  color: var(--text-light);
  flex: 0 0 auto;
}

/* Right side navigation */
.top-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: transparent;
  padding: 0;
  margin: 0;
}

.top-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 44px;
  width: 100%;
  margin: 0;
  padding: 0;
}

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

.top-nav a {
  display: inline-block;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.top-nav a:hover {
  color: var(--text-light);
  opacity: 0.82;
  text-decoration: none;
}

/* Hamburger button hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text-light);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

/* =========================================================
   HERO / BELOW HEADER
========================================================= */
.below-header {
  background: var(--bg-page);
  color: var(--text-main);
  display: block;
  position: relative;
  overflow: hidden;
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0;
}

.below-header::before {
  display: none;
}

.below-header > * {
  position: relative;
  z-index: 1;
}

.below-header h1,
.below-header h2,
.below-header h3,
.below-header p {
  color: var(--text-light);
}

.below-header h1 {
  margin: 0;
  font-size: 3.6rem;
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: -0.6px;
}

.below-header h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 400;
}

.below-header-image {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 !important;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 1;
  background: #000;
}

.below-header-image img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: left center;
}

.below-header-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg-hero-overlay);
  z-index: 1;
  pointer-events: none;
}

.below-header-content {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 2;
  max-width: var(--site-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 48px;
  padding-right: 48px;
}

.below-header-content h1 {
  margin: 0 0 12px 0;
}

.below-header-content p {
  margin: 0;
}

/* =========================================================
   MAIN CONTENT
========================================================= */
.container {
  background: var(--bg-page);
  padding-top: 70px;
  padding-bottom: 80px;
}

main.container h1,
main.container h2,
main.container h3 {
  margin-top: 0;
  color: var(--text-main);
  font-weight: 600;
  letter-spacing: -0.2px;
}

main.container h1 {
  font-size: 2.4rem;
  line-height: 1.15;
}

main.container h2 {
  font-size: 2rem;
  line-height: 1.2;
}

main.container h3 {
  font-size: 1.4rem;
  line-height: 1.3;
}

main.container > * + * {
  margin-top: 24px;
}

main.container h1:not(:first-child),
main.container h2:not(:first-child),
main.container h3:not(:first-child) {
  margin-top: 42px;
}

/* =========================================================
   BUTTONS
========================================================= */
.container .button,
.container .btn,
.container button,
.container input[type="button"],
.container input[type="submit"] {
  display: inline-block;
  background: var(--bg-button);
  color: #1f1f1f;
  border: 0;
  padding: 14px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.container .button:hover,
.container .btn:hover,
.container button:hover,
.container input[type="button"]:hover,
.container input[type="submit"]:hover {
  background: #cfc6ba;
}

/* =========================================================
   GRID SECTIONS
========================================================= */
.two-col,
.three-col {
  display: grid;
  width: 100%;
  gap: 0;
  margin-top: 32px;
  margin-bottom: 32px;
  background: transparent;
}

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

.three-col {
  grid-template-columns: 1.1fr 1fr 1fr;
}

.two-col > *,
.three-col > * {
  min-width: 0;
  padding: 20px 32px 10px 32px;
  margin: 0;
  border: 0;
  border-right: 1px solid var(--border-color);
  background: transparent;
}

.two-col > *:last-child,
.three-col > *:last-child {
  border-right: 0;
}

.two-col > *:first-child,
.three-col > *:first-child {
  padding-left: 0;
}

.two-col.clean > *,
.three-col.clean > * {
  padding: 0;
  border: 0;
  background: transparent;
}

.two-col > * img,
.three-col > * img {
  display: block;
  width: 100%;
  height: auto;
}

.two-col > * h3,
.three-col > * h3,
.two-col > * h4,
.three-col > * h4 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.4;
  font-weight: 600;
}

.two-col > * p + p,
.three-col > * p + p {
  margin-top: 8px;
}

/* =========================================================
   ABOVE FOOTER
========================================================= */
.above-footer {
  background: var(--bg-soft);
  border-top: 1px solid #d8d0c5;
  border-bottom: 1px solid #d8d0c5;
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

/* =========================================================
   FOOTER
========================================================= */
.footer {
  background: var(--bg-header);
  color: rgba(255, 255, 255, 0.9);
  padding-top: 24px;
  padding-bottom: 24px;
}

.footer p,
.footer small,
.footer div {
  margin: 0;
  color: inherit;
}

.footer small {
  font-size: 0.92rem;
  line-height: 1.6;
}

/* =========================================================
   INNER TEXT WRAPPER
   Use inside content sections if needed
========================================================= */
.text-inner {
  width: 100%;
  max-width: var(--site-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 48px;
  padding-right: 48px;
}

/* =========================================================
   RESPONSIVE — LARGE TABLET / SMALL DESKTOP
========================================================= */
@media (max-width: 1200px) {
  :root {
    --side-gap: 28px;
  }

  .site-title {
    font-size: 1.15rem;
  }

  .top-nav ul {
    gap: 26px;
  }

  .below-header h1 {
    font-size: 3rem;
  }
}

/* =========================================================
   RESPONSIVE — TABLET
   Keep header in one line
========================================================= */
@media (max-width: 900px) {
  .top-header {
    flex-wrap: nowrap;
    align-items: center;
  }

  .site-branding {
    flex: 0 1 auto;
    min-width: 0;
  }

  .top-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-width: 0;
  }

  .site-title {
    font-size: 1.08rem;
    white-space: nowrap;
  }

  .top-nav ul {
    gap: 18px 28px;
  }
}

/* =========================================================
   RESPONSIVE — MOBILE
   Logo left, hamburger right, dropdown below
========================================================= */
@media (max-width: 768px) {
  :root {
    --side-gap: 20px;
    --section-gap: 20px;
  }

  html {
    font-size: 17px;
  }

  /* Header stays one line */
  .top-header {
    min-height: 72px;
    gap: 16px;
    align-items: center;
  }

  .site-branding {
    flex: 0 1 auto;
    min-width: 0;
  }

  .site-title {
    font-size: 1rem;
    white-space: nowrap;
  }

  /* Nav area stays on right */
  .top-nav {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: auto;
  }

  /* Show hamburger */
  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  /* Hide normal menu; turn into dropdown */
  .top-nav ul {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    min-width: 220px;
    width: max-content;
    max-width: calc(100vw - 40px);
    background: var(--bg-header);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    margin: 0;
    padding: 10px 16px;
    border-top: 0;
    z-index: 999;
  }

  /* Open state from your onclick toggle */
  .top-nav.open ul {
    display: flex;
  }

  .top-nav li {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

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

  .top-nav a {
    display: block;
    width: 100%;
  }

  /* Hero */
  .below-header {
    padding: 0 !important;
    margin: 0 !important;
  }

  .below-header-image {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    aspect-ratio: 16 / 9;
  }

  .below-header-content {
    left: 0;
    right: 0;
    max-width: none;
    padding-left: 20px;
    padding-right: 20px;
  }

  .below-header-content h1 {
    margin-top: 0;
    font-size: 1.9rem;
  }

  .below-header-content p {
    margin-top: 0;
    font-size: 1rem;
  }

  .below-header h1 {
    font-size: 2.3rem;
    line-height: 1.08;
  }

  /* Main headings */
  main.container h1 {
    font-size: 1.9rem;
  }

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

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

  /* Grids collapse to single column */
  .two-col,
  .three-col {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .two-col > *,
  .three-col > * {
    padding: 18px 0;
    border-right: 0;
    border-top: 1px solid var(--border-color);
  }

  .two-col > *:first-child,
  .three-col > *:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .text-inner {
    padding-left: 20px;
    padding-right: 20px;
  }
}