/* ============================================================
   House 35 Global Infotech LLP — main.css
   Global: variables, reset, typography, nav, footer, trust bar
   ============================================================ */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* ── DESIGN TOKENS ── */
:root {
  /* Brand colours */
  --green:        #1D9E75;
  --green-dark:   #0F6E56;
  --green-deep:   #085041;
  --green-light:  #E1F5EE;
  --green-mid:    #9FE1CB;
  --navy:         #042C53;
  --navy-mid:     #0C447C;
  --navy-light:   #E6F1FB;
  --amber:        #EF9F27;
  --amber-light:  #FAEEDA;
  --amber-dark:   #854F0B;
  --purple:       #7F77DD;
  --purple-light: #EEEDFE;
  --purple-dark:  #534AB7;
  --coral:        #D85A30;
  --coral-light:  #FAECE7;
  --pink:         #D4537E;
  --pink-light:   #FBEAF0;

  /* Neutrals */
  --gray-100: #F1EFE8;
  --gray-400: #888780;
  --gray-600: #5F5E5A;
  --gray-900: #2C2C2A;
  --white:    #ffffff;

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Spacing */
  --section-pad: 80px 40px;
  --max-width:   1100px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ── TYPOGRAPHY UTILITIES ── */
.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 15px;
  color: var(--gray-600);
  max-width: 520px;
  line-height: 1.75;
}
.section-header { margin-bottom: 48px; }

/* ── LAYOUT UTILITIES ── */
.section {
  padding: var(--section-pad);
}
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.bg-gray  { background: var(--gray-100); }
.bg-navy  { background: var(--navy); }
.bg-white { background: var(--white); }

/* ── BUTTON UTILITIES ── */
.btn-primary {
  background: var(--green);
  color: var(--white);
  border: 2px solid var(--green);
  border-radius: var(--radius-md);
  padding: 13px 28px;
  font-size: 15px;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover  { background: var(--green-dark); border-color: var(--green-dark); }
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid rgba(4,44,83,0.2);
  border-radius: var(--radius-md);
  padding: 13px 28px;
  font-size: 15px;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.15s, background 0.15s;
}
.btn-secondary:hover { border-color: var(--navy); background: var(--navy-light); }

.btn-white {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--white);
  border-radius: var(--radius-md);
  padding: 13px 28px;
  font-size: 15px;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.15s;
}
.btn-white:hover { background: var(--green-light); border-color: var(--green-light); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-md);
  padding: 13px 28px;
  font-size: 15px;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.15s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.7); }

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33%      { transform: translate(30px, -50px) rotate(4deg); }
  66%      { transform: translate(-20px, 20px) rotate(-2deg); }
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-40px, 40px); }
}

/* ── REVEAL ON SCROLL ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), 
              transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── GLOBAL TECHNICAL AESTHETIC (Grid) ── */
.section, .page-hero, .article-hero {
  position: relative;
  background-color: var(--white);
  background-image: 
    linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px);
  background-size: 30px 30px;
}
/* Alignment markers for major sections */
.section::before, .page-hero::before {
  content: '+';
  position: absolute; top: 20px; left: 20px;
  font-family: 'Courier New', monospace; font-size: 14px;
  color: rgba(0,0,0,0.1); pointer-events: none; z-index: 1;
}
.section::after, .page-hero::after {
  content: '+';
  position: absolute; top: 20px; right: 20px;
  font-family: 'Courier New', monospace; font-size: 14px;
  color: rgba(0,0,0,0.1); pointer-events: none; z-index: 1;
}

/* Sections with solid backgrounds should hide the grid */
.bg-navy, .bg-gray {
  background-image: none !important;
}
.article-hero {
  background-image: none;
}
.bg-navy::before, .bg-navy::after, 
.bg-gray::before, .bg-gray::after { display: none; }

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px rgba(4, 44, 83, 0.05);
}

/* ── NAVIGATION ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 64px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(29,158,117,0.12);
  transition: box-shadow 0.2s;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(4,44,83,0.08); }

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700; font-size: 17px;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.nav-logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 13px; font-weight: 700;
  font-family: var(--font-display);
  flex-shrink: 0;
}

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 14px; color: var(--gray-600);
  text-decoration: none; font-weight: 400;
  transition: color 0.15s;
  position: relative;
}
.nav-links a:hover { color: var(--green-dark); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: flex; align-items: center; gap: 4px;
  font-size: 14px; color: var(--gray-600);
  text-decoration: none; font-weight: 400;
  cursor: pointer; background: none; border: none;
  font-family: var(--font-body);
  transition: color 0.15s;
}
.nav-dropdown-toggle:hover { color: var(--green-dark); }
.nav-dropdown-toggle svg { transition: transform 0.2s; }
.nav-dropdown:hover .nav-dropdown-toggle svg { transform: rotate(180deg); }

.nav-dropdown-menu {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s 0.18s, visibility 0s 0.18s;
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-lg);
  padding: 8px;
  min-width: 200px;
  box-shadow: 0 12px 32px rgba(4,44,83,0.12);
  z-index: 200;
}
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-dropdown:hover .nav-dropdown-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.12s 0s, visibility 0s 0s;
}
.nav-dropdown-menu a {
  display: block; padding: 9px 14px;
  font-size: 13px; color: var(--gray-600);
  text-decoration: none; border-radius: var(--radius-sm);
  transition: background 0.1s, color 0.1s;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--green-light); color: var(--green-dark); }

.nav-cta {
  background: var(--green); color: var(--white);
  border: none; border-radius: var(--radius-sm);
  padding: 9px 20px; font-size: 14px;
  font-family: var(--font-body); font-weight: 500;
  cursor: pointer; text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  display: inline-block;
}
.nav-cta:hover  { background: var(--green-dark); }
.nav-cta:active { transform: scale(0.97); }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--gray-900); border-radius: 2px;
  transition: all 0.2s;
}

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--gray-100);
  padding: 20px 24px; flex-direction: column; gap: 4px;
  z-index: 99; max-height: calc(100vh - 64px); overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 15px; color: var(--gray-600); text-decoration: none;
  font-weight: 400; padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .mobile-section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gray-400);
  padding: 14px 0 4px; margin-top: 4px;
}

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--navy); padding: 18px 40px;
  display: flex; align-items: center; justify-content: center;
  gap: 48px; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,0.7); font-weight: 400;
}
.trust-item svg { opacity: 0.6; flex-shrink: 0; }

/* ── CTA STRIP ── */
.cta-strip {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--navy) 100%);
  padding: 72px 40px; text-align: center;
}
.cta-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700; color: var(--white);
  margin-bottom: 14px; letter-spacing: -0.025em;
}
.cta-strip p {
  font-size: 16px; color: rgba(255,255,255,0.65);
  margin-bottom: 36px; max-width: 480px;
  margin-left: auto; margin-right: auto;
}
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
footer { background: var(--gray-900); padding: 48px 40px 28px; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 16px; color: var(--white); letter-spacing: -0.02em;
  text-decoration: none;
}
.footer-logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--green); display: flex; align-items: center;
  justify-content: center; color: var(--white);
  font-size: 12px; font-weight: 700; font-family: var(--font-display);
  flex-shrink: 0;
}
.footer-desc { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.7; max-width: 260px; }
.footer-reg  { font-size: 11px; color: rgba(255,255,255,0.3); margin-top: 4px; }

/* Social links */
.footer-social { display: flex; gap: 10px; margin-top: 8px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.footer-social a:hover { background: var(--green); color: var(--white); }

.footer-col h5 {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 13px; color: rgba(255,255,255,0.45);
  text-decoration: none; margin-bottom: 10px; transition: color 0.15s;
}
.footer-col a:hover { color: var(--green-mid); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
  font-size: 12px; color: rgba(255,255,255,0.3);
  text-decoration: none; transition: color 0.15s;
}
.footer-legal a:hover { color: rgba(255,255,255,0.6); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 120px 40px 60px;
  background: var(--white);
  position: relative; overflow: hidden;
}
.page-hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.3;
}
.page-hero-inner {
  max-width: var(--max-width); margin: 0 auto;
  position: relative; z-index: 1;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.page-hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--green-light); border: 1px solid var(--green-mid);
  border-radius: 20px; padding: 5px 14px;
  font-size: 12px; color: var(--green-deep);
  font-weight: 500; margin-bottom: 20px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700; line-height: 1.1;
  color: var(--navy); letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 16px; color: var(--gray-600);
  line-height: 1.75; max-width: 560px;
  margin: 0 auto;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; color: var(--gray-400);
  margin-bottom: 20px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--green); text-decoration: none; }
.breadcrumb a:hover { color: var(--green-dark); }
.breadcrumb-sep { opacity: 0.4; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .trust-bar { gap: 20px; padding: 14px 20px; }
  .cta-strip { padding: 52px 20px; }
  footer { padding-left: 20px; padding-right: 20px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  :root { --section-pad: 56px 20px; }
  .nav { padding: 0 20px; }
  .page-hero { padding: 100px 20px 48px; }
  .footer-top { grid-template-columns: 1fr; }
  .trust-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
}
