/* =========================================
   CSS CUSTOM PROPERTIES
   ========================================= */
:root {
  --black: #0a0a0a;
  --near-black: #1a1a1a;
  --gray-dark: #555;
  --gray-mid: #888;
  --gray-light: #ccc;
  --gray-rule: #e8e8e8;
  --bg: #ffffff;
  --bg-off: #f7f7f7;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-mid);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3 {
  font-family: var(--serif);
  color: var(--black);
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
}

.overline {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 20px;
}

/* =========================================
   SECTION SHELL
   ========================================= */
.section-pad {
  padding: 100px 0;
}

section + section {
  border-top: 1px solid var(--gray-rule);
}

.bg-off {
  background: var(--bg-off);
}

.section-pad h2 {
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 15px;
  color: var(--gray-mid);
  max-width: 520px;
  font-weight: 300;
  line-height: 1.75;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary {
  display: inline-block;
  padding: 14px 28px;
  background: var(--black);
  color: #fff;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--black);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-primary:hover {
  background: var(--near-black);
  color: #fff;
}

.btn-outline {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid var(--black);
  color: var(--black);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
  background: var(--black);
  color: #fff;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--gray-mid);
  text-decoration: none;
  transition: color 0.2s;
}

.btn-ghost:hover {
  color: var(--black);
}

/* =========================================
   NAVIGATION
   ========================================= */
#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--gray-rule);
  height: 64px;
  display: flex;
  align-items: center;
  transition: box-shadow 0.2s;
}

#navbar.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

#navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

section[id] {
  scroll-margin-top: 64px;
}

.nav-logo {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
}

.nav-logo img {
  display: block;
  max-width: 120px;
  height: auto;
}

.nav-logo .nav-icon {
  max-width: none;
  height: 42px;
  width: auto;
}

img {
  filter: grayscale(100%);
}

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

.nav-links .nav-link {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--gray-mid);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

.nav-links .nav-link:hover,
.nav-links .nav-link.active {
  color: var(--black);
  font-weight: 500;
}

.nav-links .nav-cta {
  color: var(--black);
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
}

.navbar-toggler {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.navbar-toggler span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--black);
}

.offcanvas-collapse {
  position: fixed;
  top: 64px;
  bottom: 0;
  left: 100%;
  width: 100%;
  padding: 40px 24px;
  overflow-y: auto;
  visibility: hidden;
  background: var(--bg);
  border-top: 1px solid var(--gray-rule);
  transition: transform 0.3s ease, visibility 0.3s ease;
}

.offcanvas-collapse.open {
  visibility: visible;
  transform: translateX(-100%);
}

.offcanvas-collapse .nav-links {
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.offcanvas-collapse .nav-link {
  font-size: 20px !important;
  color: var(--black) !important;
}

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/silver-dollar-eucalyptus-gray-background.jpg') center center / cover no-repeat;
  filter: grayscale(100%);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-watermark {
  position: absolute;
  top: -10px;
  left: -20px;
  font-family: var(--serif);
  font-size: clamp(120px, 14vw, 200px);
  color: var(--black);
  opacity: 0.04;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.hero-inner {
  position: relative;
  padding-bottom: 72px;
  max-width: 680px;
}

.hero-inner h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.15;
  font-weight: 400;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 16px;
  color: var(--gray-mid);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 24px;
  align-items: center;
}

.stats-bar {
  border-top: 1px solid var(--gray-rule);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat {
  padding: 28px 48px;
  border-right: 1px solid var(--gray-rule);
}

.stat:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--sans);
  font-size: 36px;
  font-weight: 700;
  color: var(--black);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--black);
}

/* =========================================
   CORE VALUES
   ========================================= */
#values h2 {
  margin-bottom: 8px;
}

#values .section-sub {
  margin-bottom: 56px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--gray-rule);
  border: 1px solid var(--gray-rule);
}

.value-item {
  background: var(--bg);
  padding: 32px 24px;
}

.value-icon {
  width: 32px;
  height: 32px;
  color: var(--black);
  margin-bottom: 16px;
}

.value-title {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--black);
  margin-bottom: 8px;
}

.value-desc {
  font-size: 13px;
  color: var(--gray-mid);
  line-height: 1.65;
  font-weight: 300;
}

/* =========================================
   ABOUT
   ========================================= */
#about h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 16px;
}

.about-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text p {
  font-size: 15px;
  color: var(--gray-mid);
  line-height: 1.8;
  font-weight: 300;
}

.about-text p + p {
  margin-top: 16px;
}

/* =========================================
   FOUNDER
   ========================================= */
.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 16px;
}

.founder-name {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--black);
  margin-bottom: 6px;
}

.founder-title-label {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 20px;
}

.founder-text p {
  font-size: 15px;
  color: var(--gray-mid);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 20px;
}

.founder-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--black);
  line-height: 1.6;
  border-left: 2px solid var(--black);
  padding-left: 24px;
  margin: 0 0 28px;
}

.founder-img {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.founder-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* =========================================
   SERVICES
   ========================================= */
#services {
  position: relative;
  overflow: hidden;
}

#services::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/light-gray-abstract-background.jpg') center center / cover no-repeat;
  filter: grayscale(100%);
  z-index: 0;
}

#services > .container {
  position: relative;
  z-index: 1;
}

#services h2 {
  margin-bottom: 8px;
  color: var(--black);
}

#services .section-sub {
  margin-bottom: 56px;
  color: var(--gray-dark);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-rule);
  border: 1px solid var(--gray-rule);
}

.service-card {
  background: var(--bg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.2s;
}

.service-card:hover {
  background: var(--bg-off);
}

.service-icon {
  font-size: 22px;
  color: var(--black);
  line-height: 1;
}

.service-title {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--black);
}

.service-desc {
  font-size: 14px;
  color: var(--gray-mid);
  line-height: 1.75;
  font-weight: 300;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.service-list li {
  font-size: 13px;
  color: var(--gray-mid);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 300;
}

.service-list li::before {
  content: '—';
  color: var(--gray-mid);
  flex-shrink: 0;
  margin-top: 1px;
}

/* =========================================
   CONTACT
   ========================================= */
#contact h2 {
  margin-bottom: 8px;
}

#contact .section-sub {
  margin-bottom: 56px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-info .info-item {
  margin-bottom: 32px;
}

.contact-info .info-item:last-child {
  margin-bottom: 0;
}

.contact-info .info-item .overline {
  margin-bottom: 6px;
}

.contact-info p {
  font-size: 15px;
  color: var(--near-black);
  line-height: 1.6;
}

.contact-form {
  border: 1px solid var(--black);
  padding: 40px;
  background: var(--bg);
}

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

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--gray-rule);
  padding: 10px 0;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--black);
  background: transparent;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--black);
}

.form-group textarea {
  resize: none;
  height: 100px;
}

.form-submit {
  width: 100%;
  padding: 16px;
  font-size: 11px;
  margin-top: 8px;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  border-top: 1px solid var(--gray-rule);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .nav-logo {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-brand .nav-logo img {
  max-width: 200px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--gray-mid);
  line-height: 1.7;
  max-width: 260px;
  font-weight: 300;
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--gray-mid);
}

.footer-col ul li a {
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--black);
}

.footer-bottom {
  border-top: 1px solid var(--gray-rule);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--gray-light);
}


/* =========================================
   MEDIA QUERIES
   ========================================= */

/* ── Below 992px (mobile / tablet) ── */
@media (max-width: 991.98px) {

  /* Show hamburger */
  .navbar-toggler {
    display: flex;
  }

  /* Section padding reduced */
  .section-pad {
    padding: 64px 0;
  }

  /* Hero */
  .hero {
    padding-top: 64px;
  }

  .hero-inner {
    padding-bottom: 48px;
  }

  /* Stats bar: stack vertically */
  .stats-bar {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: none;
    border-bottom: 1px solid var(--gray-rule);
    padding: 20px 24px;
  }

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

  /* Values: 2-column */
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid .value-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  /* About: stack */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Founder: stack, photo first */
  .founder-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .founder-img {
    aspect-ratio: 4 / 3;
    order: -1;
  }

  /* Services: 1-column */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Contact: stack */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form {
    padding: 24px;
  }

  /* Footer: stack */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ── 992px and above (desktop) ── */
@media (min-width: 992px) {

  /* Hide hamburger, show inline nav */
  .navbar-toggler {
    display: none;
  }

  .offcanvas-collapse {
    position: static;
    top: auto;
    bottom: auto;
    left: auto;
    width: auto;
    padding: 0;
    visibility: visible;
    background: transparent;
    border: none;
    overflow: visible;
    transform: none !important;
  }

  .offcanvas-collapse .nav-links {
    flex-direction: row;
    gap: 36px;
    align-items: center;
  }

  .offcanvas-collapse .nav-link {
    font-size: 13px !important;
    color: var(--gray-mid) !important;
  }

  .offcanvas-collapse .nav-link:hover,
  .offcanvas-collapse .nav-link.active {
    color: var(--black) !important;
    font-weight: 500 !important;
  }

  .offcanvas-collapse .nav-cta {
    color: var(--black) !important;
    border-bottom: 1px solid var(--black) !important;
  }
}

/* ── 1200px and above ── */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}
