/* ============================================================
   DDG Properties, Inc. / ddgproperties.com
   Light operator theme derived from the DDG brand system:
   Poppins, DDG Orange #DB7815, logo slate, deep neutral, cream tints.
   ============================================================ */

:root {
  --ink: #161616;
  --body: #58595b;
  --muted: #6c6d6f;
  --orange: #db7815;
  --orange-dark: #c26a10;
  --orange-label: #a85a09;
  --chip-orange-text: #8a4b06;
  --slate: #818c8c;
  --deep: #252829;
  --deep-2: #313536;
  --cream: #faf6f0;
  --peach: #fae4ce;
  --line: #e7e6e6;
  --white: #ffffff;
  --font: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --max: 1180px;
  --canvas: 1600px;
  --shadow: 0 10px 34px rgba(37, 40, 41, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--body);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Signature device: orange strip fading down the left edge (from the deck) */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--orange) 0%, #e09468 45%, #eec8b9 75%, rgba(238,200,185,0) 100%);
  z-index: 1000;
  pointer-events: none;
}

/* ---------- Framing constraint ----------
   Without this only the text column is bounded, so on a wide monitor the
   coloured bands still run edge to edge and the page reads as sprawling. This
   caps the page itself. Change --canvas to tune it; delete this block to let
   the bands go full width again. */
.site-header,
main,
.site-footer {
  max-width: var(--canvas);
  margin-inline: auto;
}
/* The header is position:fixed with left/right 0, so auto margins centre it
   the same way. The brand strip deliberately stays at the viewport edge, not
   the canvas edge: it is the screen-edge signature device, and OMBA's orange
   bar does the same. Only the page is framed, not the strip. */

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

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-dark); }

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

/* ---------- Typography ---------- */

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 700; }

h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -0.015em; }
h3 { font-size: 1.15rem; }

.dot::after { content: "."; color: var(--orange); }

.eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--orange-label);
  margin-bottom: 16px;
}

.lead { font-size: 1.1rem; }

.section { padding: 124px 0; }
.section-cream { background: var(--cream); }
.section-head { max-width: 700px; margin-bottom: 64px; }
.section-head p { margin-top: 16px; color: var(--muted); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand img { height: 48px; width: auto; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
}
.nav a:hover { color: var(--orange); }

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn-primary { background: var(--orange); color: #fff; border: 1px solid var(--orange); }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.7); }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.nav .btn { padding: 10px 22px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 44px; height: 44px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 11px; right: 11px;
  top: 50%; margin-top: -1px;
  height: 2px;
  background: var(--ink);
  transition: background 0.1s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 150px 0 0;
  background: var(--white);
  overflow: hidden;
}
.hero-split {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 64px;
  align-items: stretch;
}
.hero-copy { padding: 40px 0 104px; align-self: center; }
.hero .eyebrow { color: var(--orange-label); }
.hero h1 {
  color: var(--ink);
  font-size: clamp(2.4rem, 5.4vw, 4.15rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  text-wrap: balance;
}
.h1-dot { color: var(--orange); }
.br-wide { display: none; }
@media (min-width: 761px) { .br-wide { display: inline; } }
.btn-stacked {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  line-height: 1.2;
}
.btn-sub {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.72;
}
.hero .lead { margin-bottom: 40px; color: var(--body); max-width: 44ch; }
.hero-figure {
  overflow: hidden;
  border-radius: 4px;
  align-self: center;
  min-height: 0;
  height: 700px;
  background: var(--deep);
}
.hero-figure picture, .hero-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-elevation { width: 100%; height: 100%; display: block; background: var(--deep); }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; align-items: stretch; }
.hero-ctas .btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
}

/* ---------- Stats band ---------- */

.stats-band { background: var(--deep); color: #fff; border-top: 3px solid var(--orange); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 46px 28px; border-left: 1px solid rgba(255,255,255,0.09); text-align: center; }
.stat:first-child { border-left: none; }
.stat-value {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.65);
}
.stats-note { padding: 0 0 16px; font-size: 0.72rem; color: rgba(255,255,255,0.62); }

/* ---------- Services ---------- */

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.service-card {
  background: none;
  border: none;
  border-top: 1px solid var(--ink);
  border-radius: 0;
  padding: 30px 0 0;
  box-shadow: none;
}
.service-icon {
  color: var(--orange);
  margin-bottom: 22px;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { margin-bottom: 12px; }
.service-card p { font-size: 0.95rem; }
.service-card .who {
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--muted);
}
.service-card .who strong { color: var(--ink); font-weight: 600; }

/* ---------- Comparison ---------- */

.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.compare-card { border-radius: 10px; padding: 44px 40px; }
.compare-card.us { background: var(--deep); color: rgba(255,255,255,0.85); }
.compare-card.us h3 { color: #fff; }
.compare-card.them { background: var(--cream); border: 1px solid var(--line); }
.compare-card h3 { margin-bottom: 22px; font-size: 1.3rem; }
.compare-card ul { list-style: none; }
.compare-card li {
  position: relative;
  padding: 10px 0 10px 34px;
  font-size: 0.98rem;
}
.compare-card.us li::before {
  content: "\2713";
  position: absolute;
  left: 0; top: 10px;
  color: var(--orange);
  font-weight: 700;
  font-size: 1.05rem;
}
.compare-card.them li::before {
  content: "\2715";
  position: absolute;
  left: 0; top: 10px;
  color: var(--slate);
  font-weight: 600;
}

/* ---------- Approach ---------- */

.triad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 70px; }
.triad-card {
  border: none;
  border-top: 1px solid var(--ink);
  border-radius: 0;
  padding: 28px 0 0;
  background: none;
}
.triad-num {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.triad-card h3 { margin-bottom: 10px; }
.triad-card p { font-size: 0.93rem; }
.triad-card .tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
}
.tag-us { background: var(--peach); color: var(--chip-orange-text); }
.tag-you { background: #ebedee; color: var(--deep); }

.cycle { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.workflow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.cycle-step {
  background: none;
  border: none;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 26px 0 0;
  counter-increment: step;
  position: relative;
}
.cycle-step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.cycle-step h4 { font-size: 1rem; margin-bottom: 8px; }
.cycle-step p { font-size: 0.84rem; line-height: 1.6; }

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: center;
}
.about-photo {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-photo img { width: 100%; height: 340px; object-fit: cover; object-position: center 20%; }
.about-copy p + p { margin-top: 18px; }
.about-copy strong { color: var(--ink); font-weight: 600; }


/* ---------- Portfolio preview ---------- */

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.tile {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  height: 380px;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.tile:hover img { transform: scale(1.05); }
.tile-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 60px 26px 22px;
  background: linear-gradient(180deg, transparent, rgba(11,20,17,0.85));
  color: #fff;
}
.tile-label h3 { color: #fff; font-size: 1.05rem; }
.tile-label span { font-size: 0.8rem; color: rgba(255,255,255,0.75); }
.center-cta { text-align: center; margin-top: 48px; }

/* ---------- Portfolio page ---------- */

.page-hero {
  background: var(--deep);
  color: #fff;
  padding: 170px 0 90px;
}
.page-hero h1 { color: #fff; margin-bottom: 18px; }
.page-hero p { max-width: 640px; color: rgba(255,255,255,0.8); }

.property-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 48px; }
.pcard {
  border: none;
  border-top: 2px solid var(--ink);
  border-radius: 0;
  background: none;
  padding: 28px 0 0;
}
.pcard-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4px; }
.pcard h3 { font-size: 1.35rem; }
.pcard .locale {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.pcard p { font-size: 0.93rem; }
.chip {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 10px;
  border-radius: 100px;
  white-space: nowrap;
}
.chip-green { background: #e5f4ec; color: #17794a; }
.chip-orange { background: var(--peach); color: var(--chip-orange-text); }
.chip-blue { background: #e8eef8; color: #2b5bab; }
.metrics {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.metric-value { font-size: 1.35rem; font-weight: 700; color: var(--ink); }
.metric-value em { font-style: normal; color: var(--orange); }
.metric-label {
  font-size: 0.64rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 3px;
}
.pnote { margin-top: 30px; font-size: 0.78rem; color: var(--muted); max-width: 820px; }

/* Case study band */
.case {
  background: var(--deep);
  border-radius: 12px;
  color: rgba(255,255,255,0.85);
  padding: 64px 58px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}
.case h2 { color: #fff; margin-bottom: 18px; }
.case p { font-size: 0.97rem; }
.case-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.case-stat {
  background: var(--deep-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 26px 24px;
}
.case-stat .metric-value { color: #fff; font-size: 1.6rem; }
.case-stat .metric-value em { color: var(--orange); }
.case-stat .metric-label { color: rgba(255,255,255,0.55); }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--deep);
  color: rgba(255,255,255,0.85);
}
.cta-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 96px 0;
}
.cta-inner h2 { color: #fff; margin-bottom: 20px; }
.cta-inner ol { margin: 22px 0 0 20px; }
.cta-inner li { padding: 6px 0; font-size: 0.98rem; }
.cta-inner li::marker { color: var(--orange); font-weight: 700; }
.inquiry-list { list-style: none; margin: 26px 0 0; }
.inquiry-list li { border-top: 1px solid rgba(255,255,255,0.12); }
.inquiry-list li:last-child { border-bottom: 1px solid rgba(255,255,255,0.12); }
.inquiry-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 4px;
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
}
.inquiry-list a span { color: var(--orange); transition: transform 0.2s ease; }
.inquiry-list a:hover { color: var(--orange); }
.inquiry-list a:hover span { transform: translateX(4px); }
.cta-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta-actions .btn { min-width: 240px; text-align: center; }
.cta-contact { font-size: 0.9rem; color: rgba(255,255,255,0.65); margin-top: 10px; }
.cta-contact a { color: #fff; font-weight: 500; }
.cta-contact a:hover { color: var(--orange); }

/* ---------- Footer ---------- */

.site-footer { background: #101b17; color: rgba(255,255,255,0.6); padding: 56px 0 42px; }
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer-brand img { height: 36px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-tag { margin-top: 14px; font-size: 0.85rem; max-width: 300px; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.footer-links a:hover { color: #fff; }
.footer-legal {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.8;
}
.footer-legal a { color: rgba(255,255,255,0.78); }

/* ---------- Reveal ---------- */

/* Reveal is a progressive enhancement: hidden only when JS confirms support,
   so the page stays fully readable if script.js fails to load. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Visible keyboard focus indicator */
a:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .hero { padding-bottom: 0; }
  .hero-split { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding: 0 0 56px; }
  .hero-figure { margin-right: calc((100% - 100vw) / 2); margin-left: calc((100% - 100vw) / 2); min-height: 0; height: 300px; }
  .cards-3, .triad, .tiles { grid-template-columns: 1fr; }
  .cycle { grid-template-columns: repeat(2, 1fr); }
  .workflow { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: none; border-top: 1px solid rgba(255,255,255,0.09); }
  .stat:nth-child(1), .stat:nth-child(2) { border-top: none; }
  .stat:nth-child(even) { border-left: 1px solid rgba(255,255,255,0.09); }
  .about-grid, .compare-grid, .property-grid, .case, .cta-inner { grid-template-columns: 1fr; }
  .about-photo { max-width: 440px; }
  .case { padding: 48px 38px; }
  .tile { height: 280px; }
}

/* Collapse to the hamburger before the horizontal nav can crowd the CTA (tablet portrait) */
@media (max-width: 960px) {
  .nav {
    position: fixed;
    top: 78px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px rgba(22,37,33,0.14);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 22px 34px;
    gap: 22px;
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    z-index: 890;
  }
  .nav-open .nav { transform: none; }
  .nav-toggle { display: block; }
  /* Legal pages keep a compact inline nav so Home stays reachable without a toggle */
  .nav-inline {
    position: static;
    transform: none;
    flex-direction: row;
    align-items: center;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 16px;
  }
}

@media (max-width: 760px) {
  .section { padding: 76px 0; }
  .container { padding: 0 22px; }
  .hero::after { background: linear-gradient(180deg, rgba(11,20,17,0.5) 0%, rgba(11,20,17,0.78) 100%); }
  .cycle { grid-template-columns: 1fr; }
  .workflow { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: none !important; border-top: 1px solid rgba(255,255,255,0.09); padding: 30px 22px; }
  .stat:first-child { border-top: none; }
  .case-stats { grid-template-columns: 1fr; }
  .hero { padding-top: 140px; min-height: 0; }
  .about-photo img { height: 400px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
}
