/* ============================================
   HyperPaste-inspired CSS
   Brand color: #26899E (teal/cyan)
   Style: Clean, professional, boutique studio
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.ubuntu-mono-regular {
  font-family: "Ubuntu Mono", monospace;
  font-weight: 400;
  font-style: normal;
}

.ubuntu-mono-bold {
  font-family: "Ubuntu Mono", monospace;
  font-weight: 700;
  font-style: normal;
}

.ubuntu-mono-regular-italic {
  font-family: "Ubuntu Mono", monospace;
  font-weight: 400;
  font-style: italic;
}

.ubuntu-mono-bold-italic {
  font-family: "Ubuntu Mono", monospace;
  font-weight: 700;
  font-style: italic;
}


:root {
  --color-brand:       #D5002D;
  --color-brand-dark:  #D5002D;
  --color-brand-light: #cb543f;
  --color-accent:      #f0a500;

  --color-bg:          #ffffff;
  --color-bg-alt:      #ffffff;
  --color-surface:     #e8f4f7;

  --color-text:        black;
  --color-text-muted:  #111111;
  --color-border:      #cce3e8;

  --font-display: 'Ubuntu Mono', sans-serif;
  --font-body:    'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  --radius-sm:   0px;
  --radius-md:   0px;
  --radius-lg:   0px;
  --radius-pill: 0px;

  /* --shadow-sm:  0 1px 3px rgba(38, 137, 158, 0.10);
  --shadow-md:  0 4px 16px rgba(38, 137, 158, 0.14);
  --shadow-lg:  0 10px 40px rgba(38, 137, 158, 0.18); */

  --max-width: 1250px;
  --gap:       clamp(1rem, 3vw, 2rem);

  --transition: 0.22s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-alt);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-brand);
  text-decoration: underline;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-brand-dark);
  text-decoration: underline;
}

header {
    background-color: var(--color-bg);
    border-bottom: 1px solid red;
}

/* Generated CSS Menu */
.gen-nav {
  display: flex;
  align-items: center;
  background: red;
  min-height: 52px;
  border-radius: 0px;
  box-shadow: none;
  padding: 0 16px;
  position: relative;
  flex-wrap: wrap;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  box-sizing: border-box;
  display: flex;
}
.gen-nav *, .gen-nav *::before, .gen-nav *::after {
  box-sizing: border-box;
}
.gen-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.gen-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-right: auto;
}
.gen-logo-text {
  color: #ff0000;
  font-size: 28px;
  font-weight: 600;
  white-space: nowrap;
}
.gen-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction:column; gap:0;
  
}
.gen-hamburger span {
  display: block;
  background: #000000;
  transition: all .3s;
  width:22px; height:2px; border-radius:2px; margin:3px 0;
}

.gen-nav > ul {
  display: flex; justify-content:flex-end; flex: 1;
  flex-wrap: wrap;
}
.gen-nav > ul > li {
  position: relative;
}
.gen-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 16px;
  height: 52px;
  color: #000000;
  font-size: 16px;
  font-weight: 500;
  text-transform: none;
  text-decoration: none;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.gen-nav > ul > li > a:hover,
.gen-nav > ul > li:hover > a {
  background: #ff0000;
  color: #ffffff;
}
.gen-arrow { font-size: .7em; opacity: .8; vertical-align: middle; }
/* Dropdown */
.gen-nav > ul > li > ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ff0000;
  min-width: 170px;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  z-index: 1000;
  overflow: hidden;
}
.gen-nav > ul > li:hover > ul {
  display: block;
}
.gen-nav > ul > li > ul > li > a {
  display: block;
  padding: 10px 18px;
  color: black;
  background: white;
  font-size: 15px;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.gen-nav > ul > li > ul > li > a:hover {
  background: #ff0000;
  color: #ffffff;
}
.gen-nav > ul > li > ul > li:last-child {
  border-radius: 0 0 6px 6px;
  overflow: hidden;
}
.gen-nav > ul > li > ul > li:last-child > a {
  border-radius: 0 0 6px 6px;
}
/* Responsive */
@media (max-width: 768px) {
  .gen-hamburger { display: flex; margin-left: 0; }
  .gen-nav {
    display: flex;
    flex-wrap: wrap;
  }
  .gen-logo { margin-right: auto; margin-left: 0; justify-self: unset; order: -1; }
  .gen-nav > ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: #ffffff;
    border-radius: 0 0 0px 0px;
    box-shadow: 0 12px 32px rgba(0,0,0,.2);
    z-index: 9999;
    padding: 8px 0;
    overflow: hidden;
  }
  .gen-nav > ul.open { display: flex; }
  /* Remove nav bottom radius when dropdown is open so they flow together */
  .gen-nav.mobile-open { border-radius: 0px 0px 0 0; }
  .gen-nav > ul > li > a { height: auto; padding: 14px 20px; }
  /* Reset desktop last-child rounding — not needed on mobile */
  .gen-nav > ul > li:last-child { border-radius: 0; overflow: visible; }
  .gen-nav > ul > li:last-child > a { border-radius: 0; }
  .gen-nav > ul > li > ul {
    display: block;
    position: static;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    background: rgba(0,0,0,.15);
    min-width: 0;
  }
  
  /* No rounding on submenu items in mobile */
  .gen-nav > ul > li > ul > li:last-child { border-radius: 0; overflow: visible; }
  .gen-nav > ul > li > ul > li:last-child > a { border-radius: 0; }
  .gen-nav > ul > li > ul > li > a { padding: 10px 32px; }
  /* Hamburger animates to X when open */
  
  .gen-nav.mobile-open .gen-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .gen-nav.mobile-open .gen-hamburger span:nth-child(2) { opacity: 0; }
  .gen-nav.mobile-open .gen-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-text);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1rem;
  /* max-width: 68ch; */
}

p:last-child { margin-bottom: 0; }

strong { font-weight: 600; color: var(--color-brand-dark); }

/* ---------- Layout Helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2.5rem);
}

article {
  max-width: 600px;
  margin: 0 auto;
}

article ul {
  margin: 0;
  padding-left: 1.5rem; /* bullets render relative to this padding */
}

.section {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section--brand {
  background-color: var(--color-brand);
  color: #fff;
}

.section--brand h1,
.section--brand h2,
.section--brand h3,
.section--brand p,
.section--brand a {
  color: #fff;
}

.grid {
  display: grid;
  gap: var(--gap);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.flex {
  display: flex;
  gap: var(--gap);
  align-items: center;
}

.flex--wrap    { flex-wrap: wrap; }
.flex--between { justify-content: space-between; }
.flex--center  { justify-content: center; }

.text-center { text-align: center; }
.text-muted  { color: var(--color-text-muted); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brand);
  display: block;
  margin-bottom: 0.5rem;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  /* background: rgba(255, 255, 255, 0.96); */
  background-color: var(--color-bg);
  backdrop-filter: blur(8px);
  padding-block: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2.5rem);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-brand);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav__logo:hover { color: var(--color-brand-dark); text-decoration: none; }

.nav__links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  color: var(--color-text);
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}

.nav__links a:hover,
.nav__links a.active {
  background: var(--color-surface);
  color: var(--color-brand);
  text-decoration: none;
}

.nav__cta {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  background: var(--color-brand);
  color: #fff !important;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}

.nav__cta:hover {
  background: var(--color-brand-dark);
  transform: translateY(-1px);
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(4rem, 1vw, 4rem);
  background-image: linear-gradient(to left, transparent, grey), url("images/resized_train.webp");
  background-repeat: repeat;
  background-position: right;
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 1rem;
  display: block;
  background-color: white;
}

.hero__title {
  font-size: 5rem;
  color: white;
  text-shadow: 5px 5px 5px black;
  margin-bottom: 1.25rem;
  max-width: 14ch;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: white;
  text-shadow: 5px 5px 5px black;
  max-width: 52ch;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-brand);
  color: #fff;
  border-color: var(--color-brand);
  box-shadow: 
        1px 1px 6px white, 
        -1px -1px 6px white, 
        1px -1px 6px white, 
        -1px 1px 6px white;
}

.btn--primary:hover {
  background: var(--color-brand-dark);
  border-color: var(--color-brand-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: #fff;
  text-decoration: none;
}

.btn--outline {
  background: var(--color-brand);
  color: var(--color-brand);
  border-color: var(--color-brand);
}

.btn--outline:hover {
  background: var(--color-brand);
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}

.btn--ghost {
  background: white;
  color: var(--color-text-muted);
  border-color: var(--color-border);
}

.btn--ghost:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
  text-decoration: none;
}

.btn--lg { padding: 0.9rem 2rem; font-size: 1rem; }
.btn--sm { padding: 0.4rem 1rem; font-size: 0.8rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--color-brand);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--color-brand);
  font-size: 1.4rem;
}

.card__title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card__body {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Blog / Portfolio card variant */
.card--media {
  padding: 0;
  overflow: hidden;
}

.card--media .card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--color-border);
}

.card--media .card__content {
  padding: 1.25rem;
}

.card--media .card__tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 0.4rem;
  display: block;
}

/* ---------- Process / Steps ---------- */
.steps {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  counter-reset: step-counter;
}

.step {
  counter-increment: step-counter;
  position: relative;
  padding-top: 1rem;
}

.step::before {
  content: counter(step-counter, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-brand);
  opacity: 0.2;
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}

.step__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.step__body {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ---------- Testimonial / Bio ---------- */
.bio {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  align-items: center;
}

.bio__image {
  border-radius: var(--radius-lg);
  aspect-ratio: 1;
  object-fit: cover;
  border: 3px solid var(--color-brand);
  box-shadow: var(--shadow-md);
}

.bio__name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
}

.bio__role {
  font-size: 0.85rem;
  color: var(--color-brand);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

/* ---------- Highlight / Badge ---------- */
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-brand);
  border: 1px solid var(--color-brand-light);
}

.badge--accent {
  background: #fff5d9;
  color: #966200;
  border-color: #f0c96a;
}

/* ---------- Section Divider ---------- */
.divider {
  width: 3rem;
  height: 3px;
  background: var(--color-brand);
  border-radius: var(--radius-pill);
  margin: 1.25rem auto;
}

.divider--left { margin-left: 0; }

/* ---------- Contact CTA Banner ---------- */
.cta-banner {
  background: var(--color-brand);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}

.cta-banner h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-banner p  { color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; }

.cta-banner .btn--primary {
  background: #fff;
  color: var(--color-brand);
  border-color: #fff;
}

.cta-banner .btn--primary:hover {
  background: var(--color-brand-light);
  border-color: var(--color-brand-light);
  color: var(--color-brand-dark);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.75);
  padding-block: clamp(2.5rem, 6vw, 4rem);
  font-size: 0.875rem;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

.footer__tagline { margin-bottom: 1.5rem; }

.footer__nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.footer__nav a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color var(--transition);
}

.footer__nav a:hover { color: #fff; text-decoration: none; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

/* ---------- Forms ---------- */
.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.form__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

.form__input,
.form__textarea,
.form__select {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(38, 137, 158, 0.15);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.gap-sm { gap: 0.75rem; }
.gap-md { gap: 1.5rem; }
.gap-lg { gap: 2.5rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .bio { grid-template-columns: 1fr; }
  .bio__image { max-width: 160px; }
}

@media (max-width: 640px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }

  .nav__links { display: none; }

  .hero__title { font-size: clamp(1.9rem, 8vw, 2.4rem); }
}
