@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

:root {
  /* ── Brand Colors (exact from brand guide) ── */
  --bg-primary:    #FDFBF7;   /* page background – near-white warm */
  --bg-secondary:  #FCE1C3;   /* warm cream accent */
  --bg-dark:       #111111;   /* charcoal */

  --text-primary:  #111111;
  --text-light:    #FFFFFF;
  --text-muted:    #666666;

  /* Brand palette */
  --accent-orange:     #D85C27;   /* Earthy Orange */
  --accent-teal:       #3B827E;   /* Teal */
  --accent-pink:       #F6C1C9;   /* Soft Pink */
  --accent-yellow:     #FFCE44;   /* Warm Yellow */
  --accent-light-blue: #C2E2E1;   /* Light Blue */
  --accent-cream:      #FCE1C3;   /* Warm Cream (same as secondary) */

  /* ── Typography ── */
  --font-main: 'DM Sans', sans-serif;

  /* ── Shape (brand = 24px radius) ── */
  --border-radius:      24px;
  --border-radius-arch: 200px 200px 24px 24px;
  --transition:         all 0.3s ease;

  --max-width: 1280px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.heading-xl { font-size: clamp(3rem, 6vw, 5.5rem); }
.heading-lg { font-size: clamp(2rem, 4vw, 3.5rem); }
.heading-md { font-size: clamp(1.5rem, 3vw, 2.5rem); }
.text-lg { font-size: 1.25rem; line-height: 1.6; }
.text-md { font-size: 1rem; line-height: 1.6; }

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 5%;
}

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-4 { gap: 2rem; }
.gap-6 { gap: 3rem; }
.gap-8 { gap: 4rem; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Padding/Margin Utilities */
.pt-section { padding-top: 6rem; }
.pb-section { padding-bottom: 6rem; }
.py-section { padding-top: 6rem; padding-bottom: 6rem; }
.my-section { margin-top: 6rem; margin-bottom: 6rem; }
.mt-8 { margin-top: 4rem; }
.mb-8 { margin-bottom: 4rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }

/* Injected Utilities */
.relative { position: relative; }
.absolute { position: absolute; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 36rem; }

.text-center { text-align: center; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.italic { font-style: italic; }

.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-3xl { border-radius: 1.5rem; }

.border-white { border-color: #fff; }
.border-black { border-color: #111; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.pb-6 { padding-bottom: 3rem; }
.border-opacity-30 { border-color: rgba(255,255,255,0.3); }

.drop-shadow-xl { filter: drop-shadow(0 20px 13px rgba(0,0,0,0.4)); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }

.opacity-80 { opacity: 0.8; }
.opacity-90 { opacity: 0.9; }

.w-20 { width: 5rem; }
.h-20 { height: 5rem; }
.w-24 { width: 6rem; }
.h-24 { height: 6rem; }

.hidden { display: none !important; }
.overflow-hidden { overflow: hidden; }

/* Background Color Utilities */
.bg-cream { background-color: var(--bg-primary); }
.bg-teal { background-color: var(--accent-teal); color: var(--text-light); }
.bg-pink { background-color: var(--accent-pink); }
.bg-yellow { background-color: var(--accent-yellow); }
.bg-light-blue { background-color: var(--accent-light-blue); }
.bg-dark { background-color: var(--bg-dark); }
.bg-orange { background-color: var(--accent-orange); }

.border-thin { border: 1px solid #111; }
.border-black { border: 2px solid #111; }

.text-light { color: var(--text-light); }

/* Form Styles */
.input-field {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 9999px;
  border: 1px solid #111;
  background-color: var(--bg-primary);
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.input-field:focus {
  outline: none;
  border-color: var(--accent-orange);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 9999px; /* Pill shape */
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}
.btn-dark:hover {
  background-color: #333;
  transform: translateY(-2px);
}

.btn-orange {
  background-color: var(--accent-orange);
  color: var(--text-light);
}
.btn-orange:hover {
  background-color: #c04e20;
  transform: translateY(-2px);
}

/* Header */
.header {
  position: absolute; /* Or sticky */
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  background-color: transparent;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Logo Image (brand asset) ── */
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
  background-color: transparent;
  /* Increased size and transparent background */
}


/* Footer logo: invert icon to white for dark bg */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.footer-icon {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  display: block;
}
.footer-wordmark {
  font-family: var(--font-main);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: -0.04em;
}

/* ── Hero Tagline ── */
.hero-tagline {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  margin-top: -0.5rem;
  margin-bottom: 2rem;
  opacity: 0.85;
}

/* Nav links hidden — fullscreen overlay handles all navigation */
.nav-links {
  display: none !important;
}

/* ── Header CTA (Get in Touch) ── */
.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.4rem;
  border-radius: 100px;
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-main);
  text-decoration: none;
  transition: background-color 0.3s, transform 0.3s;
  margin-right: 0.75rem;
}
.header-cta:hover {
  background-color: var(--accent-orange);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .header-cta {
    display: none;
  }
}

/* ── Client Logo Marquee ── */
.client-logos {
  padding: 3rem 0;
  overflow: hidden;
  background-color: var(--bg-primary);
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.client-logos-heading {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
  gap: 4rem;
  align-items: center;
}

.marquee-track img {
  height: 32px;
  width: auto;
  opacity: 0.4;
  filter: grayscale(100%);
  transition: opacity 0.3s, filter 0.3s;
  flex-shrink: 0;
}

.marquee-track img:hover {
  opacity: 0.8;
  filter: grayscale(0%);
}

.marquee-track span {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  opacity: 0.25;
  white-space: nowrap;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  margin-bottom: 5px;
  transition: var(--transition);
}

/* ── Floating CTA (bottom-right) ── */
.floating-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--accent-orange);
  color: var(--text-light);
  padding: 0.85rem 1.5rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font-main);
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(216, 92, 39, 0.35);
  z-index: 9998;
  transform: translateY(80px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), 
              opacity 0.4s ease,
              background-color 0.3s ease;
}
.floating-cta.visible {
  transform: translateY(0);
  opacity: 1;
}
.floating-cta:hover {
  background-color: #c04e20;
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(216, 92, 39, 0.45);
}
.floating-cta svg {
  flex-shrink: 0;
}

/* Decorative Shapes & Arch */
.arch-card {
  border-radius: var(--border-radius-arch);
  overflow: hidden;
  position: relative;
}

.squircle-card {
  border-radius: 32px;
  padding: 2.5rem;
}

/* Shapes & Stamps */
.stamp {
  position: absolute;
  z-index: 10;
  /* e.g., gear, cog, round text */
}

/* Footer */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 4rem 0 2rem;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #aaa;
  transition: color 0.3s;
  font-size: 0.9rem;
}
.footer-links a:hover {
  color: var(--text-light);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #aaa;
  color: #aaa;
  transition: var(--transition);
}
.social-links a:hover {
  border-color: var(--text-light);
  color: var(--text-light);
}

/* =====================================================
   ANIMATION & INTERACTION ENHANCEMENTS
   ===================================================== */

/* ====================================================
   PRELOADER
==================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background-color: var(--bg-primary); /* Deep black */
  display: flex;
  align-items: center;
  justify-content: center;
  /* Clip path will be animated by GSAP to wipe it away */
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.preloader-bar-wrapper {
  width: 240px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.preloader-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: var(--accent-orange);
  transform-origin: left;
  transform: scaleX(0);
}

/* ====================================================
   PAGE TRANSITION OVERLAY
==================================================== */

/* ----- Word-wrap reveal (GSAP hero split) ----- */
.word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.word {
  display: inline-block;
}

/* ----- Clip-path reveal initial state ----- */
.heading-lg,
.heading-xl {
  will-change: clip-path, opacity;
}

/* Custom cursor removed — using system cursor for better UX */
a, button, .btn, select { cursor: pointer; }

/* ----- Scroll Progress Bar ----- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-orange), #ff8c42);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 99998;
  border-radius: 0 2px 2px 0;
}

/* ----- Page Transition Overlay ----- */
#page-transition {
  position: fixed;
  inset: 0;
  background-color: var(--bg-dark);
  z-index: 99997;
  transform-origin: bottom center;
  pointer-events: none;
}

/* ----- Header Glass Scrolled State ----- */
.header {
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}
.header--scrolled {
  position: fixed !important;
  background-color: rgba(253, 251, 247, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

/* ----- Toast Notification ----- */
#af-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-main);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  max-width: 360px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.af-toast--success {
  background-color: var(--accent-teal);
  color: var(--text-light);
}
.af-toast--error {
  background-color: #c0392b;
  color: var(--text-light);
}

/* ----- Field Error Styles ----- */
.field-error {
  display: block;
  color: #c0392b;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  padding-left: 1rem;
}
.input--error,
.form-input.input--error {
  border-color: #c0392b !important;
  box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.2);
}

/* ----- Scroll-To-Top Button ----- */
#scroll-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-dark);
  color: var(--text-light);
  border: none;
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
#scroll-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
#scroll-to-top:hover {
  background-color: var(--accent-orange);
}

/* ----- Button Additional States ----- */
.btn-orange-outline {
  background: transparent;
  border: 2px solid var(--accent-orange);
  color: var(--accent-orange);
}
.btn-orange-outline:hover {
  background-color: var(--accent-orange);
  color: var(--text-light);
  transform: translateY(-2px);
}

/* ----- Badge Styles ----- */
.badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}
.badge-orange  { background-color: var(--accent-orange); color: #fff; }
.badge-pink    { background-color: var(--accent-pink); color: #111; }
.badge-yellow  { background-color: var(--accent-yellow); color: #111; }
.badge-light-blue { background-color: var(--accent-light-blue); color: #111; }
.badge-light-orange { background-color: #FCE1C3; color: #111; }

/* ----- Icon Circle ----- */
.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.3);
  will-change: transform;
}
.icon-circle-small {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bg-orange { background-color: var(--accent-orange); }

/* ----- Animated Background (why-us teal section) ----- */
.animated-bg {
  background: linear-gradient(135deg, var(--accent-teal) 0%, #2d6b67 100%);
  color: var(--text-light);
}

/* ----- Nav active link style ----- */
.nav-links a.active {
  color: var(--accent-orange);
}
.nav-links a.active::after {
  width: 100%;
}

/* ----- Btn-lg ----- */
.btn-lg {
  padding: 1.1rem 2.4rem;
  font-size: 1.1rem;
}

/* ----- Nav Button (small tweak) ----- */
.nav-cta {
  font-size: 0.9rem;
  padding: 0.7rem 1.4rem;
}

/* ----- Text utilities ----- */
.text-sm { font-size: 0.9rem; line-height: 1.6; }

/* Responsive */
@media (max-width: 900px) {
  .heading-xl { font-size: 3rem; }
  .grid-cols-4, .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-home, .hero-about, .hero-services, .hero-work, .hero-contact {
    padding-top: 7rem;
  }
  .squircle-card { padding: 2rem; }
  .gap-4 { gap: 1.5rem; }
}

@media (max-width: 768px) {
  .grid-cols-2 { grid-template-columns: 1fr; }
  .grid-cols-4, .grid-cols-3 { grid-template-columns: 1fr; }
  .floating-cta span {
    display: none; /* Show icon only on mobile */
  }
  .floating-cta {
    padding: 1rem;
    border-radius: 50%;
  }
  .footer .container {
    flex-direction: column;
    gap: 2rem;
  }
  .contact-strip .container {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .pt-section { padding-top: 4rem; }
  .pb-section { padding-bottom: 4rem; }
  .py-section { padding-top: 4rem; padding-bottom: 4rem; }
  .my-section { margin-top: 4rem; margin-bottom: 4rem; }
  .heading-xl { font-size: 2.5rem; }
  .heading-lg { font-size: 1.8rem; }
  .squircle-card { padding: 1.5rem; }
}



