@media (max-width: 600px) {
  .wordstamp-navbar {
    display: none !important;
  }
}

:root {
    /* Primary Colors */
    --primary-color: #00bfff;
    --primary-color-light: #b3e6ff;
    --primary-color-dark: #0156b3;

    /* Secondary Colors */
    --secondary-color: #ff8c00;
    --secondary-color-light: #ffd699;
    --secondary-color-dark: #ff4500;

    /* Neutral Colors */
    --neutral-light: #fff9f2;
    --neutral-dark: #f9f8f6; /*#7f8c8d;*/
    --neutral-cream: #fffaf0;
    --neutral-white: #ffffff;
    --neutral-black: #000000;
    --neutral-gray: #808080;

    /* Background & Text */
    --background-color: #2e2e2e;
    --background-color-light: #ffffff;
    --text-primary: #333333; /* improved contrast vs white */
    --text-secondary: #333333;/*#333; 808080 ; 646466*/  
    --text-tertiary: #ffffff;
    --text-quaternary: #000000;

    /* Spacing */
    --space-0: 0;           /* no space */
    --space-1: 0.25rem;     /* 4px */
    --space-2: 1rem;        /* ~16px (further increased) */
    --space-3: 1.5rem;      /* ~24px (further increased) */
    --space-4: 2rem;        /* ~32px (further increased) */
    --space-5: 2.5rem;      /* ~40px (further increased) */
    --space-6: 3.5rem;      /* ~56px (further increased) */
    --space-7: 4.5rem;      /* ~72px (further increased) */
    --space-8: 6.5rem;      /* ~104px (further increased) */

    /* Navbar */
    --navbar-height: 60px;

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

    --radius-btn: 8px;


    /* Font Sizes */
    --text-xxs: 0.625rem;   /* 10px */
    --text-xs: 0.75rem;     /* 12px */
    --text-sm: 0.875rem;    /* 14px */
    --text-base: 1rem;      /* 16px */
    --text-lg: 1.125rem;    /* 18px */
    --text-xl: 1.25rem;     /* 20px */
    --text-2xl: 1.5rem;     /* 24px */
    --text-3xl: 1.75rem;   /* 30px */
    --text-4xl: 1.9rem;    /* 36px */

}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/*  FONTS */
@font-face {
  font-family: "Raleway";
  src:
    url("fonts/Raleway-VariableFont_wght.woff2") format("woff2"),
    url("fonts/Raleway-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans";
  src:
    url("fonts/NotoSans-VariableFont_wdth,wght.woff2") format("woff2"),
    url("fonts/NotoSans-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* GLOBAL STYLES */

* {
    margin: var(--space-0);
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 100%; /* 1rem = 16px (safe default) */
    text-size-adjust: 100%;          /* standard */
    -webkit-text-size-adjust: 100%; /* ✅ Prevents iOS text zoom */
    scroll-behavior: smooth; /* Optional – safe to leave */
    scroll-padding-top: var(--navbar-height);
}

html, body {
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
    
  }

body {
    font-family: 'Noto Sans', sans-serif;
    background-color: var(--background-color-light);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 1rem; /* Fallback font size */
    padding-top: 0; /*var(--navbar-height);*/
}

.page-section {
    padding: 0px 0px;
    max-width: 85%;
    margin: var(--space-0) auto;
}

.container {
  max-width: 1200px;     /* or whatever your layout width is */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  width: 100%;
}

h1, h2, h3 {
    line-height: 1.2;
    font-weight: 400;
    margin-top: var(--space-2);
    margin-bottom: var(--space-5);
    text-align: center; /* or center on mobile if preferred */
    /* max-width: 65ch; */
}

p {
    /* text-align: center; */
    margin: 0 auto var(--space-3);
    line-height: 1.6;
    /* max-width: 65ch; */
    margin-bottom: var(--space-3);
}

.section-divider {
display: block;
width: 100%;
max-width: 100%;
margin: var(--space-2) auto;
opacity: 0.5;
height: 1px;
background-color: var(--text-secondary);
}

/* TYPOGRAPHY */

h1, h2 {
    font-family: 'Raleway', sans-serif;
}


h2 {
  font-weight: 350;
  color: var(--font-tertiary);
  font-size: 2rem; /* fallback for legacy browsers */
  /* font-size: clamp(1.25rem, 4vw, 2rem);  */
  font-size: clamp(1.45rem, 4vw, 2rem); /* modern override */
  margin-bottom: var(--space-4);
  text-transform: uppercase;

  /* -webkit-text-stroke: 0.4px white;
  text-shadow: 
    -0.5px -0.5px 0 white,
     0.5px -0.5px 0 white,
    -0.5px  0.5px 0 white,
     0.5px  0.5px 0 white; */
}

.services-intro h2,
.case-study-intro h2,
.resources-intro h2,
.contact-intro h2 {
  margin-top: 0;
  margin-bottom: var(--space-4);
}

h3 {
    font-weight: 400;
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.35rem; /* fallback for older browsers */
    font-size: clamp(1.25rem, 3.5vw, 1.75rem); /* modern browsers */
}

h4 {
    font-weight: 400;
    color: var(--text-secondary);
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.2rem; /* fallback for older browsers */
    font-size: clamp(1.125rem, 2.5vw, 1.25rem); /* modern browsers */
}

strong {
    font-weight: 300;
}

p {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 250;
    font-size: 0.95rem; /*fallback for older devices*/
    font-size: clamp(0.95rem, 2.2vw, 1.1rem); /* modern browsers */
    line-height: 1.6;
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

/* =================================
   NAVIGATION (clean replacement)
   ================================= */

/* Bar */
.navbar {
  position: fixed;
  inset: 0 auto auto 0;           /* top:0; left:0 */
  width: 100%;
  height: var(--navbar-height);
  background: rgba(255,255,255, 1); /*0.96);*/
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
}

/* Inner layout */
.nav-container {
  max-width: 1200px;
  height: 100%;
  margin-inline: auto;
  padding-inline: 1rem;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Brand (logo + wordmark) */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
}

/* Wordstamp in navbar: spacing and scaling */

/* Standardize logo and wordstamp sizing for navbar */
.logo-icon img {
  display: block;
  width: auto;
  height: auto;
  max-height: 3.2rem;
  padding: 0.25rem;
  border-radius: calc(var(--radius-md) + 3px);
  border: 1px solid var(--logo-outline, rgba(0,0,0,0.12));
}
.wordstamp-navbar,
.wordstamp-navbar img {
  display: block;
  width: auto;
  height: auto;
  max-height: 3.2rem;
  border: none;
  padding: 0;
  border-radius: 0;
}
.wordstamp-navbar,
.wordstamp-navbar img {
  display: block;
  width: auto;
  height: auto;
  max-height: 48px;
  border: none;
  padding: 0;
  border-radius: 0;
}
.wordstamp-navbar,
.wordstamp-navbar img {
  display: block;
  width: auto;
  height: auto;
  max-height: 48px;
  border: none;
  padding: 0;
  border-radius: 0;
}
.wordstamp-navbar {
  display: inline-flex;
  align-items: center;
  margin-left: 0.1rem;
  margin-bottom: 0;
}

@media (min-width: 1024px), ((min-width: 769px) and (max-width: 1366px) and (orientation: landscape)), ((min-width: 601px) and (max-width: 768px) and (orientation: landscape)) {
  .page-home.wordstamp-handoff-enabled [data-navbar-wordstamp] {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
  }

  .page-home.wordstamp-handoff-enabled.wordstamp-past-hero [data-navbar-wordstamp] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

@media (max-width: 600px) {
  .logo-icon img,
  .wordstamp-navbar,
  .wordstamp-navbar img {
    max-height: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home.wordstamp-handoff-enabled [data-navbar-wordstamp] {
    transition: none;
  }
}

/* Ensure images scale cleanly */


/* Sleek boxed logo: transparent background, thin outline and small shadow
   Use `logo-boxed` on `.logo-icon` or `.wordstamp`. Override `--logo-outline`
   or `--logo-shadow` if you need a different tint. */
.logo-icon.logo-boxed,
.wordstamp.logo-boxed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent; /* no fill colour */
  /* padding: 0.25rem 0.25rem; 
  border-radius: calc(var(--radius-md) + 3px);
  border: 1px solid var(--logo-outline, rgba(0,0,0,0.12)); */
  box-shadow: 0 2px 6px var(--logo-shadow, rgba(0,0,0,0.06));
}



/* Menu (desktop) */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  font-size: var(--text-sm);
  font-weight: 200;
  color: var(--text-primary, #333);
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover { color: var(--secondary-color, #0c74d4); }

/* Toggle (mobile) */
#menu-toggle { display: none; }

.menu-icon {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  margin-left: auto; /* pushes icon to the right */
}

.menu-icon span {
  width: 100%;
  height: 0.75px;
  background: var(--neutral-gray, #333); /* was --background-color */
  border-radius: 1px;
}

/* Mobile */
@media (max-width: 768px) {
  .menu-icon { display: flex; }

  .nav-menu {
    display: none;
    position: absolute;
    top: var(--navbar-height);
    right: 1rem;
    width: 220px;

    flex-direction: column;
    align-items: flex-start;
    gap: 0;

    background: #fff;
    padding: 0.5rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 999;
  }

  #menu-toggle:checked ~ .nav-menu { display: flex; }

  .nav-menu li { width: 100%; }
  .nav-link {
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: left;
  }

  /* Slightly smaller brand on small screens */
  .logo-icon img { max-height: 3.2rem; }
  .wordstamp img { max-height: 3.2rem; }
}

/* Optional: offset page content below fixed navbar */
.main, main, .page {
  padding-top: var(--navbar-height);
}

/* Fix anchor scroll offset for sticky navbar */
:target,
[id] {
  scroll-margin-top: calc(var(--navbar-height) + 1rem);
}

/* Or more specifically for sections */
section[id],
#services,
#case-studies,
#team,
#resources,
#contact {
  scroll-margin-top: calc(var(--navbar-height) + 1rem);
}

/* ================================= */
/* ✅ Wordstamp Visibility (Mobile vs Desktop) */
/* ================================= */

/* Show in hero on mobile by default */
.wordstamp-mobile {
    display: block;
    width: clamp(6.5rem, 14vw, 12rem);
    height: auto;
    margin: 0 auto;
}

/* Hide in nav by default */
.wordstamp-desktop {
    display: none;
    /* width: clamp(8rem, 14vw, 12rem); */
}

.wordstamp-desktop img {
  max-height: calc(var(--navbar-height) - var(--space-2));
  height: auto;
  width: auto;
}


/* On larger screens: reverse visibility */
@media (min-width: 768px) {
    .wordstamp-mobile {
        display: none;
    }

    .wordstamp-desktop {
        display: inline-block;
        height: calc(var(--navbar-height) - var(--space-3));/*45px;*/
        width: auto;
        vertical-align: middle;
    }

    .navbar-brand {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
}

section[id] { scroll-margin-top: calc(var(--navbar-height) + 16px); }
/* ================================= */

/* Shared card component used across the site. Centralised here so all
   templates can rely on the same look-and-feel without importing
   component-specific CSS files. */
.section-card{
  background: transparent; /*var(--neutral-white);*/
  /* border:1px solid rgba(0,0,0,.06); */
  /* border-radius:var(--radius-md); */
  /* box-shadow:0 6px 18px rgba(0,0,0,.06); */
  padding:clamp(1rem,2.4vw,1.5rem);
  overflow:auto;                    /* prevents margin-collapses */
}
.section-card > * + *{ margin-top:clamp(.75rem,2vw,1rem); }

/* ===========================
   BUTTONS – base + variants
   =========================== */


/* Base button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);

  padding: var(--space-2) var(--space-4);

  font-family: 'Noto Sans', sans-serif;
  font-weight: 300;
  font-size: clamp(0.9rem, 1vw, 1rem);
  letter-spacing: 0.02em;
  line-height: 1;

  border-radius: var(--radius-btn);      /* 👈 shape lives here */
  border: 1.25px solid rgba(255,255,255,0.25);

  text-decoration: none;
  cursor: pointer;

  background: rgba(255,255,255,0.08);
  color: var(--text-primary);

  box-shadow: 0 8px 24px rgba(1,86,179,0.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  transition:
    background-color .25s ease,
    border-color .25s ease,
    color .25s ease,
    box-shadow .25s ease,
    transform .15s ease;
}

/* hover / active / focus */
.btn:hover       { transform: translateY(-1px); }
.btn:active      { transform: translateY(1px); }
.btn:focus-visible {
  outline: 3px solid var(--secondary-color-light);
  outline-offset: 2px;
}

/* Disabled */
.btn[disabled],
.btn.is-disabled {
  pointer-events: none;
  opacity: .45;
  box-shadow: none;
}

/* ===============================
   VARIANTS
   =============================== */

/* Primary (blue fill) */
.btn-primary,
.btn-one {                 /* alias keeps old markup working */
  /*background: linear-gradient(135deg, rgba(0,191,255,0.85), rgba(1,86,179,0.85));*/
  background: rgba(0,191,255,0.90);
  color: #fff;
  border-color: rgba(0,191,255,0.65);
  border-color: #ffffff;
  box-shadow: 0 12px 32px rgba(0,91,187,0.35);
}
.btn-primary:hover,
.btn-one:hover {
  /*background: linear-gradient(135deg, rgba(179,230,255,0.9), rgba(0,191,255,0.95));*/
  background: rgba(179,230,255,0.9);
}
.btn-primary:active,
.btn-one:active {
  background: linear-gradient(135deg, rgba(1,86,179,0.95), rgba(0,91,187,0.95));
}

/* Secondary (outline blue) */
.btn-secondary,
.btn-two {
  /* background: rgba(255,255,255,0.08); */
  background: transparent;
  /* color: #fff; */
  color: var(--primary-color, #fff);
  /* border-color: rgba(255,255,255,0.35); */
  border-color: var(--primary-color, rgba(255,255,255,0.35));
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.btn-secondary:hover,
.btn-two:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.55);
}

/* Accent (orange) */
.btn-accent,
.btn-three {
  background: linear-gradient(135deg, rgba(255,140,0,0.85), rgba(255,69,0,0.85));
  color: #fff;
  border-color: rgba(255,140,0,0.6);
  box-shadow: 0 12px 32px rgba(255,140,0,0.25);
}
.btn-accent:hover,
.btn-three:hover {
  background: linear-gradient(135deg, rgba(255,214,153,0.9), rgba(255,140,0,0.95));
}
.btn-accent:active,
.btn-three:active {
  background: linear-gradient(135deg, rgba(255,69,0,0.95), rgba(221,60,0,0.95));
}

/* Size variants */
.btn-sm {
  padding: var(--space-1) var(--space-3);
  font-size: clamp(0.8rem, 1vw, 0.9rem);
}

/* Full width on mobile (keep or delete as you prefer) */
@media (max-width: 480px) {
  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===========================
   UTILITY CLASSES
   =========================== */

/* Desktop-only paragraph - hidden on mobile, visible on desktop */
.p-desktop-only {
  display: none;
}

@media (min-width: 769px) {
  .p-desktop-only {
    display: block;
  }
}
/* Blue background behind hero/services to prevent white gaps on mobile */
@media (max-width: 768px) {
  body {
    background-color: #0157b3;
  }
}
