/*
Theme Name: GD Blank Theme
Theme URI: https://www.greatdigital.co.uk/
Author: Great Digital Solutions
Description: Custom WordPress theme by Great Digital
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: gd
*/

/* ── CSS Variables ── */
:root {
  --navy: #1e2d45;
  --navy-dark: #162236;
  --navy-mid: #253552;
  --blue: #1583cc;
  --blue-dark: #126fad;
  --cream: #f7f4ef;
  --white: #ffffff;
  --text: #1e2d45;
  --text-light: #5a6a7e;
  --border: #dde3ec;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
html {
  scroll-padding-top: 92px;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--white);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  height: 92px;
  transition: box-shadow .3s;
}
nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.25); }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 60px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block; padding: 8px 16px;
  color: var(--navy); text-decoration: none;
  font-size: .875rem; font-weight: 500; letter-spacing: .02em;
  border-radius: 4px; transition: color .2s, background .2s;
}
.nav-links > li > a:hover { color: var(--blue); background: rgba(255,255,255,.08); }
.nav-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white); border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  min-width: 220px; padding: 8px 0; list-style: none;
}
.nav-links > li:hover .nav-dropdown { display: block; }
.nav-dropdown li a {
  display: block; padding: 10px 20px;
  color: var(--navy); font-size: .875rem; text-decoration: none;
  transition: background .15s, color .15s;
}
.nav-dropdown li a:hover { background: var(--cream); color: var(--blue); }
.nav-links > li:last-of-type { margin-left: 16px; }
.nav-cta {
  background: var(--blue); color: var(--white) !important;
  border-radius: 6px; padding: 9px 20px !important;
  font-weight: 600 !important; transition: background .2s !important;
}
.nav-cta:hover { background: var(--blue-dark) !important; }

/* ── HERO ── */
.hero {
  min-height: 100vh; background: var(--navy);
  position: relative; display: flex; align-items: center;
  overflow: hidden; padding-top: 72px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 70% 40%, rgba(232,98,26,.12) 0%, transparent 55%),
    radial-gradient(circle at 15% 80%, rgba(255,255,255,.04) 0%, transparent 45%);
}
.hero-shield {
  position: absolute; right: -60px; top: 50%;
  transform: translateY(-50%);
  width: 680px; height: 680px; opacity: .06;
}
.hero-shield svg { width: 100%; height: 100%; }
.hero-inner {
  max-width: 1180px; margin: 0 auto; padding: 80px 48px;
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(232,98,26,.18); color: var(--blue-dark);
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 24px;
  animation: fadeUp .7s .1s both;
}
.hero-eyebrow span { width: 6px; height: 6px; background: var(--blue); border-radius: 50%; }
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 600;
  color: var(--white); line-height: 1.1; letter-spacing: -.01em;
  margin-bottom: 24px; animation: fadeUp .7s .2s both;
}
.hero-headline em { font-style: italic; font-weight: 300; color: rgba(255,255,255,.6); }
.hero-sub {
  max-width: 480px; margin-bottom: 40px;
  animation: fadeUp .7s .3s both;
}
.hero-sub p {
  font-size: 1.08rem; color: rgba(255,255,255,.65);
  line-height: 1.75; 
  margin-bottom: 10px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; animation: fadeUp .7s .4s both; }
.btn-primary {
  background: var(--blue); color: var(--white);
  padding: 14px 28px; border-radius: 6px;
  font-size: .9rem; font-weight: 600; letter-spacing: .02em;
  text-decoration: none; border: none; cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: rgba(255,255,255,.8);
  padding: 14px 28px; border-radius: 6px;
  font-size: .9rem; font-weight: 500; text-decoration: none;
  border: 1.5px solid rgba(255,255,255,.2); cursor: pointer;
  transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.5); color: var(--white); }
.hero-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  border-radius: 12px; overflow: hidden; animation: fadeUp .7s .5s both;
}
.stat-card {
  background: rgba(255,255,255,.06); padding: 36px 32px;
  border: 1px solid rgba(255,255,255,.08); transition: background .2s;
}
.stat-card:hover { background: rgba(255,255,255,.1); }
.stat-card:first-child { border-radius: 12px 0 0 0; }
.stat-card:nth-child(2) { border-radius: 0 12px 0 0; }
.stat-card:nth-child(3) { border-radius: 0 0 0 12px; }
.stat-card:last-child { border-radius: 0 0 12px 0; }
.stat-number {
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 700;
  color: var(--white); line-height: 1; margin-bottom: 6px;
}
.stat-number span { color: var(--blue); }
.stat-label { font-size: .83rem; color: rgba(255,255,255,.5); font-weight: 400; line-height: 1.4; }


/* ── SECTIONS ── */
section { padding: 96px 0; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 48px; }

.section-eyebrow {
  font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 600; line-height: 1.15; color: var(--navy); margin-bottom: 20px;
}
.section-title em { font-style: italic; font-weight: 300; color: var(--text-light); }
.section-body, .section-body p { font-size: 1rem; line-height: 1.8; color: var(--text-light); }


/* ── TESTIMONIALS ── */
.testimonials { background: var(--navy); }
.testimonials .section-title { color: var(--white); }
.testimonials .section-eyebrow { color: var(--blue-dark); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.testi-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 36px 32px; transition: background .2s; }
.testi-card:hover { background: rgba(255,255,255,.1); }
.testi-stars { color: var(--blue); font-size: .9rem; margin-bottom: 18px; letter-spacing: 2px; }
.testi-text { font-size: .9rem; line-height: 1.75; color: rgba(255,255,255,.7); margin-bottom: 24px; font-style: italic; }
.testi-sector { display: inline-block; background: rgba(232,98,26,.2); color: var(--blue-dark); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 20px; }

/* ── CONTACT SECTION ── */
.contact-section { background: var(--blue); padding: 96px 0; }
.contact-section .section-eyebrow {color:var(--white);}
.contact-section .section-title {color:var(--white);}
.contact-section .section-title em {color:rgba(255,255,255,.65);}
.contact-section .contact-info > p {color:rgba(255,255,255,.65);font-size:1rem;line-height:1.8;margin-bottom:40px;}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-details { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.contact-detail-item {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px; text-decoration: none; transition: background .2s, border-color .2s;
}
a.contact-detail-item:hover { background: rgba(255,255,255,.1); border-color: rgba(232,98,26,.4); }
.contact-detail-label { font-size: .75rem; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.contact-detail-value { font-size: .9rem; color: var(--white); font-weight: 500; }
.contact-promise { display: flex; align-items: flex-start; gap: 12px; padding: 16px 0; background: rgba(232,98,26,.1); border: 1px solid rgba(232,98,26,.2); border-radius: 8px; }
.contact-promise p { font-size: .8rem; color: rgba(255,255,255,.55); line-height: 1.6; }
.contact-form-card { background: var(--white); border-radius: 16px; padding: 40px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.form-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--navy); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: .8rem; font-weight: 600; color: var(--navy); letter-spacing: .03em; margin-bottom:8px; float:left; }
.form-group .req { color: var(--blue); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 6px;
  font-family: var(--font-body); font-size: .9rem; color: var(--navy);
  background: var(--white); transition: border-color .2s, box-shadow .2s; outline: none; resize: vertical;
  width: 100%;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #aab4c2; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(232,98,26,.12); }
.form-group input.error, .form-group textarea.error { border-color: #e53e3e; box-shadow: 0 0 0 3px rgba(229,62,62,.1); }
.field-error { font-size: .78rem; color: #e53e3e; display: none; margin-top: 2px; }
.field-error.visible { display: block; }
.btn-submit { width: 100%; background: var(--navy); color: var(--white); border: none; border-radius: 6px; padding: 14px 24px; font-family: var(--font-body); font-size: .9rem; font-weight: 600; cursor: pointer; margin-top: 4px; transition: background .2s, transform .15s; }
.btn-submit:hover { background: var(--blue); transform: translateY(-1px); }
.form-success { text-align: center; padding: 32px 16px; }
.form-success-icon { width: 56px; height: 56px; background: #22c55e; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: white; margin: 0 auto 16px; }
.form-success h4 { font-size: 1.2rem; color: var(--navy); margin-bottom: 8px; }
.form-success p { font-size: .9rem; color: var(--text-light); line-height: 1.6; }

/* ── FOOTER ── */
footer { background: var(--navy-dark); padding: 72px 0 32px; }
.footer-grid { max-width: 1180px; margin: 0 auto; padding: 0 48px; display: grid; grid-template-columns: 3fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-brand img { height: 60px; margin-bottom: 20px; }
.footer-tagline { font-size: .875rem; color: rgba(255,255,255,.5); line-height: 1.7; max-width: 260px; }
.footer-col h5 { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: .875rem; color: rgba(255,255,255,.55); text-decoration: none; transition: color .2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom { max-width: 1180px; margin: 0 auto; padding: 24px 48px 0; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.35); }
.footer-bottom a { color: rgba(255,255,255,.45); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */

/* Tablet / large mobile (≤ 900px) */
@media (max-width: 900px) {
  /* Nav */
  nav { padding: 0 24px; }

  /* Hero */
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 48px 24px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-shield { width: 420px; height: 420px; right: -80px; }

  /* Sections */
  .container { padding: 0 24px; }
  section { padding: 64px 0; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form-card { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-promise { padding: 16px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; padding: 0 24px; gap: 32px; }
  .footer-col { width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; padding: 24px 24px 0; }

  /* Strip (if used) */
  .strip { padding: 18px 24px; gap: 24px; }
}

/* Mobile (≤ 600px) */
@media (max-width: 600px) {
  /* Nav */
  nav { height: 72px; padding: 0 16px; }
  html { scroll-padding-top: 72px; }
  .nav-logo img { height: 48px; }

  /* Hero */
  .hero { padding-top: 56px; }
  .hero-inner { padding: 40px 16px 48px; gap: 32px; }
  .hero-headline { font-size: clamp(2rem, 8vw, 2.6rem); }
  .hero-sub p { font-size: 1rem; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { width: 100%; text-align: center; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 2px; }
  .stat-card { padding: 24px 20px; }
  .stat-number { font-size: 2rem; }
  .hero-shield { display: none; }

  /* Sections */
  .container { padding: 0 16px; }
  section { padding: 48px 0; }

  /* Section headings */
  .section-title { font-size: clamp(1.75rem, 6vw, 2rem); }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; gap: 12px; }
  .testi-card { padding: 28px 24px; }

  /* Contact */
  .contact-section { padding: 64px 0; }
  .contact-form-card { padding: 24px 16px; border-radius: 12px; }
  .form-title { font-size: 1.2rem; }

  /* Footer */
  .footer-grid { padding: 0 16px; }
  .footer-bottom { padding: 24px 16px 0; gap: 8px; }
  .footer-brand img { height: 48px; }
  footer { padding: 56px 0 32px; }
}

/* Small mobile (≤ 400px) */
@media (max-width: 400px) {
  .hero-stats { grid-template-columns: 1fr; }
  .stat-card { padding: 20px 16px; }
  .hero-inner { padding: 32px 14px 40px; }
  .container { padding: 0 14px; }
  .expertise-card { padding: 24px 20px; }
  .testi-card { padding: 24px 20px; }
  .contact-form-card { padding: 20px 14px; }
  .form-row { grid-template-columns: 1fr; }
}

/* Touch-device dropdown support */
.nav-links > li.touch-open .nav-dropdown { display: block; }

/* WordPress core styles */
.wp-block { max-width: 1180px; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); }

/* --- Hamburger button (hidden on desktop) --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}

/* Animate to X when active */
.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Mobile nav drawer --- */
@media (max-width: 900px) {

  .nav-toggle {
    display: flex;
  }

  /* Hide the standard nav list by default on mobile */
  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    background: #fff;          /* adjust to match your header bg */
    box-shadow: -4px 0 24px rgba(0,0,0,0.12);
    padding: 80px 32px 40px;
    gap: 0;
    list-style: none;
    margin: 0;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
    align-items: start;
  }

  /* Open state */
  .nav-links.is-open {
    transform: translateX(0);
  }

  .nav-links li {
    border-bottom: 1px solid rgba(0,0,0,0.07);
    width: 100%;
  }

  .nav-links li:nth-last-child(2) {
    border-bottom: none;
  }

  .nav-links li:last-child {
    border-bottom: none;
    margin-left: 0;
  }

  .nav-links a {
    display: block;
    padding: 16px 0;
    font-size: 1.05rem;
    font-weight: 500;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
  }

  .nav-links a:hover {
    opacity: 0.6;
  }
}

/* --- Overlay behind the drawer --- */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.nav-overlay.is-visible {
  display: block;
  opacity: 1;
}

/* ── COOKIEYES PLUGIN ── */

.cky-notice-btn-wrapper .cky-btn, .cky-prefrence-btn-wrapper .cky-btn {
  color: var(--blue) !important;
  border-color: var(--blue) !important;
}

.cky-notice-btn-wrapper .cky-btn.cky-btn-accept, .cky-prefrence-btn-wrapper .cky-btn.cky-btn-accept {
  background-color: var(--blue) !important;
  color: #fff !important;
}

.cky-preference-content-wrapper .cky-show-desc-btn {
  color: var(--blue) !important;
}

.cky-btn-revisit-wrapper {
  background-color: var(--blue) !important;
}

.cky-switch input[type="checkbox"]:checked {background-color: var(--blue) !important;}

/* ── CF7 ── */

.wpcf7 form .wpcf7-response-output {border-color: var(--white) !important;}
