/* =========================
   Variables
========================= */

:root {
  --primary-accent: #DF4A2A;
  --primary-accent-dark: #c63f22;
  --secondary-accent: #57A8A9;
  --highlight: #F3B02E;
  --background-fill: #F0D5B7;
  --background-fill-light: rgba(240, 213, 183, 0.25);

  --color-text: #111;
  --color-bg: #fff;
  --color-border: #ddd;
  --color-border-strong: #111;
  --color-border-light: #eee;
  --color-footer-bg: #f7f7f7;
  --color-muted: #555;
  --color-link: #0066ff;
  --color-link-hover: #0070f3;

  --color-btn-primary-bg: var(--primary-accent);
  --color-btn-primary-text: #fff;
  --color-btn-primary-bg-hover: var(--primary-accent-dark);
  --color-btn-primary-text-hover: #fff;

  --color-btn-secondary-bg: #fff;
  --color-btn-secondary-text: var(--color-text);
  --color-btn-secondary-bg-hover: #fff;
  --color-btn-secondary-text-hover: var(--primary-accent);
  
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-size-base: 16px;
  --font-size-h1: 2rem;
  --font-size-h2: 1.6rem;
  --font-size-h3: 1.1rem;
  --font-size-small: 0.85rem;
  
  --btn-border-radius: 8px;
  --border-radius: 8px;
  --border-radius-lg: 10px;
  --spacing-base: 1.5rem;

  --box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  --box-shadow-hover: 0 14px 30px rgba(0,0,0,0.08);

  --header-height: 80px;
}


/* =========================
   Reset / Base
========================= */

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

html {
  font-size: var(--font-size-base);
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  padding-top: var(--header-height);
  min-height: 100%;
}

h1, h2, h3 {
  margin-top: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  letter-spacing: -0.01em;
  margin-top: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary-accent);
  text-decoration: underline;
  font-weight: 500;
  letter-spacing: 0.25px;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary-accent);
  outline-offset: 2px;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

li {
  font-weight: 400;
  letter-spacing: 0.25px;
}

section li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-accent);
}

section li:hover {
  color: var(--primary-accent-dark);
}


/* =========================
   Header / Navigation
========================= */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border-light);
  z-index: 1000;
  transition: padding 0.25s ease, box-shadow 0.25s ease;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 10px 20px;
}

header .logo img {
  height: var(--header-height);
  width: auto;
  display: block;
  transition: height 0.25s ease;
}

header.scrolled {
  padding-top: 4px;
  padding-bottom: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

header.scrolled .logo img {
  height: 48px;
}

nav ul {
  display: flex;
  gap: 1rem;
}

nav a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.1s ease;
}

nav a.active,
nav a:hover {
  text-decoration: none;
  color: var(--primary-accent);
  border-bottom: 2px solid var(--primary-accent);
}

/* Mobile Navigation */
.nav-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.site-nav {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  right: 0;
  background: var(--color-bg);
  
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transition:
    max-height 0.25s ease,
    transform 0.2s ease;
}

.site-nav.is-open {
  max-height: 300px;
  pointer-events: auto;
  border-bottom: 1px solid var(--color-border-light);
}

.site-nav ul {
  flex-direction: column;
  padding: 1rem;
}

.site-nav li {
  margin-bottom: 1rem;
  text-align: center;
}

.site-nav a {
  cursor: pointer;
}

.site-nav a.active {
  font-weight: 700;
  border-bottom: 2px solid var(--primary-accent);
}

/* Tablet and up */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    max-height: none;
    overflow: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    border: none;
    background: transparent;
  }

  .site-nav ul {
    flex-direction: row;
    padding: 0;
  }

  .site-nav li {
    margin-bottom: 0;
  }
}


/* =========================
   Buttons
========================= */

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  font-size: var(--font-size-base);
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: var(--btn-border-radius);
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    transform 0.1s ease,
    box-shadow 0.1s ease;
}

.btn-primary {
  background: var(--color-btn-primary-bg);
  color: var(--color-btn-primary-text);
  border: none;
}

.btn-primary:hover {
  background: var(--color-btn-primary-bg-hover);
  color: var(--color-btn-primary-text-hover);
  box-shadow: var(--box-shadow-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--color-btn-secondary-bg);
  color: var(--color-btn-secondary-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-btn-secondary-bg-hover);
  color: var(--color-btn-secondary-text-hover);
  text-decoration: none;
  border-color: var(--primary-accent);
  box-shadow: var(--box-shadow-hover);
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: translateY(0);
}


/* =========================
   Layout Helpers
========================= */

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-base);
}

.split {
  display: flex;
  flex-direction: column-reverse;
  gap: 2rem;
}

.split-media {
  /* background: #eee; /* Placeholder background */
  /* border-radius: var(--border-radius-lg); */
  min-height: 240px;
}

/* Tablet and up */
@media (min-width: 900px) {
  .split {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }

  .split > div {
    flex: 1;
  }

  .split.reverse {
    flex-direction: row-reverse;
  }

  .split-media {
    min-height: 360px;
  }
}


section {
  padding: 3rem 0;
}

section.alt {
  background: var(--background-fill-light);
}

section > .container > h2 {
  margin-bottom: 2rem;
}

section p:last-child {
  margin-bottom: 0;
}

.hero,
.pricing,
.portfolio,
.final-cta {
  padding: 4rem 0;
}

.final-cta {
  background: var(--background-fill-light);
  text-align: center;
}

.final-cta h2 {
  margin-bottom: 1.5rem;
}

.hidden {
  display: none !important;
}


/* =========================
   Footer
========================= */

footer {
  border-top: 1px solid #eee;
  padding: 0;
  font-size: var(--font-size-small);
  background: #000;
  color: #fff;
}

footer .logo {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

footer .logo img {
  height: var(--header-height);
  width: auto;
  display: block;
}


footer nav ul {
  justify-content: center;
  margin-bottom: 1rem;
}

footer li a {
  color: #fff;
}

footer p {
  text-align: center;
  margin-bottom: 0;
  padding-bottom: 0;
}
