:root {
  --bg-base: #f4f4f5; /* Slightly cooler light gray so the white cards pop */
  --surface-solid: #ffffff;
  --text-main: #0a0a0a;
  --text-muted: #555555;
  --accent: #c91f1f; /* Tuned Sangar Red */
  --accent-dark: #8f1717;
  --accent-soft: rgba(201, 31, 31, 0.1);
  --shadow-neutral: rgba(10, 10, 10, 0.12);
  --border-light: #e0e0e0;
  --border-dark: #0a0a0a;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

/* Sharp, Minimalist Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); border-left: 1px solid var(--border-light); }
::-webkit-scrollbar-thumb { background: var(--border-dark); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

body {
  margin: 0;
  font-family: "Sora", "Avenir Next", sans-serif;
  color: var(--text-main);
  background-color: var(--bg-base);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
}

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border-dark);
  color: var(--text-main);
  background: var(--surface-solid);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
}

/* --- THE SHARP EDITORIAL HEADER --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-solid);
  border-bottom: 2px solid var(--border-dark); /* Bolder line to ground the header */
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand, .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
}

.brand-logo {
  width: 13rem;
  height: auto;
  object-fit: contain;
}

.brand-text strong,
.footer-brand strong { display: none; }

.brand-text small,
.footer-brand small {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-left: 2px solid var(--accent); /* Injected Red */
  padding-left: 1rem;
  height: 2.2rem;
}

.form-intro .brand-logo {
  width: 15rem;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1); /* Makes logo white on red bg */
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Razor-sharp nav links */
.site-nav a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 0.25rem;
}

.site-nav a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px; /* Thicker, bolder red underline */
  bottom: -2px;
  left: 0;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent); /* Turns red on hover */
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* --- THE "S" MENU BUTTON --- */
.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: transparent;
  padding: 0;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  display: block;
  height: 2px;
  background: var(--text-main);
  transition:
    transform 0.3s ease,
    width 0.3s ease,
    background-color 0.3s ease,
    opacity 0.3s ease;
}

.nav-toggle::before { width: 1.2rem; transform: translate(-4px, -6px); }
.nav-toggle span { width: 1.8rem; transform: translate(0, 0); }
.nav-toggle::after { width: 1.2rem; transform: translate(4px, 6px); }

.nav-toggle:hover::before { transform: translate(0, -6px); width: 1.8rem; background: var(--accent); }
.nav-toggle:hover span { background: var(--accent); }
.nav-toggle:hover::after { transform: translate(0, 6px); width: 1.8rem; background: var(--accent); }

body.nav-open .nav-toggle span { opacity: 0; transform: scale(0); }
body.nav-open .nav-toggle::before { width: 1.8rem; transform: translate(0, 0) rotate(45deg); background: var(--accent); }
body.nav-open .nav-toggle::after { width: 1.8rem; transform: translate(0, 0) rotate(-45deg); background: var(--accent); }

/* --- COLOR-BLOCKED BUTTONS --- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0 2rem;
  border: 1px solid var(--border-dark);
  background: var(--surface-solid);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
  cursor: pointer;
}

.button::after {
  content: "→";
  margin-left: 0.8rem;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.button:hover {
  background: var(--text-main);
  color: #ffffff;
  box-shadow: 5px 5px 0 var(--shadow-neutral);
  transform: translate(-2px, -2px);
}

.button:hover::after { transform: translateX(4px); }

.button.secondary {
  background: var(--surface-solid);
  color: var(--text-main);
}

.button.secondary:hover {
  background: var(--text-main);
  color: #ffffff;
}

.button.accent {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--border-dark);
}

.button.accent:hover {
  background: var(--surface-solid);
  color: var(--accent);
  border-color: var(--border-dark);
  box-shadow: 5px 5px 0 var(--shadow-neutral);
}

.page-hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border-light);
  background: var(--surface-solid);
}

.page-hero.compact { padding: 3.5rem 0 3rem; }

.home-hero {
  min-height: 38vh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #eef6f7 0%, var(--surface-solid) 82%);
}

.hero-grid, .split-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: stretch;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
}

/* --- ABSOLUTE FLAT CARDS (Solid Red Shadows!) --- */
.hero-copy, .panel, .visual-card, .stat-band, .sector-card, .category-card {
  position: relative;
  background: var(--surface-solid);
  border: 1px solid var(--border-dark); /* Darker borders for contrast */
  transition:
    border-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.form-intro {
  position: relative;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #ffffff;
  border: 1px solid var(--border-dark);
  padding: 2rem;
}

.sector-card:hover, .category-card:hover, .photo-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 6px 6px 0 var(--shadow-neutral);
}

.panel { padding: 3rem; }
.hero-copy { padding: 3.5rem; border-color: var(--border-light); }
.visual-card, .stat-band { padding: 1.5rem; overflow: hidden; }

.home-hero .hero-copy {
  position: relative;
  background: transparent;
  border: none;
  padding: 2.8rem 0 2.8rem 1.5rem;
}

.home-hero .hero-copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2.2rem;
  bottom: 2.2rem;
  width: 3px;
  background: linear-gradient(180deg, #0f6d77 0%, var(--accent) 100%);
}

.home-hero .hero-copy::after {
  content: "";
  position: absolute;
  left: -4rem;
  top: 0;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, rgba(15, 109, 119, 0.12) 0%, rgba(15, 109, 119, 0) 72%);
  z-index: -1;
}

.hero-side .visual-card {
  padding: 1rem;
}

/* Sharp Typography */
h1, h2, h3, h4, .page-title {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--text-main);
}

.hero-copy h1 { max-width: 12ch; margin-top: 1rem; font-size: clamp(3.2rem, 6vw, 6rem); }
.home-hero .hero-copy h1 {
  max-width: 9.5ch;
  margin-top: 0.65rem;
  font-size: clamp(3.4rem, 6vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, #0f6d77 0%, #16343a 34%, #0a0a0a 78%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 18px 36px rgba(10, 10, 10, 0.08);
}
.page-title { font-size: clamp(2.7rem, 5vw, 4.8rem); }
.section-heading h2 { font-size: clamp(2rem, 4vw, 3.5rem); }

.hero-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy p, .section-heading p, .lead, .panel p, .category-card p, .sector-card p {
  color: var(--text-muted);
  line-height: 1.8;
}

.lead { font-size: 1.2rem; font-weight: 400; color: var(--text-main); }
.form-intro p, .form-intro .contact-link { color: #ffffff; }

.hero-actions, .stack-actions {
  display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem;
}

.home-hero .hero-actions {
  margin-top: 2rem;
}

.home-hero .button.accent {
  box-shadow: 0 16px 34px rgba(201, 31, 31, 0.18);
}

.hero-side { display: grid; gap: 1.5rem; }

.hero-collage-card {
  display: grid;
  align-items: center;
}

.hero-collage-frame {
  position: relative;
  width: 100%;
}

.hero-collage-image {
  display: block;
  width: min(112%, 58rem);
  margin-left: auto;
  height: auto;
}

.hero-media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(235px, 0.95fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  min-height: 31rem;
}

.photo-card {
  position: relative;
  overflow: hidden;
  background: var(--surface-solid);
  border: 1px solid var(--border-dark);
  transition:
    border-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.photo-card.tall { grid-row: 1 / span 2; }

/* Image Framing */
.category-media, .inline-media, .contact-photo {
  position: relative;
  overflow: hidden;
  background: var(--surface-solid);
  border-bottom: 1px solid var(--border-dark);
}

.category-media img, .inline-media img, .contact-photo img, .photo-card img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-card:hover .category-media img,
.sector-card:hover .category-media img,
.photo-card:hover img {
  transform: scale(1.05);
}

/* Solid RED block overlays for image text */
.photo-label, .media-label {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  background: var(--accent-dark);
  color: #ffffff;
  padding: 0.8rem 1.2rem;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  border-top: 1px solid var(--border-dark);
  border-right: 1px solid var(--border-dark);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.hero-media-grid .photo-label {
  padding: 0.7rem 1rem;
  font-size: 0.78rem;
}

.photo-card:hover .photo-label {
  background: var(--text-main); /* Flips to black on hover */
}

.card-grid, .sector-grid, .products-grid {
  display: grid; gap: 2.5rem; grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section {
  padding: 4rem 0 5rem;
  border-bottom: 1px solid var(--border-light);
}

.section:last-child { border-bottom: none; }

.section-heading {
  display: flex; justify-content: space-between; align-items: end;
  gap: 1rem; margin-bottom: 3rem;
}

.section-heading p {
  max-width: 34rem;
}

.sector-card { padding: 0; overflow: hidden; }
.sector-card-content { padding: 2rem; }

.category-media { height: 14rem; }
.inline-media { min-height: 100%; }
.inline-media img { min-height: 22rem; }

.media-slider {
  position: relative;
}

.media-slider-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.media-slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.media-slide img {
  display: block;
  width: 100%;
  min-height: 22rem;
  height: 100%;
  object-fit: cover;
}

.media-slider-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(10, 10, 10, 0.68);
  color: #ffffff;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.media-slider-control:hover {
  background: rgba(201, 31, 31, 0.92);
}

.media-slider-control.prev {
  left: 0.9rem;
}

.media-slider-control.next {
  right: 0.9rem;
}

.category-card { min-height: 100%; overflow: hidden; padding: 0; }
.category-body { padding: 2rem; }

.category-card header {
  display: flex; justify-content: space-between; gap: 1rem;
  align-items: flex-start; margin-bottom: 1.25rem;
}

.category-card h3, .sector-card h3 { font-size: 1.2rem; }

.home-feature-grid {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
}

.home-feature-copy {
  align-self: center;
  min-height: 0;
  max-width: 34rem;
}

.home-feature-copy .stack-actions {
  margin-top: 2rem;
}

.home-about-band {
  padding-top: 3.5rem;
}

.home-about-band .visual-card {
  padding: 1rem;
}

.home-about-band .inline-media img {
  min-height: 28rem;
  object-position: center;
}

.about-page .page-intro {
  max-width: 40rem;
}

.about-story-grid {
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  align-items: stretch;
}

.about-story-copy,
.about-story-media {
  min-height: 100%;
}

.about-story-copy {
  display: flex;
  align-items: center;
  padding: 2.75rem;
}

.about-story-copy .lead {
  margin: 0;
}

.about-story-media {
  padding: 1rem;
}

.about-story-media .inline-media,
.about-story-media .inline-media img {
  min-height: 100%;
}

.about-story-media .inline-media img {
  min-height: 28rem;
  object-position: center;
}

.page-intro { display: grid; gap: 1.5rem; max-width: 60rem; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.7rem;
  color: var(--text-muted);
}

.contact-list {
  gap: 1.25rem; flex-direction: column; align-items: flex-start;
  list-style: none; padding: 0; margin-top: 2rem;
}

.contact-list li { width: 100%; border-bottom: 1px solid var(--border-light); padding-bottom: 1rem; }
.contact-list li:last-child { border-bottom: none; }

.contact-link {
  display: inline-flex; align-items: center; gap: 1rem;
  color: var(--text-main); font-weight: 700; font-size: 1.05rem;
  transition: color 0.2s ease;
}

.contact-link:hover { color: var(--accent); }
.form-intro .contact-link:hover { color: var(--text-main); }

.dot {
  width: 8px; height: 8px;
  background: var(--accent);
}

.form-intro .dot { background: #ffffff; }

.content-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.content-list li + li {
  margin-top: 0.4rem;
}

/* Solid Red Category Pills */
.category-pill {
  padding: 0.35rem 0.7rem;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border: 1px solid var(--border-dark);
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; white-space: nowrap;
}

.products-page .category-media .media-label {
  display: none;
}

.products-page .category-media {
  border-bottom-color: var(--border-light);
}

.products-page .category-body {
  padding: 1.65rem 1.75rem 1.9rem;
}

.products-page .category-card header {
  margin-bottom: 0.9rem;
  align-items: center;
}

.products-page .category-card h3 {
  font-size: 1.1rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.products-page .category-pill {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-light);
  font-size: 0.68rem;
}

.products-page .category-card p,
.products-page .content-list {
  font-size: 0.97rem;
}

/* Forms - Sharp inputs */
.field input, .field select, .field textarea {
  border-radius: 0;
  border: 1px solid var(--border-dark);
  background: var(--surface-solid);
  padding: 1rem;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 4px 4px 0 var(--accent-soft);
}

.form-intro .detail-list li { background: transparent; border-color: rgba(255,255,255,0.3); color: #fff; }

/* --- FOOTER --- */
.site-footer {
  padding: 4rem 0 3rem;
  background: var(--surface-solid);
  border-top: 2px solid var(--accent);
  color: var(--text-main);
}

.footer-shell {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}

.footer-brand .brand-logo { filter: none; }

.footer-brand small {
  color: var(--text-muted);
  border-left-color: var(--accent);
}

.footer-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Reveal Animations */
.reveal { animation: rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
.delay-1 { animation-delay: 0.1s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- SECTION FOOTER ARROW LINK --- */
.section-footer-link {
  display: flex;
  justify-content: flex-end;
  margin-top: 2.5rem;
  padding-top: 1rem;
}

.inline-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.3s ease;
  position: relative;
}

.inline-arrow-link::after {
  content: "→";
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.inline-arrow-link:hover {
  color: var(--accent);
}

.inline-arrow-link:hover::after {
  transform: translateX(8px);
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 980px) {
  .hero-grid, .split-grid, .card-grid, .sector-grid, .products-grid {
    grid-template-columns: 1fr;
  }

  .brand-text small { display: none; }
  .brand-logo { width: 10rem; }

  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    padding: 2rem 1.5rem;
    background: var(--surface-solid);
    border-bottom: 2px solid var(--border-dark);
    display: none; flex-direction: column; align-items: flex-start; gap: 1.5rem;
  }

  body.nav-open .site-nav { display: flex; }
  .site-nav a { padding: 0; font-size: 1.2rem; }
  .nav-toggle { display: inline-flex; }
  .nav-wrap .button { display: none; }
  .hero-media-grid { grid-template-columns: 1fr; grid-template-rows: repeat(3, 16rem); }
  .photo-card.tall { grid-row: auto; }
  .hero-collage-image { width: 100%; }
}

@media (max-width: 640px) {
  .page-hero { padding-top: 2rem; }
  .hero-copy, .panel, .visual-card, .sector-card, .category-card {
    padding: 1.5rem;
  }
  .hero-copy h1, .page-title { font-size: 2.5rem; }
  .brand-logo { width: 8.5rem; }
  .footer-shell { align-items: flex-start; flex-direction: column; gap: 2rem; }
  .footer-brand small { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
