/* ==============================================================================
   CONTACT US — PAGE-SPECIFIC STYLES (Layer 3)
   ==============================================================================

   Page-specific styles for the Contact Us page. Foundation, header, and footer
   styles live in their own files and load before this.

   WORDPRESS PLACEMENT
   -------------------
   wp-content/themes/synergy/assets/css/pages/contact.css

   ENQUEUE (in functions.php) — only on the Contact page:

       if ( is_page( 'contact-us' ) ) {
           wp_enqueue_style(
               'synergy-contact',
               get_template_directory_uri() . '/assets/css/pages/contact.css',
               array( 'synergy-foundation' ),
               filemtime( get_template_directory() . '/assets/css/pages/contact.css' )
           );
       }

   LAYER 2 CANDIDATES (defer consolidation)
   ----------------------------------------
   These appear here and on other pages — will move to Layer 2 later:
     - .page-hero (shared with About, used on 18 pages)
     - .section-label, .section-title, .section-subtitle

   PAGE-SPECIFIC (Layer 3 — stay here permanently)
   -----------------------------------------------
     - .hero-quick-contact   (phone/email/WhatsApp buttons in the hero)
     - .branches-section, .branches-grid, .branches-header
     - .branch-card, .branch-card-map, .branch-card-body, .branch-tag
     - .branch-info-row, .branch-divider, .branch-coverage, .branch-enquire
     - .is-hq                (Head Office card variant)
     - .team-section, .team-grid, .team-header
     - .team-card, .team-avatar, .team-role, .team-divider, .team-contact-row
     - .cta-strip, .cta-strip-actions
     - .btn-ghost-white      (ghost button on dark/green strip)

   CI COMPLIANCE
   -------------
   All colours updated to CI specification on 12 May 2026.

   ============================================================================== */

/* ─── HERO ─── */

.page-hero {
      background: var(--brand-gradient);
      padding: 70px 0 60px;
      position: relative;
      overflow: hidden;
    }

.page-hero::before {
      content: '';
      position: absolute; inset: 0;
      background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    }

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 {
      font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem);
      color: #fff; line-height: 1.15; margin-bottom: 14px;
    }

.page-hero p {
      font-size: 1.05rem; color: rgba(255,255,255,0.88); max-width: 560px;
    }

.hero-quick-contact {
      display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px;
    }

.hero-quick-contact a {
      display: inline-flex; align-items: center; gap: 8px;
      background: rgba(255,255,255,0.18); border: 1.5px solid rgba(255,255,255,0.4);
      color: #fff; text-decoration: none;
      padding: 10px 18px; border-radius: 50px;
      font-family: var(--font-display); font-weight: 600; font-size: 0.88rem;
      backdrop-filter: blur(4px);
      transition: background 0.2s, border-color 0.2s;
    }

.hero-quick-contact a:hover { background: rgba(255,255,255,0.28); border-color: rgba(255,255,255,0.7); }

.hero-quick-contact a svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ─── SECTION TITLES ─── */

.section-label {
      font-family: var(--font-display); font-size: 0.78rem; font-weight: 600;
      letter-spacing: 0.12em; text-transform: uppercase;
      color: var(--brand-primary); margin-bottom: 10px;
    }

.section-title {
      font-family: var(--font-display); font-size: clamp(1.5rem, 2.5vw, 2rem);
      font-weight: 700; color: var(--ink); line-height: 1.2; margin-bottom: 12px;
    }

.section-subtitle { color: var(--muted); max-width: 560px; }

/* ─── BRANCHES ─── */

.branches-section { padding: 72px 0; background: var(--bg); }

.branches-header { margin-bottom: 48px; }

.branches-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.branch-card {
      background: var(--bg);
      border: 1px solid var(--line);
      border-radius: var(--radius-lg);
      overflow: hidden;
      box-shadow: var(--shadow-sm);
      transition: box-shadow 0.25s ease, transform 0.25s ease;
    }

.branch-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.branch-card-map { width: 100%; height: 200px; border: 0; display: block; }

.branch-card-body { padding: 24px 24px 28px; }

.branch-tag {
      display: inline-block; font-family: var(--font-display); font-size: 0.72rem;
      font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
      background: var(--bg-soft); color: var(--brand-primary);
      border: 1px solid rgba(167,190,57,0.25);
      padding: 3px 10px; border-radius: 20px; margin-bottom: 10px;
    }

.branch-card h3 {
      font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
      color: var(--ink); margin-bottom: 14px;
    }

.branch-info-row {
      display: flex; gap: 10px; align-items: flex-start;
      margin-bottom: 8px; font-size: 0.9rem; color: var(--ink-soft);
    }

.branch-info-row svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--brand-primary); }

.branch-info-row a { color: var(--ink-soft); text-decoration: none; }

.branch-info-row a:hover { color: var(--brand-primary); }

.branch-divider { border: none; border-top: 1px solid var(--line); margin: 16px 0; }

.branch-coverage {
      font-size: 0.82rem; color: var(--muted); line-height: 1.6;
    }

.branch-coverage strong { color: var(--ink-soft); }

.branch-enquire {
      display: inline-flex; align-items: center; gap: 6px;
      margin-top: 18px;
      font-family: var(--font-display); font-size: 0.84rem; font-weight: 600;
      color: var(--brand-primary); text-decoration: none;
      transition: gap 0.2s;
    }

.branch-enquire:hover { gap: 10px; }

.branch-enquire svg { width: 14px; height: 14px; }

/* HQ badge */

.branch-card.is-hq .branch-tag {
      background: var(--brand-primary); color: #fff; border-color: var(--brand-primary);
    }

/* ─── TEAM ─── */

.team-section { padding: 72px 0; background: var(--bg-soft); }

.team-header { margin-bottom: 48px; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.team-card {
      background: var(--bg); border: 1px solid var(--line);
      border-radius: var(--radius-md); padding: 28px 20px 24px;
      text-align: center;
      box-shadow: var(--shadow-sm);
      transition: box-shadow 0.25s ease, transform 0.25s ease;
    }

.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.team-avatar {
      width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 16px;
      background: var(--bg-soft); border: 3px solid var(--line);
      overflow: hidden; display: flex; align-items: center; justify-content: center;
    }

.team-avatar svg { width: 44px; height: 44px; color: var(--line); }

.team-card h3 {
      font-family: var(--font-display); font-size: 1rem; font-weight: 700;
      color: var(--ink); margin-bottom: 4px;
    }

.team-role {
      font-size: 0.82rem; color: var(--brand-primary); font-weight: 600;
      font-family: var(--font-display); margin-bottom: 14px;
    }

.team-divider { border: none; border-top: 1px solid var(--line); margin: 14px 0; }

.team-contact-row {
      display: flex; align-items: center; justify-content: center; gap: 7px;
      font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 7px;
    }

.team-contact-row svg { width: 14px; height: 14px; color: var(--brand-primary); flex-shrink: 0; }

.team-contact-row a { color: var(--ink-soft); text-decoration: none; }

.team-contact-row a:hover { color: var(--brand-primary); }

/* ─── CONTACT FORM STRIP ─── */

.cta-strip {
      padding: 64px 0; background: var(--brand-gradient); position: relative; overflow: hidden;
    }

.cta-strip::before {
      content: '';
      position: absolute; inset: 0;
      background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    }

.cta-strip .container { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

.cta-strip h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 700; color: #fff; margin-bottom: 8px; }

.cta-strip p { color: rgba(255,255,255,0.85); font-size: 1rem; max-width: 500px; }

.cta-strip-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }

.btn-white { background: #fff; color: var(--brand-primary-dark); }

.btn-white:hover { background: var(--bg-soft); }

.btn-ghost-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); }

.btn-ghost-white:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

/* ─── RESPONSIVE ─── */

@media (max-width: 1080px) {
      .branches-grid { grid-template-columns: repeat(2, 1fr); }
      .team-grid { grid-template-columns: repeat(2, 1fr); }
    }

@media (max-width: 780px) {
      .branches-grid { grid-template-columns: 1fr; }
      .team-grid { grid-template-columns: repeat(2, 1fr); }
      .cta-strip .container { flex-direction: column; align-items: flex-start; }
      .hero-quick-contact { flex-direction: column; }
    }

@media (max-width: 520px) {
      .team-grid { grid-template-columns: 1fr; }
      .hero-quick-contact a { width: 100%; justify-content: center; }
    }

/* ========== CONTACT FORM (closing-cta / quote-form) ========== */

.closing-cta {
  background: linear-gradient(135deg, #2d3940 0%, #8ea230 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.06) 0%, transparent 35%),
    radial-gradient(circle at 85% 80%, rgba(255,255,255,0.04) 0%, transparent 40%);
  pointer-events: none;
}

.closing-cta .container { position: relative; z-index: 1; }

.closing-cta h2 {
  color: #fff;
  margin-bottom: 14px;
  font-size: 32px;
}

.closing-cta h2 strong { color: var(--accent-warn); }

.closing-cta > .container > p {
  max-width: 720px;
  margin: 0 auto 38px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  line-height: 1.7;
}

.quote-form-wrap {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border-radius: 14px;
  padding: 40px 44px 36px;
  text-align: left;
  box-shadow:
    0 24px 60px rgba(20, 28, 32, 0.32),
    0 8px 18px rgba(20, 28, 32, 0.18);
  color: var(--text);
}

.quote-form-header {
  text-align: center;
  margin-bottom: 30px;
}

.quote-form-header .quote-eyebrow {
  display: inline-block;
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}

.quote-form-header h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 8px;
  padding-bottom: 0;
}

.quote-form-header p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.quote-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.quote-form-grid .full-row { grid-column: 1 / -1; }

.quote-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quote-field label {
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--heading);
  letter-spacing: 0.3px;
}

.quote-field label .req {
  color: var(--brand);
  margin-left: 2px;
}

.quote-field input[type="text"],
.quote-field input[type="tel"],
.quote-field input[type="email"],
.quote-field select,
.quote-field textarea {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-size: 14px;
  color: var(--heading);
  background: var(--bg-panel);
  border: 1.5px solid var(--line);
  border-radius: 7px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  font-family: 'Open Sans', sans-serif;
}

.quote-field textarea {
  min-height: 90px;
  resize: vertical;
}

.quote-field input:focus,
.quote-field select:focus,
.quote-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(167, 190, 57, 0.15);
}

.quote-field input[aria-invalid="true"],
.quote-field select[aria-invalid="true"],
.quote-field textarea[aria-invalid="true"] {
  border-color: #c0392b;
  background: #fdf3f1;
}

.quote-field .field-error {
  font-size: 12px;
  color: #c0392b;
  margin-top: 2px;
  min-height: 16px;
}

.quote-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.quote-consent input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--brand);
  margin-top: 2px;
  flex-shrink: 0;
}

.quote-consent[aria-invalid="true"] {
  color: #c0392b;
}

.quote-form-footer {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.quote-submit {
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 50%, var(--brand-dark) 100%);
  color: #fff;
  border: 0;
  padding: 14px 38px;
  border-radius: 8px;
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
  box-shadow:
    0 6px 18px rgba(167, 190, 57, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.18s, box-shadow 0.18s;
  min-width: 240px;
}

.quote-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    0 10px 24px rgba(167, 190, 57, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.quote-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.quote-form-trust {
  font-size: 12px;
  color: var(--ink-soft);
}

.quote-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.quote-form-error {
  display: none;
  background: #fdf3f1;
  border: 1px solid #f5c6c1;
  color: #c0392b;
  padding: 12px 16px;
  border-radius: 7px;
  font-size: 13.5px;
  margin-bottom: 18px;
  text-align: center;
}

.quote-form-error.is-visible { display: block; }

.quote-form-success {
  display: none;
  text-align: center;
  padding: 50px 30px;
}

.quote-form-success.is-visible { display: block; }

.quote-form-success .success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(167, 190, 57, 0.35);
}

.quote-form-success .success-icon svg {
  width: 36px;
  height: 36px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quote-form-success h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 12px;
  padding-bottom: 0;
}

.quote-form-success p {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 460px;
  margin: 0 auto 8px;
  line-height: 1.7;
}

.quote-form-success .success-meta {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 18px;
}

.quote-form-success .success-meta a {
  color: var(--brand-dark);
  font-weight: 600;
}

.quote-alt {
  text-align: center;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

.quote-alt strong { color: #fff; }

.quote-alt a {
  color: #fff;
  font-weight: 700;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.5);
  padding-bottom: 1px;
}

.quote-alt a:hover { border-bottom-color: #fff; color: #fff; }

@media (max-width: 760px) {
  .quote-form-wrap { padding: 30px 20px 26px; }
  .quote-form-grid { grid-template-columns: 1fr; gap: 14px; }
  .quote-form-header h3 { font-size: 19px; }
  .closing-cta h2 { font-size: 26px; }
}

/* Hide the empty <p> wrappers WordPress auto-inserts around HTML
   comments inside the branches grid — they were occupying grid cells */
.branches-grid > p { display: none; }

/* ===== Accreditations & Memberships (contact page) ===== */
#accreditations { padding: 64px 0; background: #fff; }
#accreditations .section-header { text-align: center; max-width: 760px; margin: 0 auto 48px; padding: 0 20px; }
#accreditations .section-eyebrow { display: inline-block; color: var(--brand, #8bb524); font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px; }
#accreditations h2 { font-size: 34px; font-weight: 700; line-height: 1.2; color: #1a1a1a; margin: 0 0 16px; }
#accreditations h2 strong { color: var(--brand, #8bb524); font-weight: 700; }
#accreditations .section-lede { font-size: 16px; line-height: 1.6; color: #4a4a4a; margin: 0; }
.accreditations-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.accreditation-card { background: #fff; border: 1px solid #e5e5e5; border-radius: 16px; padding: 32px 22px; text-align: center; flex: 1 1 220px; max-width: 260px; display: flex; flex-direction: column; align-items: center; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.accreditation-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.07); }
.accreditation-logo { height: 90px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; width: 100%; }
.accreditation-logo img { max-height: 80px; max-width: 170px; width: auto; height: auto; object-fit: contain; }
.accreditation-logo.accreditation-tesla svg { max-width: 180px; max-height: 72px; }
.accreditation-card h3 { font-size: 17px; font-weight: 700; color: #1a1a1a; margin: 0 0 12px; line-height: 1.3; }
.accreditation-card p { font-size: 13.5px; line-height: 1.55; color: #4a4a4a; margin: 0; }
@media (max-width: 900px) { #accreditations h2 { font-size: 28px; } .accreditation-card { flex: 1 1 200px; max-width: 240px; } }
@media (max-width: 600px) { #accreditations { padding: 48px 0; } .accreditation-card { flex: 1 1 100%; max-width: 360px; } }

/* ===== Explore Our Solutions (contact page) ===== */
#related { padding: 80px 0; background: var(--light-bg, #f5f6f2); }
#related .section-head { text-align: center; margin-bottom: 50px; }
#related .section-head h2 { margin-bottom: 16px; }
#related .eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--brand, #8bb524); margin-bottom: 14px; }
#related .lede { font-size: 16px; line-height: 1.7; color: var(--text, #4a4a4a); max-width: 760px; margin: 0 auto 36px; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 1024px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .related-grid { grid-template-columns: 1fr; } }
.related-card { display: block; background: #fff; border: 1px solid #e5e5e5; border-radius: 14px; padding: 26px 24px; text-decoration: none; color: #1a1a1a; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.related-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.07); border-color: var(--brand, #8bb524); }
.related-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 10px; }
.related-card p { font-size: 14px; line-height: 1.55; color: #4a4a4a; margin: 0 0 14px; }
.related-card .arrow { font-weight: 600; color: var(--brand, #8bb524); font-size: 14px; }