@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:wght@400;500;600&display=swap');

/* ============================================
   CSS CUSTOM PROPERTIES
   Concept D: Refined Hybrid
   ============================================ */
:root {
  /* Primary colours - deepened teal for authority */
  --primary: #0A5555;
  --primary-light: #0D6E6E;
  --primary-dark: #063E3E;
  
  /* Accent colours - vivid coral for energy */
  --accent: #FF6B47;
  --accent-light: #FF8A6B;
  --accent-dark: #E84E30;
  
  /* Secondary - bright gold for warmth */
  --secondary: #FFB627;
  --secondary-light: #FFC857;
  --secondary-dark: #E8A317;
  
  /* Neutrals */
  --white: #FFFFFF;
  --off-white: #FAFBFC;
  --grey-50: #F5F7F9;
  --grey-100: #E8ECF1;
  --grey-200: #D1D9E2;
  --grey-400: #8B99AD;
  --grey-600: #5A6577;
  --grey-800: #323B4D;
  --grey-900: #1E2530;
  
  /* Semantic colours */
  --text-primary: #1E2530;
  --text-secondary: #5A6577;
  --text-muted: #8B99AD;
  --background: #FFFFFF;
  --background-alt: #FAFBFC;
  --border: #E8ECF1;
  
  /* Typography */
  --font-heading: 'Space Grotesk', 'Helvetica Neue', Helvetica, sans-serif;
  --font-body: 'DM Sans', 'Helvetica Neue', Helvetica, sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;
  
  /* Radius & Shadows */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(30, 37, 48, 0.06);
  --shadow-md: 0 4px 16px rgba(30, 37, 48, 0.1);
  --shadow-lg: 0 8px 32px rgba(30, 37, 48, 0.12);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul { list-style: none; }

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-2xl) 0;
}

.section--alt {
  background-color: var(--background-alt);
}

.section--primary {
  background-color: var(--primary);
  color: var(--white);
}

main {
  flex: 1;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.875rem, 4vw, 2.5rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.375rem, 3vw, 1.75rem); letter-spacing: -0.01em; }
h4 { font-size: 1.25rem; letter-spacing: 0; }

p { margin-bottom: 1rem; }

.text-accent { color: var(--accent); }
.text-secondary { color: var(--secondary); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition);
}

.header.scrolled {
    height: 64px;
    box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo__mark,
.logo-display__mark {
  width: 40px;
  height: 40px;
}

.logo__text {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__list {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
}

.nav__link {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--space-xs) 0;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav__link:hover, .nav__link.active {
  color: var(--primary);
}

.nav__link:hover::after, .nav__link.active::after {
  width: 100%;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.625rem 1.25rem;
  background-color: var(--accent);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.nav__cta:hover {
  background-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   HERO / REVEAL
   ============================================ */
.hero {
  padding: var(--space-lg) 0 var(--space-2xl);
  background: linear-gradient(180deg, var(--grey-50) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
  min-height: auto;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(10, 85, 85, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 10;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.5rem 1rem;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
}

.hero__title {
  margin-bottom: var(--space-md);
  color: var(--grey-900);
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  max-width: 650px;
  font-weight: 400;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: var(--space-sm);
}

/* Hero Image Specifics */
.hero__image {
  position: relative;
}

.hero__image-inner {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  z-index: 2;
  border: 1px solid var(--border);
}

.hero__img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.8s ease-out;
}

.hero__image:hover .hero__img {
  transform: scale(1.05);
}

.hero__image-accent {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--secondary);
  border-radius: var(--radius-lg);
  z-index: 1;
  opacity: 0.5;
}

/* Trust Badge Overlay */
.trust-badge {
    position: absolute;
    bottom: 30px;
    left: -40px;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 20;
    max-width: 300px;
}

.trust-badge__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(10, 85, 85, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-badge__title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 2px;
}

.trust-badge__text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.875rem 1.75rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn--primary {
  background-color: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn--primary:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--secondary:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* ============================================
   CARDS / PILLARS
   ============================================ */
.pillars__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

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

@media (max-width: 640px) {
    .pillars__grid {
        grid-template-columns: 1fr;
    }
}


.pillar-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pillar-card--highlight {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  border-left: 6px solid var(--secondary);
  justify-content: center;
}

.pillar-card--highlight .pillar-card__title {
  color: var(--white);
  font-size: 1.75rem;
  line-height: 1.2;
}

.pillar-card--highlight .pillar-card__title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background-color: var(--secondary);
  margin-top: 1.25rem;
  border-radius: var(--radius-full);
}

.pillar-card--highlight .pillar-card__description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  margin-top: 1rem;
}

.pillar-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
  transition: var(--transition);
}

.pillar-card--highlight .pillar-card__link {
  color: var(--secondary);
}

.pillar-card__link:hover {
  color: var(--secondary);
  gap: 0.75rem;
}

.pillar-card__number {
  color: var(--accent);
  margin-right: 0.25rem;
  font-weight: 700;
}

.pillar-card--highlight::before {
  display: none;
}


/* ============================================
   CREDENTIALS & TESTIMONIALS
   ============================================ */
.credentials-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.credentials-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}


.testimonial-card {
    background: var(--grey-50);
    padding: 3rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

@media (max-width: 992px) {
    .credentials-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .credentials-actions {
        justify-content: flex-start;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
}


.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pillar-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-card__icon {
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-md);
  padding: var(--space-sm);
  background: linear-gradient(135deg, rgba(10, 85, 85, 0.1), rgba(255, 107, 71, 0.1));
  border-radius: var(--radius-md);
  color: var(--primary);
}

.pillar-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  color: var(--grey-900);
}

/* ============================================
   CASE STUDIES
   ============================================ */
.case-studies__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.case-study-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.case-study-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.case-study-card__image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
}

.case-study-card__content {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.case-study-card__tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--grey-50);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
    width: fit-content;
}

.case-study-card__title {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--grey-900);
}

.case-study-card__description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.case-study-card__link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}

.case-study-card__link:hover {
    color: var(--accent);
    gap: 0.75rem;
}
.service-table-container { 
    background: var(--white); 
    border: 1px solid var(--border); 
    border-radius: var(--radius-lg); 
    padding: 2.5rem; 
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
}

.service-table { width: 100%; border-collapse: collapse; text-align: left; }
.service-table th { color: var(--text-primary); border-bottom: 2px solid var(--grey-50); padding: 1rem 0.5rem; font-family: var(--font-heading); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
.service-table td { color: var(--text-secondary); border-bottom: 1px solid var(--grey-50); padding: 1.5rem 0.5rem; vertical-align: top; font-size: 0.95rem;}
.service-table tr:last-child td { border-bottom: none; }
.business-need { color: var(--text-primary); font-weight: 600; width: 35%; }
.service-offered { color: var(--primary); font-weight: 500;}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: linear-gradient(135deg, var(--grey-900) 0%, var(--grey-800) 100%);
  color: var(--white);
  padding: var(--space-xl) 0 var(--space-lg);
  margin-top: auto;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-lg);
}

.footer__brand { max-width: 320px; }
.footer__logo { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-md); }
.footer__logo .logo__text { color: var(--white); font-size: 1.25rem; }
.footer__tagline { font-family: var(--font-body); font-size: 0.9375rem; opacity: 0.7; line-height: 1.7; }
.footer__links { display: flex; gap: var(--space-xl); }
.footer__column h4 { color: var(--white); font-family: var(--font-heading); font-size: 1rem; margin-bottom: var(--space-md); }
.footer__column a { font-family: var(--font-body); font-size: 0.9375rem; opacity: 0.7; transition: var(--transition); }
.footer__column a:hover { opacity: 1; color: var(--accent); }

/* ============================================
   FORMS & COMPONENTS
   ============================================ */
.contact-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
}

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem; }
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(10, 85, 85, 0.1); }

/* Reveal Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    transition: var(--transition);
}

.nav-toggle:hover {
    color: var(--accent);
}

@media (max-width: 992px) {
    .hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-2xl);
    }
    .hero__inner, .hero__content {
        max-width: 100%;
    }
    .hero__subtitle {
        margin-inline: auto;
    }
    .hero__actions {
        justify-content: center;
    }
    .hero__img {
        height: 400px;
    }
    .trust-badge {
        left: 50%;
        transform: translateX(-50%);
        bottom: -20px;
    }
}

@media (max-width: 768px) {
    .logo {
        position: relative;
        z-index: 1001;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        padding: var(--space-2xl) var(--space-lg);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
        z-index: 1000;
        gap: var(--space-xl);
        transform: translateX(100%);
        visibility: hidden;
        pointer-events: none;
    }

    .nav.is-open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .nav__list {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--space-lg);
    }

    .nav__link {
        font-size: 1.5rem;
    }

    .nav__cta {
        padding: 1rem 2rem;
        width: auto;
        min-width: 200px;
        justify-content: center;
    }

    .footer__links { flex-direction: column; }
    
    body.nav-open {
        overflow: hidden;
    }
}
