/* =========================================================
DESKBRIDGE — CANONICAL SITE STYLESHEET
Single source of truth for layout, navigation and behaviour
========================================================= */


/* ---------------------------------------------------------
1. DESIGN TOKENS
--------------------------------------------------------- */
:root {
  --green-primary: #0F3A24;
  --green-deep: #061F15;
  --accent-red: #9B0F14;

  --text-main: #1F1F1F;
  --text-muted: #555555;

  --bg-white: #FFFFFF;
  --bg-light: #F7F7F7;

  --border-light: #D6D6D6;

  --radius-sm: 4px;
  --radius-md: 8px;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 28px;
  --space-lg: 48px;
  --space-xl: 80px;
}


/* ---------------------------------------------------------
2. RESET AND BASE
--------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: Inter, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg-white);
}

/*
The body acts as the page container.
Extra top padding compensates for the fixed header on desktop.
On mobile the header becomes static and this padding is reduced.
*/
body {
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 40px 80px 40px;
}


/* ---------------------------------------------------------
3. TYPOGRAPHY
--------------------------------------------------------- */
h1,
h2,
h3 {
  font-weight: 600;
  color: var(--green-deep);
  line-height: 1.3;
}

h1 {
  font-size: 2.4rem;
  margin-bottom: var(--space-sm);
}

h2 {
  font-size: 1.8rem;
  margin-bottom: var(--space-sm);
}

h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

p {
  font-size: 1.05rem;
  margin-bottom: var(--space-sm);
}


/* ---------------------------------------------------------
4. HEADER (IDENTICAL ON ALL PAGES)
--------------------------------------------------------- */
.db-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
}

.db-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap; /* prevents collapse under long nav labels */
}

.db-logo-img {
  height: 88px;
  width: auto;
  display: block;
}


/* ---------------------------------------------------------
5. DESKTOP NAVIGATION
--------------------------------------------------------- */
.db-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.db-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green-primary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

.db-nav a:hover,
.db-nav a.active {
  background: var(--bg-light);
  color: var(--green-deep);
}

/*
Canonical primary CTA button.
Used for header contact and all major calls to action site‑wide.
*/
.db-nav-contact-button {
  background-color: var(--accent-red);
  color: #FFFFFF !important;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
}

.db-nav-contact-button:hover {
  background-color: #7F0C10;
}


/* ---------------------------------------------------------
6. ACCESSIBILITY FOCUS STATES
--------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--green-primary);
  outline-offset: 2px;
}


/* ---------------------------------------------------------
7. MOBILE MENU TOGGLE
--------------------------------------------------------- */
.db-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green-primary);
  cursor: pointer;
  white-space: nowrap;
}


/* ---------------------------------------------------------
8. MOBILE NAVIGATION (HIDDEN BY DEFAULT)
--------------------------------------------------------- */
.db-mobile-nav {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 20px;
}

.db-mobile-nav a {
  display: block;
  padding: 12px 0;
  font-weight: 600;
  text-decoration: none;
  color: var(--green-primary);
}


/* ---------------------------------------------------------
9. HERO
--------------------------------------------------------- */
.db-hero {
  background: var(--green-primary);
  color: #FFFFFF;
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xl);
}

.db-hero h1 {
  color: #FFFFFF;
}

.db-hero p {
  color: #E5E5E5;
  max-width: 720px;
  font-size: 1.15rem;
}


/* ---------------------------------------------------------
10. SECTIONS
--------------------------------------------------------- */
.db-section {
  max-width: 900px;
  margin-bottom: var(--space-xl);
}


/* ---------------------------------------------------------
11. CONTACT FORM
--------------------------------------------------------- */
.db-form {
  max-width: 640px;
  background: var(--bg-light);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.db-form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-md);
}

.db-form-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 6px;
}

.db-form input,
.db-form textarea {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  color: var(--text-main);
}

.db-form textarea {
  min-height: 140px;
  resize: vertical;
}

.db-form input:focus,
.db-form textarea:focus {
  border-color: var(--green-primary);
}

.db-form button {
  margin-top: var(--space-sm);
  padding: 14px 28px;
  font-size: 1rem;
}


/* ---------------------------------------------------------
12. FOOTER
--------------------------------------------------------- */
.db-footer {
  border-top: 1px solid var(--border-light);
  padding: var(--space-lg) 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.db-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.db-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.db-footer a:hover {
  text-decoration: underline;
}


/* ---------------------------------------------------------
13. RESPONSIVE (SINGLE SOURCE OF TRUTH)
--------------------------------------------------------- */
@media (max-width: 900px) {

  body {
    padding: 40px 20px 60px 20px;
  }

  .db-header {
    position: static;
  }

  .db-header-inner {
    padding: 16px 20px;
  }

  .db-nav {
    display: none;
  }

  .db-menu-toggle {
    display: inline-block;
  }

  .db-footer-inner {
    grid-template-columns: 1fr;
  }
}


/* ---------------------------------------------------------
14. FORM MOBILE REFINEMENTS
--------------------------------------------------------- */
@media (max-width: 600px) {

  .db-form {
    padding: var(--space-md);
  }

  .db-form button {
    width: 100%;
    text-align: center;
  }
}
