/* ============ D&G Packing and Organizing — Landing Page ============ */
:root {
  --white: #FFFFFF;
  --bg: #EDF2F5;             /* secondary warm/neutral background */
  --bg-alt: #EBF0F4;
  --ink: #0D141A;             /* primary dark / main text */
  --ink-soft: #56585E;
  --accent: #7396AC;         /* steel blue — decorative/large surfaces only */
  --accent-dark: #5C7F95;    /* hover state */
  --accent-text: #547892;    /* steel blue, darkened for WCAG AA text contrast (~5:1 on white) */
  --accent-soft: #E0EAF1;
  --dark: #0D141A;
  --card: #FFFFFF;
  --line: #DDE3E8;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(13, 20, 26, 0.10);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html, body { overflow-x: hidden; max-width: 100%; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1120px, 92%); margin-inline: auto; }
.center { text-align: center; }
.hidden { display: none !important; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; color: var(--ink); }
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
.eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-text); margin-bottom: 0.7rem;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  border: none; cursor: pointer; transition: all 0.2s ease;
}
.btn-primary { background: var(--accent-text); color: #fff; }
.btn-primary:hover { background: var(--dark); transform: translateY(-1px); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--accent-text); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-1px); background: var(--bg); }
.btn-text {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: none; border: none; cursor: pointer;
  color: var(--ink); font-weight: 600; font-size: 0.95rem;
  text-decoration: none; padding: 0;
}
.btn-block { width: 100%; justify-content: center; }
.text-link {
  display: inline-flex; align-items: center;
  background: none; border: none; cursor: pointer; padding: 0;
  color: var(--accent-text); font-weight: 700; font-size: 0.95rem;
  text-decoration: none; margin-top: 0.4rem; transition: gap 0.15s ease;
}
.text-link:hover { gap: 0.35rem; color: var(--dark); }

/* ---------- Navbar ---------- */
.navbar { background: var(--white); position: sticky; top: 0; z-index: 50; }
.navbar-inner {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 1.2rem; padding: 0.7rem 0;
}
.navbar-logo { justify-self: start; }
.navbar-logo img { height: 46px; width: auto; filter: brightness(0); } /* logo art is white-on-transparent; force it dark for the white navbar */
.navbar-toggle {
  display: none; justify-self: start; background: none; border: none; padding: 0.3rem; cursor: pointer;
  color: var(--ink); align-items: center; justify-content: center;
}
.navbar-links { display: flex; align-items: center; justify-content: center; gap: 1.7rem; }
.navbar-links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.navbar-links a:hover { color: var(--accent-text); }
.navbar-social-group { display: flex; align-items: center; gap: 0.2rem; justify-self: end; }
.navbar-social {
  color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; transition: background 0.15s, color 0.15s;
}
.navbar-social:hover { background: var(--bg); color: var(--accent-text); }

/* ---------- Hero ---------- */
.hero {
  background: var(--white); position: relative;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(4.5rem, 9vw, 6.5rem);
  text-align: center;
}
.hero-inner { max-width: 40rem; margin-inline: auto; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.1rem); margin-bottom: 1.2rem; letter-spacing: -0.01em; }
.hero-lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 32rem; margin-bottom: 2rem; }
.hero-trust {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1rem;
  margin-bottom: 2.8rem;
}
.hero-trust li {
  font-size: 0.82rem; font-weight: 600; color: var(--ink-soft);
  padding: 0.4rem 0.9rem; border-radius: 999px; background: var(--bg);
  border: 1px solid var(--line);
}
.scroll-cue {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-text); animation: scroll-bounce 2.2s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) { .scroll-cue { animation: none; } }


/* ---------- About ---------- */
.about { background: var(--bg); border-top: 1px solid var(--line); }
.about-grid { position: relative; display: grid; grid-template-columns: 0.85fr 1.15fr; align-items: stretch; }
.about-copy {
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem) clamp(3rem, 7vw, 5.5rem) 220px;
  display: flex; flex-direction: column; justify-content: center;
}
.about-media { background: var(--dark); min-height: 460px; }
/* Label and photo move as one unit, centered on the seam between the dark
   and light halves — positioned against the whole grid so it isn't clipped
   by either column's own bounds. Grouping them keeps the label snug against
   the photo instead of stranded at the far edge with empty dark space. */
.about-photo-group {
  position: absolute; left: 42.5%; top: 50%; z-index: 5;
  transform: translate(-50%, -50%);
  display: flex; align-items: stretch; gap: 0.7rem;
}
.about-vert {
  flex: none; display: flex; align-items: center; justify-content: center;
  writing-mode: vertical-rl; transform: rotate(180deg);
  color: var(--white); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85;
}
.about-photo {
  flex: none; width: 340px; max-width: 40vw; aspect-ratio: 4 / 5; object-fit: cover;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.about-copy p:not(.eyebrow) { margin-bottom: 1.1rem; color: var(--ink-soft); max-width: 32rem; }

/* ---------- Services (split) ---------- */
.services { background: var(--white); }
.services-split { display: grid; grid-template-columns: 0.85fr 1.15fr; align-items: stretch; }
.services-intro {
  background: var(--white); padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  display: flex; flex-direction: column; justify-content: center;
}
.services-intro p:not(.eyebrow) { color: var(--ink-soft); max-width: 26rem; }
.services-list {
  background: var(--dark); color: var(--white);
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 3.5rem);
  display: flex; align-items: center;
}
.services-list ul { list-style: none; width: 100%; }
.service-row {
  padding: 1.3rem 0; border-bottom: 1px solid rgba(255,255,255,0.14);
  cursor: pointer; outline: none;
}
.service-row:first-child { padding-top: 0; }
.service-row-head { display: flex; align-items: center; gap: 1rem; }
.service-icon {
  width: 42px; height: 42px; border-radius: 10px; flex: none;
  background: rgba(255,255,255,0.1); color: #A6D8F8;
  display: flex; align-items: center; justify-content: center;
}
.service-row h3 { color: var(--white); font-size: 1.15rem; }
.service-desc {
  color: rgba(255,255,255,0.72); font-size: 0.92rem; max-width: 30rem;
  margin: 0.6rem 0 0 3.3rem;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.25s ease, margin 0.3s ease;
}
.service-row:hover .service-desc,
.service-row:focus-visible .service-desc,
.service-row.is-open .service-desc {
  max-height: 6rem; opacity: 1;
}

/* ---------- Portfolio ---------- */
.portfolio { background: var(--white); }
.portfolio-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; align-items: stretch; }
.portfolio-copy {
  background: var(--bg); padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  display: flex; flex-direction: column; justify-content: center;
}
.portfolio-intro { color: var(--ink-soft); margin-bottom: 1.6rem; max-width: 28rem; }
/* Full-bleed media panel — the photo IS the panel, edge to edge, no gutter */
.portfolio-media {
  background: var(--dark); border-top: 2px solid #A6D8F8;
  position: relative; overflow: hidden; min-height: 420px;
}
.ba-projects {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.6rem; max-width: 30rem;
}
.ba-chip {
  padding: 0.5rem 1rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--white);
  font-family: inherit; font-size: 0.85rem; font-weight: 600;
  color: var(--ink-soft); cursor: pointer; transition: all 0.15s ease;
}
.ba-chip:hover { border-color: var(--accent-text); color: var(--accent-text); }
.ba-chip.active { background: var(--accent-text); border-color: var(--accent-text); color: #fff; }
.ba-slider { position: absolute; inset: 0; width: 100%; height: 100%; user-select: none; }
.ba-img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.ba-before-wrap { position: absolute; inset: 0; width: 50%; overflow: hidden; }
.ba-before-wrap .ba-img { max-width: none; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 3px;
  background: #fff; transform: translateX(-50%); pointer-events: none;
}
.ba-handle span {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.ba-handle span::before, .ba-handle span::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0;
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
  transform: translateY(-50%);
}
.ba-handle span::before { left: 8px; border-right: 6px solid var(--ink); }
.ba-handle span::after { right: 8px; border-left: 6px solid var(--ink); }
.ba-label {
  position: absolute; top: 14px; padding: 0.3rem 0.8rem;
  border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  background: rgba(13,20,26,0.75); color: #fff; letter-spacing: 0.06em; z-index: 2;
}
.ba-label-before { left: 14px; }
.ba-label-after { right: 14px; }
#ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 3; }
.ba-hint {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 2;
  font-size: 0.75rem; font-weight: 600; color: #fff;
  background: rgba(13,20,26,0.6); padding: 0.3rem 0.8rem; border-radius: 999px;
}

/* ---------- Process ---------- */
.process { padding: clamp(4rem, 8vw, 6.5rem) 0; background: var(--white); border-top: 1px solid var(--line); }
.process-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: clamp(2rem, 5vw, 4rem); row-gap: clamp(2.2rem, 5vw, 3rem);
  margin-top: 2.8rem;
}
.process-step { display: flex; gap: 1.2rem; opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.process-step.in-view { opacity: 1; transform: translateY(0); }
.process-num {
  font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 500; color: var(--accent-soft); line-height: 1; flex: none;
  -webkit-text-stroke: 1.5px var(--accent-text);
  color: transparent;
}
.process-step h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.process-step p { color: var(--ink-soft); font-size: 0.94rem; }
@media (prefers-reduced-motion: reduce) {
  .process-step { opacity: 1; transform: none; transition: none; }
}

/* ---------- The Investment ---------- */
.why-dg { background: var(--dark); color: var(--white); padding: clamp(4rem, 8vw, 6.5rem) 0; }
.why-dg .eyebrow { color: #A6D8F8; }
.why-dg .section-title { color: var(--white); max-width: 34rem; margin-bottom: 0.6rem; }
.why-dg-intro { color: rgba(255,255,255,0.68); max-width: 30rem; margin-bottom: 2.4rem; }
.invest-list { border-top: 1px solid rgba(255,255,255,0.16); margin-bottom: 1.6rem; max-width: 40rem; }
.invest-item {
  display: block; width: 100%; text-align: left; background: none; border: none;
  border-bottom: 1px solid rgba(255,255,255,0.16); color: var(--white);
  padding: 1.2rem 0; cursor: pointer;
}
.invest-item-head {
  display: flex; align-items: center; gap: 0.9rem;
  font-family: var(--font-display); font-size: 1.15rem;
}
.invest-radio {
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.5); position: relative;
  transition: border-color 0.2s ease;
}
.invest-radio::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%;
  background: #A6D8F8; transform: scale(0); transition: transform 0.2s ease;
}
.invest-item.is-active .invest-radio { border-color: #A6D8F8; }
.invest-item.is-active .invest-radio::after { transform: scale(1); }
.invest-item-body {
  display: block; color: rgba(255,255,255,0.72); font-size: 0.92rem; max-width: 34rem;
  margin-left: 1.9rem;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.25s ease, margin-top 0.3s ease;
}
.invest-item.is-active .invest-item-body { max-height: 5rem; opacity: 1; margin-top: 0.6rem; }
.invest-price { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 1.8rem; }
.invest-price strong { color: #A6D8F8; }

/* ---------- Reviews ---------- */
.reviews { padding: clamp(4rem, 8vw, 6.5rem) 0; background: var(--white); }
.testimonial { box-shadow: var(--shadow); }
.reviews .section-title { max-width: 40rem; margin-inline: auto; }
.t-proof {
  text-align: center; font-size: 0.92rem; font-weight: 600;
  color: var(--ink-soft); margin-top: 0.2rem;
}
.testimonial-carousel { position: relative; margin-top: 2.4rem; padding-inline: 64px; }
.testimonial-viewport { overflow: hidden; }
.testimonial-track { display: flex; gap: 1.4rem; transition: transform 0.65s cubic-bezier(0.33, 1, 0.68, 1); }
.testimonial {
  background: var(--bg); border-radius: var(--radius);
  padding: 1.8rem; flex: 0 0 calc(33.333% - 0.94rem);
}
.t-arrow {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--dark); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.5; transition: opacity 0.2s ease; z-index: 5;
}
.t-arrow:hover { opacity: 1; }
.t-arrow-prev { right: auto; left: 0; }
.stars { color: #8C6212; letter-spacing: 0.2em; margin-bottom: 0.8rem; }
.testimonial p { font-size: 0.95rem; margin-bottom: 0.9rem; }
.testimonial footer {
  font-weight: 600; font-size: 0.86rem; color: var(--ink-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
}
.t-source {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.76rem; font-weight: 600; color: var(--ink-soft);
  background: var(--white); border-radius: 999px; padding: 0.25rem 0.7rem; white-space: nowrap;
}

/* ---------- Contact ---------- */
.contact { padding: clamp(4rem, 8vw, 6.5rem) 0; background: var(--bg); }
.contact-grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5rem); align-items: start; width: min(1120px, 92%); margin-inline: auto;
}
.contact-copy { padding-top: 0.5rem; }
.contact-copy > p:not(.eyebrow) { color: var(--ink-soft); max-width: 26rem; margin-bottom: 1.6rem; }
.contact-phone {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: var(--ink); font-weight: 700; font-size: 1.05rem; text-decoration: none;
}
.contact-phone:hover { color: var(--accent-text); }
.contact-response { color: var(--ink-soft); font-size: 0.88rem; margin-top: 0.6rem; }

.quote-card { padding-top: 1.2rem; }
.quote-card::before { content: ""; display: block; width: 44px; height: 4px; background: var(--accent-text); border-radius: 999px; margin-bottom: 1.6rem; }
.field { margin-bottom: 1rem; flex: 1; }
.field-row { display: flex; gap: 0.9rem; }
.field label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--ink-soft); }
.field label .opt { font-weight: 400; color: #9AA1A9; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 0.92rem; color: var(--ink);
  background: var(--white); transition: border-color 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
}
.consent-row { display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 1.1rem; cursor: pointer; }
.consent-row input[type="checkbox"] { flex-shrink: 0; margin-top: 0.2rem; width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.consent-row span { font-size: 0.78rem; color: var(--ink-soft); line-height: 1.35; }
.form-note { font-size: 0.78rem; color: var(--ink-soft); text-align: center; margin-top: 0.9rem; }
.form-result { margin-top: 0.8rem; font-size: 0.9rem; font-weight: 600; text-align: center; }
.form-result.ok { color: #2E7D32; }
.form-result.err { color: #C62828; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.8); }
.footer-top {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 1.6rem; padding: 3rem 0 2rem; border-bottom: 1px solid rgba(255,255,255,0.14);
}
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-logo { height: 34px; width: auto; flex: none; }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.5; }
.footer-links { display: flex; align-items: center; gap: 1.8rem; flex-wrap: wrap; }
.footer-links a { color: #fff; text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.footer-links a:hover { color: #A6D8F8; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
  padding: 1.4rem 0; font-size: 0.78rem; color: rgba(255,255,255,0.5);
}

/* ---------- Sticky mobile action bar ---------- */
.mobile-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: var(--white); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(13,20,26,0.12);
}
.mobile-bar-call, .mobile-bar-cta {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.95rem 0.5rem; font-weight: 700; font-size: 0.9rem; text-decoration: none;
}
.mobile-bar-call { color: var(--ink); border-right: 1px solid var(--line); }
.mobile-bar-cta { background: var(--accent-text); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid, .services-split, .portfolio-grid, .contact-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .navbar-toggle { display: inline-flex; order: -1; }
  .navbar-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); margin: 0;
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }
  .navbar-links.is-open { max-height: 20rem; opacity: 1; }
  .navbar-links a { width: 100%; padding: 0.9rem 5%; border-top: 1px solid var(--line); }
  .navbar-links a:first-child { border-top: none; }
  .about-media { min-height: 140px; }
  .about-copy { padding-left: clamp(1.5rem, 5vw, 4rem); }
  .about-photo-group {
    position: static; transform: none; flex-direction: column; align-items: center;
    gap: 0; width: 84%; max-width: 320px; margin: -3rem auto 1.6rem auto;
  }
  .about-vert {
    writing-mode: horizontal-tb; transform: none; text-align: center;
    padding: 0.7rem 1rem; width: 100%;
  }
  .about-photo { width: 100%; max-width: none; }
  .testimonial { flex: 0 0 100%; }
}
@media (max-width: 640px) {
  .field-row { flex-direction: column; gap: 0; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 62px; }
  .navbar-logo img { height: 38px; }
  .field input, .field select, .field textarea { font-size: 1rem; padding: 0.8rem 0.9rem; }
  .btn-block { padding: 0.95rem 1.5rem; }
  .hero-trust { gap: 0.5rem; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

/* ---------- Accessibility: keyboard focus ---------- */
.btn:focus-visible, .t-arrow:focus-visible, .ba-chip:focus-visible,
.navbar-social:focus-visible, .navbar-links a:focus-visible, .navbar-toggle:focus-visible,
.site-footer a:focus-visible, .invest-item:focus-visible, .service-row:focus-visible,
.text-link:focus-visible {
  outline: 3px solid #A6D8F8; outline-offset: 2px;
}
#ba-range:focus-visible ~ .ba-handle span { box-shadow: 0 0 0 3px #7396AC; }
