/* Door to Door Pest Control — design system entry point.
 * Consumers link THIS one file. It is an @import list only.
 */
/* Door to Door Pest Control — Webfonts
 * Cabinet Grotesk (headlines) — self-hosted .otf, Indian Type Foundry.
 * Figtree (body/UI) via Google Fonts.
 * Both are the brand's specified typefaces.
 */

/* Figtree — Google Fonts CDN. @import must precede all other rules. */
/* latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/figtree-italic-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Figtree';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/figtree-italic-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/figtree-italic-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Figtree';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/figtree-italic-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/figtree-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/figtree-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/figtree-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/figtree-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/figtree-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/figtree-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/figtree-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/figtree-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* Cabinet Grotesk — self-hosted. Paths are relative to this file (tokens/). */
@font-face {
  font-family: "Cabinet Grotesk";
  src: url("../fonts/cabinet-grotesk-400.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cabinet Grotesk";
  src: url("../fonts/cabinet-grotesk-700.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cabinet Grotesk";
  src: url("../fonts/cabinet-grotesk-800.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cabinet Grotesk";
  src: url("../fonts/cabinet-grotesk-900.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Door to Door Pest Control — Color tokens
 * Bold red is reserved for "act now" moments only (CTAs, eyebrows, stars,
 * badges, border accents). Navy is the dominant brand colour. Never use red
 * for backgrounds or decoration.
 */
:root {
  /* Brand — base palette */
  --color-primary: #db020e;        /* bold red — CTAs, eyebrows, stars, badges, accents */
  --color-primary-70: #e84d57;     /* lighter red — hover on primary buttons only */
  --color-primary-90: #fce8e9;     /* pale red tint — subtle highlights, use sparingly */

  --color-secondary: #0677e8;      /* royal blue — dominant brand surface colour */
  --color-secondary-light: #2d8ef5;/* lighter blue — gradient panels, depth */

  --color-tertiary: #374151;       /* cool charcoal — secondary UI text, structure */
  --color-neutral: #131f2e;        /* darkest navy — footer, high-contrast overlays */

  /* Surfaces */
  --color-surface: #ffffff;        /* page + card backgrounds, trust bar */
  --color-accent-warm: #f8f7f4;    /* warm off-white — alternating section rhythm */
  --color-on-surface: #ffffff;     /* text/icon colour on dark surfaces */

  /* Neutrals — text & structure on light surfaces */
  --color-neutral-80: #1f2937;     /* near-black — strong body text */
  --color-neutral-40: #9ca3af;     /* muted gray — captions, supporting text */
  --color-neutral-20: #e5e7eb;     /* light border / divider */

  /* Semantic */
  --color-error: #d92d20;

  /* ---- Semantic aliases ---- */
  --text-strong: var(--color-neutral-80);     /* body on light */
  --text-muted: var(--color-neutral-40);       /* captions, sublines */
  --text-secondary: var(--color-tertiary);     /* secondary UI text */
  --text-on-dark: var(--color-on-surface);
  --text-on-dark-muted: rgba(255, 255, 255, 0.7);
  --text-on-dark-faint: rgba(255, 255, 255, 0.35);

  --surface-page: var(--color-surface);
  --surface-alt: var(--color-accent-warm);     /* alternating warm section */
  --surface-dark: var(--color-secondary);       /* navy/blue punctuation sections */
  --surface-darkest: var(--color-neutral);      /* footer */
  --surface-cta: var(--color-primary);          /* red CTA banner */
  --color-secondary-tint: #eaf4fe;              /* pale blue — rating strip, soft bands */

  --accent: var(--color-primary);               /* the "act now" red */
  --accent-hover: var(--color-primary-70);

  --border-subtle: rgba(0, 0, 0, 0.07);
  --border-divider: var(--color-neutral-20);
  --border-on-dark: rgba(255, 255, 255, 0.1);
  --border-on-dark-strong: rgba(255, 255, 255, 0.3);

  /* Service-card overlay — the signature depth device */
  --overlay-card: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.45) 45%,
    rgba(0, 0, 0, 0.05) 100%
  ); /* @kind color */
  /* Hero / dark-section depth gradient */
  --gradient-navy: linear-gradient(160deg, var(--color-secondary) 0%, #045bb4 70%, #034a96 100%);
}

/* Door to Door Pest Control — Typography tokens
 * Cabinet Grotesk: ALL headlines, heavy weights (700/800) only, negative tracking.
 * Figtree: body, labels, navigation, buttons, captions.
 * No third typeface. Uppercase only for the label-sm eyebrow treatment.
 */
:root {
  --font-display: "Cabinet Grotesk", "Arial Black", sans-serif; /* headlines only */
  --font-body: "Figtree", system-ui, -apple-system, Segoe UI, sans-serif;

  /* Weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  /* ---- Type scale (size / line-height / tracking) ---- */
  /* Headline display — h1: hero statement, one strongest headline per page */
  --type-display-size: 54px;
  --type-display-line: 58px;
  --type-display-track: -1.8px;
  --type-display-weight: 800;

  /* Headline lg — h2: major section titles */
  --type-h2-size: 38px;
  --type-h2-line: 44px;
  --type-h2-track: -1.2px;
  --type-h2-weight: 800;

  /* Headline md — h3: sub-section headings, feature card titles */
  --type-h3-size: 28px;
  --type-h3-line: 34px;
  --type-h3-track: -0.6px;
  --type-h3-weight: 800;

  /* Headline sm — h4: small cards, FAQ questions */
  --type-h4-size: 20px;
  --type-h4-line: 26px;
  --type-h4-track: -0.3px;
  --type-h4-weight: 700;

  /* Body lg — hero subheads, lead copy */
  --type-body-lg-size: 16px;
  --type-body-lg-line: 28px;

  /* Body md — standard content */
  --type-body-md-size: 14px;
  --type-body-md-line: 24px;

  /* Body sm — testimonials, FAQ answers, card descriptions */
  --type-body-sm-size: 13px;
  --type-body-sm-line: 22px;

  /* Label lg — buttons, high-visibility controls */
  --type-label-lg-size: 14px;
  --type-label-lg-line: 22px;
  --type-label-lg-weight: 600;

  /* Label md — nav, secondary controls */
  --type-label-md-size: 13px;
  --type-label-md-line: 20px;
  --type-label-md-weight: 600;

  /* Label sm — EYEBROW: uppercase, 2px tracking, the section-entry signal */
  --type-label-sm-size: 11px;
  --type-label-sm-line: 18px;
  --type-label-sm-weight: 600;
  --type-label-sm-track: 2px;

  /* Caption — attribution, fine print, footer details */
  --type-caption-size: 11px;
  --type-caption-line: 17px;
}

/* ---- Reusable type classes ---- */
.dd-display {
  font-family: var(--font-display);
  font-size: var(--type-display-size);
  line-height: var(--type-display-line);
  letter-spacing: var(--type-display-track);
  font-weight: var(--type-display-weight);
}
.dd-h2 {
  font-family: var(--font-display);
  font-size: var(--type-h2-size);
  line-height: var(--type-h2-line);
  letter-spacing: var(--type-h2-track);
  font-weight: var(--type-h2-weight);
}
.dd-h3 {
  font-family: var(--font-display);
  font-size: var(--type-h3-size);
  line-height: var(--type-h3-line);
  letter-spacing: var(--type-h3-track);
  font-weight: var(--type-h3-weight);
}
.dd-h4 {
  font-family: var(--font-display);
  font-size: var(--type-h4-size);
  line-height: var(--type-h4-line);
  letter-spacing: var(--type-h4-track);
  font-weight: var(--type-h4-weight);
}
.dd-body-lg {
  font-family: var(--font-body);
  font-size: var(--type-body-lg-size);
  line-height: var(--type-body-lg-line);
  font-weight: var(--weight-regular);
}
.dd-body-md {
  font-family: var(--font-body);
  font-size: var(--type-body-md-size);
  line-height: var(--type-body-md-line);
  font-weight: var(--weight-regular);
}
.dd-body-sm {
  font-family: var(--font-body);
  font-size: var(--type-body-sm-size);
  line-height: var(--type-body-sm-line);
  font-weight: var(--weight-regular);
}
.dd-label-lg {
  font-family: var(--font-body);
  font-size: var(--type-label-lg-size);
  line-height: var(--type-label-lg-line);
  font-weight: var(--type-label-lg-weight);
}
.dd-label-md {
  font-family: var(--font-body);
  font-size: var(--type-label-md-size);
  line-height: var(--type-label-md-line);
  font-weight: var(--type-label-md-weight);
}
.dd-label-sm {
  font-family: var(--font-body);
  font-size: var(--type-label-sm-size);
  line-height: var(--type-label-sm-line);
  font-weight: var(--type-label-sm-weight);
  letter-spacing: var(--type-label-sm-track);
  text-transform: uppercase;
}
.dd-caption {
  font-family: var(--font-body);
  font-size: var(--type-caption-size);
  line-height: var(--type-caption-line);
  font-weight: var(--weight-regular);
}

/* Door to Door Pest Control — Spacing, radii, elevation tokens
 * Intentionally flat system. Hierarchy comes from contrast, colour and weight,
 * not shadows. Thin low-opacity borders create separation.
 */
:root {
  /* Spacing rhythm */
  --space-xs: 8px;   /* tight internal gaps */
  --space-sm: 16px;  /* component padding */
  --space-md: 32px;  /* section internal spacing */
  --space-lg: 48px;  /* mid-weight section padding */
  --space-xl: 64px;  /* major section vertical padding */

  /* Layout */
  --container-max: 1180px;
  --page-pad: 32px;  /* minimum side padding */

  /* Radii — clean and restrained with slight softness */
  --radius-none: 0px;
  --radius-sm: 4px;    /* badges */
  --radius-md: 8px;    /* inputs */
  --radius-lg: 10px;   /* cards, containers */
  --radius-xl: 6px;    /* structured rectangular feel (alt button geometry) */
  --radius-full: 9999px; /* pills: CTA buttons, chips, tags */

  /* Elevation — used only functionally (e.g. modals). System is otherwise flat. */
  --shadow-modal: 0 24px 60px -12px rgba(19, 31, 46, 0.35);
  --shadow-floating: 0 8px 24px -8px rgba(19, 31, 46, 0.18);
}

/* Door to Door Pest Control — base reset & document defaults */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--type-body-md-size);
  line-height: var(--type-body-md-line);
  color: var(--text-strong);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--text-strong);
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
button {
  font-family: var(--font-body);
  cursor: pointer;
}

/* Door to Door Pest Control — component interaction states.
 * Components render inline-styled base looks; hover/active/focus live here so
 * they ship to consumers and stay overridable.
 */

/* ---- Buttons ---- */
.dd-btn { -webkit-tap-highlight-color: transparent; }
.dd-btn--primary:hover:not(:disabled) { background-color: var(--color-primary-70) !important; }
.dd-btn--secondary:hover:not(:disabled) { background-color: var(--color-primary-90) !important; }
.dd-btn--white-filled:hover:not(:disabled) { background-color: #f1eee9 !important; }
.dd-btn--outline-white:hover:not(:disabled) { border-color: rgba(255,255,255,0.7) !important; background-color: rgba(255,255,255,0.06) !important; }
.dd-btn--ghost-light:hover:not(:disabled) { color: #ffffff !important; }
.dd-btn:active:not(:disabled) { transform: translateY(0.5px); }
.dd-btn:focus-visible { outline: 2px solid var(--color-secondary); outline-offset: 2px; }

/* ---- Service card (signature device) ---- */
.dd-service-card { transition: transform .25s ease, box-shadow .25s ease; }
.dd-service-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(6,119,232,0.22); }
.dd-service-card__arrow { transition: transform .2s ease, background-color .2s ease, border-color .2s ease; }
.dd-service-card:hover .dd-service-card__arrow { transform: translateX(3px); }

/* ---- Cards & FAQ ---- */
.dd-why-card { transition: border-color .2s ease; }
.dd-why-card:hover { border-color: rgba(0,0,0,0.16); }
.dd-faq-item__q { transition: color .15s ease; }
.dd-faq-item__q:hover { color: var(--color-primary); }

/* ---- Inputs ---- */
.dd-input:focus { outline: none; border-color: var(--color-secondary) !important; box-shadow: 0 0 0 3px rgba(6,119,232,0.12); }

/* ---- Nav links ---- */
.dd-navlink { transition: color .15s ease; }
.dd-navlink:hover { color: var(--color-primary); }

