/* ==========================================================================
   AVENOR — Website Stylesheet (Light / Silver theme)
   ========================================================================== */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ---- Design tokens ---- */
:root {
  /* Color */
  --bg: #F7F7F5;
  --surface: #FFFFFF;
  --surface-alt: #EFEEEA;
  --ink: #1A1C1F;
  --ink-muted: #5C616B;
  --ink-faint: #8A8F98;
  --line: #E3E2DD;
  --line-strong: #D2D1CB;

  --brass: #A9803D;
  --brass-dark: #8A6A32;
  --brass-tint: #F1E7D2;

  --slate: #3E4A5B;
  --slate-dark: #262F3B;

  /* Type */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --container: 1180px;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;
  --shadow-soft: 0 18px 40px -20px rgba(26, 28, 31, 0.18);
}

/* ---- Reset ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 4.4vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
h3 { font-size: 1.25rem; }

p { color: var(--ink-muted); }

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

section { padding: 104px 0; }

@media (max-width: 768px) {
  section { padding: 68px 0; }
  .container { padding: 0 22px; }
}

/* ---- Section heading pattern ---- */
.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.rule {
  width: 44px;
  height: 3px;
  background: var(--brass);
  border-radius: 2px;
  margin-bottom: 22px;
}

.section-head.center .rule { margin-left: auto; margin-right: auto; }

.section-head p { margin-top: 16px; font-size: 1.05rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: var(--slate-dark); }

.btn-brass {
  background: var(--brass);
  color: #fff;
}
.btn-brass:hover { background: var(--brass-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--ink); }

.btn-ghost-light {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.18); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 247, 245, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: var(--container);
  margin: 0 auto;
}

.nav-logo img { height: 60px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.15s ease;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 22px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

@media (max-width: 920px) {
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links a {
    padding: 16px 24px;
    width: 100%;
    border-top: 1px solid var(--line);
  }
  .nav-toggle { display: flex; }
  .nav-actions .btn-brass { padding: 10px 18px; font-size: 0.85rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 76px 0 100px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brass-dark);
  margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--brass);
}

.hero p.lede {
  font-size: 1.12rem;
  margin: 22px 0 34px;
  max-width: 480px;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero-stats .stat-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--ink);
}
.hero-stats .stat-label {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.hero-visual {
  position: relative;
}
.hero-visual .frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4/4.2;
  background: var(--surface-alt);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

.hero-visual .badge {
  position: absolute;
  bottom: -26px;
  left: -26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 240px;
}
.hero-visual .badge .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--brass);
  flex-shrink: 0;
}
.hero-visual .badge strong { display: block; font-size: 0.92rem; }
.hero-visual .badge span { font-size: 0.8rem; color: var(--ink-muted); }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
  .hero-visual .badge { left: 12px; bottom: -20px; }
  .hero-stats { flex-wrap: wrap; row-gap: 20px; }
}

/* ==========================================================================
   Logo strip
   ========================================================================== */

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px 0;
}
.strip .container {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.strip .strip-label {
  font-size: 0.85rem;
  color: var(--ink-faint);
  white-space: nowrap;
}
.strip .strip-items {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink-faint);
  font-size: 1.02rem;
}

/* ==========================================================================
   Services
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.service-card {
  background: var(--surface);
  padding: 38px 34px;
  transition: background 0.2s ease;
}
.service-card:hover { background: var(--surface-alt); }

.service-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brass-tint);
  color: var(--brass-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.service-card .icon svg { width: 22px; height: 22px; }

.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 0.95rem; }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Gallery Slider
   ========================================================================== */

.slider-section {
  background: var(--slate-dark);
  color: #fff;
  padding: 100px 0;
}
.slider-section .section-head h2 { color: #fff; }
.slider-section .section-head p { color: rgba(255,255,255,0.62); }

.slider {
  position: relative;
}

.slider-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }

.slide {
  scroll-snap-align: start;
  flex: 0 0 340px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--slate);
  position: relative;
}
.slide img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  opacity: 0.92;
}
.slide .slide-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 22px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(15,17,20,0.85) 100%);
}
.slide .slide-caption span { font-size: 0.78rem; color: var(--brass-tint); font-weight: 600; }
.slide .slide-caption h4 { font-family: var(--font-display); font-size: 1.05rem; margin-top: 4px; color: #fff; font-weight: 600; }

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}
.slider-controls button {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.slider-controls button:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.6); }
.slider-controls button svg { width: 18px; height: 18px; }

@media (max-width: 600px) {
  .slide { flex-basis: 260px; }
  .slide img { height: 340px; }
}

/* ==========================================================================
   Industries
   ========================================================================== */

.industries-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.industry-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.industry-row:hover { border-color: var(--brass); transform: translateY(-2px); }
.industry-row .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--line-strong);
  min-width: 42px;
}
.industry-row h3 { font-size: 1.05rem; margin-bottom: 4px; }
.industry-row p { font-size: 0.88rem; margin: 0; }

@media (max-width: 760px) {
  .industries-list { grid-template-columns: 1fr; }
}

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; max-width: 480px; }
.cta-band .cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ==========================================================================
   About page
   ========================================================================== */

.about-hero {
  padding: 70px 0 90px;
}
.about-hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 760px;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media img {
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 4/3.4;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.checklist { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 500;
}
.checklist li svg {
  width: 20px; height: 20px;
  color: var(--brass);
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-media { order: -1; }
  .checklist { grid-template-columns: 1fr; }
}

/* ---- Process steps ---- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.process-step {
  border-top: 3px solid var(--brass);
  padding-top: 22px;
}
.process-step .step-index {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink-faint);
  margin-bottom: 14px;
  display: block;
}
.process-step h3 { margin-bottom: 10px; }
.process-step p { font-size: 0.92rem; }

@media (max-width: 900px) {
  .process-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .process-grid { grid-template-columns: 1fr; }
}

/* ---- Values strip ---- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.value-card {
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  padding: 32px;
}
.value-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.value-card p { font-size: 0.92rem; }

@media (max-width: 760px) {
  .values-grid { grid-template-columns: 1fr; }
}

/* ---- Careers band ---- */
.careers {
  background: var(--slate-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 64px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.careers h2 { color: #fff; }
.careers p { color: rgba(255,255,255,0.68); }
.careers .roles { display: grid; gap: 12px; }
.careers .role {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}
.careers .role span.tag {
  font-size: 0.75rem;
  color: var(--brass-tint);
  border: 1px solid rgba(241, 231, 210, 0.35);
  padding: 3px 10px;
  border-radius: 999px;
}

@media (max-width: 860px) {
  .careers { grid-template-columns: 1fr; padding: 44px 28px; }
}

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-hero { padding: 70px 0 40px; }
.contact-hero .container { max-width: 700px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: flex-start;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(169, 128, 61, 0.15);
}
.field textarea { min-height: 130px; resize: vertical; }

.form-note { font-size: 0.82rem; color: var(--ink-faint); margin-top: 14px; }

.contact-info { display: grid; gap: 18px; }
.info-card {
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  padding: 28px 30px;
}
.info-card h3 { font-size: 1rem; margin-bottom: 14px; }
.info-card .info-line {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin-bottom: 12px;
}
.info-card .info-line:last-child { margin-bottom: 0; }
.info-card .info-line svg { width: 18px; height: 18px; color: var(--brass); flex-shrink: 0; margin-top: 2px; }
.info-card .info-line a:hover { color: var(--ink); }

.info-card.dark {
  background: var(--ink);
  color: #fff;
}
.info-card.dark h3 { color: #fff; }
.info-card.dark p { color: rgba(255,255,255,0.68); font-size: 0.9rem; margin-bottom: 18px; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 30px; }
}

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

.site-footer {
  background: var(--slate-dark);
  color: rgba(255,255,255,0.7);
  padding: 68px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand img { height: 60px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 0.9rem; max-width: 280px; }
.footer-col h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 0.9rem; color: rgba(255,255,255,0.6); transition: color 0.15s ease; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---- Section wrappers used for CTA band spacing ---- */
.cta-wrap { padding-bottom: 104px; }
@media (max-width: 768px) { .cta-wrap { padding-bottom: 68px; } }

/* ---- Utility ---- */
.bg-alt { background: var(--surface-alt); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
