/* Demurrage & Detention Consultant - SEO landing pages
   Scoped to .dd so it does not touch the rest of the site. */
.dd {
  --navy: #000f22;
  --navy-2: #07192f;
  --green: #23a455;
  --green-text: #1a7f43;
  --mint: #5cc4a1;
  --ink: #10202f;
  --body: #2b3a49;
  --muted: #55656f;
  --paper: #f3f6f5;
  --line: #d9e2df;
  --r: 10px;
  font-family: "Jost", sans-serif;
  color: var(--body);
  background: #fff;
  font-size: 17.5px;
  line-height: 1.7;
}
html { scroll-padding-top: 90px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.dd h1, .dd h2, .dd h3 { font-family: "Bai Jamjuree", sans-serif; letter-spacing: 0; }
.dd p { margin: 0 0 1rem; color: var(--body); }
.dd a { color: var(--green-text); text-decoration: underline; text-underline-offset: 3px; }
.dd a:hover { color: var(--navy); }
.dd a:focus-visible, .dd summary:focus-visible, .dd input:focus-visible, .dd select:focus-visible,
.dd textarea:focus-visible, .dd .dd-tablewrap:focus-visible {
  outline: 3px solid var(--mint) !important; outline-offset: 2px;
}
.dd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- hero ---------- */
.dd-hero {
  background:
    linear-gradient(100deg, rgba(0,15,34,.97) 38%, rgba(0,15,34,.80) 100%),
    url("gall/Services-11.jpg") center / cover no-repeat;
  color: #fff;
  padding: 28px 0 64px;
}
.dd .dd-hero p, .dd .dd-hero li, .dd .dd-hero dd, .dd .dd-hero dt { color: inherit; }
.dd-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 0; margin: 0 0 38px; font-size: 15px; color: #b9c6d4; }
.dd-crumbs li + li::before { content: "/"; margin-right: 10px; color: #6f8296; }
.dd .dd-crumbs a { color: #d5e0ea; text-decoration: none; }
.dd .dd-crumbs a:hover { color: #fff; text-decoration: underline; }
.dd-hero__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.dd-hero h1 { color: #fff; font-size: clamp(30px, 4vw, 50px); line-height: 1.14; font-weight: 700; margin: 0 0 20px; max-width: 18ch; }
.dd .dd-hero__lead { font-size: 19.5px; line-height: 1.65; color: #d3dde8; max-width: 60ch; margin-bottom: 28px; }
.dd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.dd .dd-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 24px;
  border-radius: 8px; font: 600 17px/1.2 "Jost", sans-serif; text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.dd .dd-btn--primary { background: var(--green); color: #00130a; }
.dd .dd-btn--primary:hover { background: #34c06b; color: #00130a; }
.dd .dd-btn--ghost { border-color: rgba(255,255,255,.45); color: #fff; background: transparent; }
.dd .dd-btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.dd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dd .dd-chips a { color: #d3dde8; text-decoration: none; font-size: 15px; padding: 4px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; }
.dd .dd-chips a:hover { color: var(--navy); background: #fff; border-color: #fff; }

.dd-glance { background: #fff; color: var(--ink); border-radius: var(--r); border-top: 5px solid var(--green); padding: 24px 26px 8px; box-shadow: 0 18px 40px rgba(0,0,0,.28); }
.dd .dd-glance p.dd-glance__title { font: 700 20px/1.2 "Bai Jamjuree", sans-serif; color: var(--navy); margin-bottom: 14px; }
.dd-glance dl { margin: 0; }
.dd-glance dl > div { padding: 12px 0; border-top: 1px solid var(--line); }
.dd .dd-glance dt { font-weight: 600; font-size: 15.5px; color: var(--green-text); line-height: 1.3; }
.dd .dd-glance dd { margin: 2px 0 0; font-size: 17px; line-height: 1.45; color: var(--ink); }

/* ---------- sections ---------- */
.dd-sec { padding: 72px 0; background: #fff; }
.dd-sec--alt { background: var(--paper); }
.dd-sec h2, .dd-contact h2 { font-size: clamp(26px, 3vw, 37px); line-height: 1.2; color: var(--navy); font-weight: 700; margin: 0 0 16px; }
.dd-head { max-width: 760px; margin-bottom: 34px; }
.dd-head p { font-size: 18.5px; color: var(--muted); }
.dd-narrow { max-width: 760px; }
.dd-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 52px; align-items: center; }
.dd-media img { width: 100%; height: auto; border-radius: var(--r); display: block; box-shadow: 0 14px 34px rgba(7,25,47,.16); }

/* table */
.dd-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.dd-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 16.5px; line-height: 1.5; }
.dd-table th, .dd-table td { padding: 15px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--body); }
.dd-table thead th { background: var(--navy); color: #fff; font: 600 16px/1.3 "Bai Jamjuree", sans-serif; border-bottom: 0; }
.dd-table tbody th { color: var(--ink); font-weight: 600; width: 22%; }
.dd-table--2 { min-width: 0; }
.dd-table--2 tbody th { width: 32%; }
.dd-table--vs tbody th { width: 46%; font-weight: 500; }
.dd-table tbody tr:nth-child(even) { background: #f8faf9; }
.dd-table tbody tr:last-child > * { border-bottom: 0; }
.dd-note { margin: 16px 0 0; padding-left: 14px; border-left: 3px solid var(--green); font-size: 16px; color: var(--muted); max-width: 820px; }

/* rules (cause lists) */
.dd-rules { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 48px; }
.dd-rules li { padding-left: 20px; border-left: 3px solid var(--green); }
.dd-rules h3, .dd-steps h3 { font-size: 21px; line-height: 1.3; color: var(--navy); margin: 0 0 6px; font-weight: 700; }
.dd-rules p { margin: 0; font-size: 17px; line-height: 1.6; }

/* steps */
.dd-steps { list-style: none; counter-reset: dd; padding: 0; margin: 0; max-width: 820px; }
.dd-steps li { counter-increment: dd; position: relative; padding: 0 0 30px 64px; }
.dd-steps li::before {
  content: counter(dd); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-items: center; font: 700 19px/1 "Bai Jamjuree", sans-serif;
}
.dd-steps li::after { content: ""; position: absolute; left: 20px; top: 48px; bottom: 6px; width: 2px; background: var(--line); }
.dd-steps li:last-child { padding-bottom: 0; }
.dd-steps li:last-child::after { display: none; }
.dd-steps p { margin: 0; }

/* compare / honest */
.dd-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.dd-col { border-radius: var(--r); padding: 26px 28px; background: #fff; border: 1px solid var(--line); }
.dd-col h3 { font-size: 21px; margin: 0 0 12px; color: var(--navy); }
.dd-col ul { margin: 0; padding: 0; list-style: none; }
.dd-col li { position: relative; padding: 7px 0 7px 26px; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.5; }
.dd-col li:first-child { border-top: 0; }
.dd-col li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 10px; height: 10px; border-radius: 50%; }
.dd-col--a { border-top: 5px solid var(--green); }
.dd-col--a li::before { background: var(--green); }
.dd-col--b { border-top: 5px solid var(--navy); }
.dd-col--b li::before { background: var(--navy); }

/* checklist */
.dd-check { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 44px; }
.dd-check li { position: relative; padding: 11px 0 11px 36px; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.5; }
.dd-check li::before {
  content: ""; position: absolute; left: 4px; top: 16px; width: 12px; height: 7px;
  border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg);
}

/* letter */
.dd-letter { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: var(--r); padding: 24px 28px; max-width: 820px; }
.dd-letter pre { margin: 0; white-space: pre-wrap; font: 400 16.5px/1.7 "Jost", sans-serif; color: var(--ink); }

/* situation picks */
.dd-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.dd .dd-pick { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; text-decoration: none; color: var(--body); transition: border-color .2s, box-shadow .2s; }
.dd .dd-pick:hover { border-color: var(--green); box-shadow: 0 10px 26px rgba(7,25,47,.10); color: var(--body); }
.dd-pick strong { display: block; font: 700 20px/1.3 "Bai Jamjuree", sans-serif; color: var(--navy); margin-bottom: 4px; }
.dd-pick span { display: block; font-size: 16.5px; line-height: 1.5; margin-bottom: 10px; }
.dd-pick em { font-style: normal; font-weight: 600; color: var(--green-text); text-decoration: underline; text-underline-offset: 3px; }

/* calculator */
.dd-sec--calc { background: var(--navy-2); }
.dd-sec--calc h2 { color: #fff; }
.dd .dd-calc p { color: #c9d5e1; }
.dd-calc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; max-width: 980px; }
.dd-calc__intro p { font-size: 18px; max-width: 64ch; }
.dd-calc__form { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.dd-field label { display: block; font-size: 15px; font-weight: 600; color: #d9e3ed; margin-bottom: 4px; }
.dd .dd-field input, .dd .dd-field select {
  width: 100%; height: 48px; padding: 8px 12px; border-radius: 8px; border: 1px solid #3d5570; background: #fff; color: var(--ink);
  font: 400 17px "Jost", sans-serif;
}
.dd-calc__out { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.2); border-radius: var(--r); padding: 18px 22px; color: #fff; font-size: 18px; line-height: 1.5; }
.dd-calc__out b { color: var(--mint); font: 700 28px/1.2 "Bai Jamjuree", sans-serif; display: block; margin-top: 2px; }
.dd .dd-calc .dd-calc__fine { font-size: 15px; margin: 0; color: #9db0c2; }

/* faq */
.dd-faq { max-width: 860px; border-top: 1px solid var(--line); }
.dd-faq details { border-bottom: 1px solid var(--line); }
.dd-faq summary { list-style: none; cursor: pointer; padding: 20px 52px 20px 0; position: relative; font: 600 20px/1.35 "Bai Jamjuree", sans-serif; color: var(--navy); }
.dd-faq summary::-webkit-details-marker { display: none; }
.dd-faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 400 30px/1 "Jost", sans-serif; color: var(--green-text); }
.dd-faq details[open] summary::after { content: "\2013"; }
.dd-answer { padding: 0 52px 8px 0; }
.dd-answer p { margin-bottom: 14px; }

/* related */
.dd-sec--related { background: var(--paper); }
.dd-related { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.dd .dd-related a { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 20px 18px; text-decoration: none; color: var(--body); transition: border-color .2s; }
.dd .dd-related a:hover { border-color: var(--green); color: var(--body); }
.dd-related strong { display: block; font: 700 18.5px/1.3 "Bai Jamjuree", sans-serif; color: var(--navy); margin-bottom: 6px; }
.dd-related span { display: block; font-size: 15.5px; line-height: 1.5; color: var(--muted); }

/* contact */
.dd-contact { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 76px 0; }
.dd-contact h2 { color: #fff; max-width: 16ch; }
.dd .dd-contact p, .dd .dd-contact li { color: #cfdae6; }
.dd-contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.dd-contact__list { list-style: none; padding: 0; margin: 24px 0 0; }
.dd-contact__list li { padding: 8px 0; border-top: 1px solid rgba(255,255,255,.15); font-size: 17px; }
.dd .dd-contact__list a { color: #fff; }
.dd-form { background: #fff; border-radius: var(--r); padding: 28px; }
.dd-form label { display: block; font-weight: 600; font-size: 15.5px; color: var(--ink); margin: 0 0 4px; }
.dd-form .form-control { margin-bottom: 14px; border: 1px solid #b9c7c2; border-radius: 8px; padding: 10px 12px; font: 400 17px "Jost", sans-serif; color: var(--ink); background: #fff; width: 100%; }
.dd-form .btn, .dd .dd-form .dd-btn { width: 100%; margin-top: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .dd-hero__grid, .dd-split, .dd-contact__grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .dd-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dd-calc__form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dd-media { order: -1; }
  .dd-sec { padding: 56px 0; }
}
@media (max-width: 767px) {
  .dd { font-size: 17px; }
  .dd-hero { padding-bottom: 48px; }
  .dd-crumbs ol { margin-bottom: 26px; }
  .dd-rules, .dd-compare, .dd-check, .dd-picks, .dd-related { grid-template-columns: minmax(0, 1fr); }
  .dd-rules { gap: 24px; }
  .dd-faq summary { font-size: 18.5px; }
  .dd-answer { padding-right: 0; }
  .dd-form { padding: 22px; }
  .dd-actions .dd-btn { width: 100%; }
}
@media (max-width: 480px) {
  .dd-calc__form { grid-template-columns: minmax(0, 1fr); }
}
