/* =========================================================================
   UrbanLink ITS Consultancy — Global Styles
   Brand tokens, shared components (nav, hero, cards, CTA, footer),
   and responsive rules. Matches Website Design Handover Package (2026).
   ========================================================================= */

:root {
  /* Primary brand colors */
  --navy:        #0A1628;  /* backgrounds, headlines, nav, footer */
  --green:       #4CAF50;  /* CTAs, accents, dividers, highlights */
  --blue:        #1565C0;  /* icon accents, secondary highlights */
  --white:       #FFFFFF;

  /* Supporting colors */
  --section-bg:  #F8F9FA;  /* alternating section backgrounds */
  --light-blue:  #7FB3D3;  /* sub-text on navy */
  --text-body:   #666666;  /* subtitles, descriptions */
  --text-main:   #333333;  /* main paragraph text */
  --border:      #ECECEC;  /* card outlines */

  /* Layout tokens */
  --max-width:   1100px;
  --radius-card: 8px;
  --radius-frame:12px;
  --gap-grid:    14px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text-main);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container { max-width: var(--max-width); margin: 0 auto; }

/* ------------------------------------------------------------------ NAV */
.nav {
  background: var(--white);
  border-bottom: 1px solid #eaeaea;
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { height: 48px; width: auto; }
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: #555;
  font-weight: 500;
}
.nav-links a { padding-bottom: 4px; transition: color .15s ease; }
.nav-links a:hover { color: var(--navy); }
.nav-links a.active {
  color: var(--navy);
  border-bottom: 2px solid var(--green);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 40px;
  height: 40px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------- BUTTONS */
.btn {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: var(--white); border: 1.5px solid var(--green); }
.btn-primary:hover { box-shadow: 0 6px 16px rgba(76,175,80,.35); }
.btn-secondary { border: 1.5px solid var(--green); color: var(--green); background: transparent; }
.btn-secondary:hover { background: rgba(76,175,80,.08); }

/* ------------------------------------------------------------------ HERO */
.hero {
  background: var(--navy);
  padding: 56px 32px 64px;
  text-align: center;
  color: var(--white);
}
.hero-logo { height: 130px; width: auto; margin: 0 auto 22px; }
.hero h1 { font-size: 32px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.3px; }
.hero p { font-size: 15px; color: var(--light-blue); margin-bottom: 26px; }
.btn-group { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Page hero (About / Solutions / Contact) */
.page-hero {
  background: var(--navy);
  padding: 64px 56px;
  color: var(--white);
  text-align: center;
}
.page-hero h1 { font-size: 36px; font-weight: 600; margin-bottom: 10px; line-height: 1.2; }
.page-hero .sub { font-size: 16px; color: var(--green); font-weight: 500; }
.page-hero .sub.muted { color: var(--light-blue); }

/* ----------------------------------------------------------- ABOUT STRIP */
.about-strip {
  padding: 48px 32px;
  background: var(--white);
  text-align: center;
}
.about-strip h2 { font-size: 22px; font-weight: 600; color: var(--navy); margin-bottom: 12px; }
.about-strip p {
  font-size: 15px; color: #555; line-height: 1.7;
  max-width: 620px; margin: 0 auto;
}

/* --------------------------------------------------------- SOLUTIONS HDR */
.sol-header { padding: 32px 32px 8px; background: var(--white); text-align: center; }
.sol-label {
  font-size: 11px; color: #888; letter-spacing: 2.5px;
  font-weight: 600; margin-bottom: 8px; text-transform: uppercase;
}
.sol-title { font-size: 22px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.sol-sub { font-size: 13px; color: var(--text-body); }

/* -------------------------------------------------- SOLUTION CATEGORIES */
.sol-cat { padding: 44px 32px; }
.sol-cat.bg-alt { background: var(--section-bg); }
.sol-cat.bg-white { background: var(--white); }
.sol-cat-head {
  max-width: 800px; margin: 0 auto 28px;
  display: flex; align-items: flex-start; gap: 16px;
}
.sol-cat-icon { font-size: 32px; flex-shrink: 0; line-height: 1; }
.sol-cat-title { font-size: 19px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.sol-cat-desc { font-size: 13px; color: var(--text-body); line-height: 1.5; }

.sol-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-grid);
  max-width: var(--max-width);
  margin: 0 auto;
}
.sol-grid.center { grid-template-columns: repeat(3, minmax(0, 248px)); justify-content: center; }

.sol-item {
  background: var(--white);
  padding: 22px 14px;
  border-radius: var(--radius-card);
  border: 1px solid #ececec;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.sol-item:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(10,22,40,.08); }
.sol-item .icon { font-size: 32px; line-height: 1; }
.sol-item .icon.green { color: var(--green); }
.sol-item .icon.blue { color: var(--blue); }
.sol-item .label { font-size: 13px; color: var(--navy); margin-top: 10px; font-weight: 600; }

/* ------------------------------------------------------------------- CTA */
.cta {
  padding: 44px 32px;
  background: var(--green);
  text-align: center;
  color: var(--white);
}
.cta h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.cta p { font-size: 13px; opacity: 0.92; margin-bottom: 18px; max-width: 620px; margin-left: auto; margin-right: auto; }
.cta-btn {
  display: inline-block;
  background: var(--white);
  color: var(--navy);
  padding: 11px 28px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.18); }

/* ---------------------------------------------------------------- FOOTER */
.footer {
  padding: 22px 32px;
  background: var(--navy);
  color: var(--light-blue);
  font-size: 12px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-left { display: flex; align-items: center; gap: 14px; }
.footer-logo { height: 32px; width: auto; border-radius: 4px; }
.footer-links { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.footer-links a:hover { color: var(--white); }
.footer .dot { color: var(--green); }

/* ------------------------------------------------------------ ABOUT PAGE */
.ab-section { padding: 56px max(32px, calc((100% - var(--max-width)) / 2)); background: var(--white); }
.ab-section.alt { background: var(--section-bg); }
.ab-section h2 { font-size: 26px; font-weight: 600; color: var(--navy); margin-bottom: 16px; }
.ab-section h2::after {
  content: ''; display: block; width: 50px; height: 3px;
  background: var(--green); margin-top: 10px;
}
.ab-section p {
  font-size: 14.5px; color: #444; line-height: 1.75;
  max-width: 760px; margin-bottom: 12px;
}
.ab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 24px; }
.ab-card {
  background: var(--white);
  padding: 22px 24px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  transition: transform .15s ease, box-shadow .15s ease;
}
.ab-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(10,22,40,.07); }
.ab-card h3 {
  font-size: 16px; color: var(--navy); font-weight: 600; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.ab-card p { font-size: 13px; color: #555; line-height: 1.6; margin: 0; max-width: none; }

.country-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.country-chip {
  background: var(--white);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--navy);
}
.country-chip .flag { margin-right: 6px; }

/* ---------------------------------------------------------- CONTACT PAGE */
.ct-page { background: var(--white); padding: 56px; }
.ct-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  max-width: 980px;
  margin: 0 auto;
}
.ct-info { background: var(--navy); color: var(--white); padding: 36px; border-radius: 10px; }
.ct-info h3 { font-size: 22px; margin-bottom: 8px; }
.ct-info .ct-sub { font-size: 13px; color: var(--light-blue); margin-bottom: 28px; }
.ct-info-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.ct-icon {
  width: 36px; height: 36px; background: var(--green);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 16px;
}
.ct-info-label { font-size: 11px; color: var(--light-blue); letter-spacing: 1px; font-weight: 600; }
.ct-info-val { font-size: 14px; color: var(--white); margin-top: 2px; }
.ct-info-val a:hover { color: var(--green); }

.ct-form h3 { font-size: 22px; color: var(--navy); margin-bottom: 8px; }
.ct-form .ct-sub { font-size: 13px; color: var(--text-body); margin-bottom: 24px; }
.ct-field { margin-bottom: 16px; }
.ct-field label { display: block; font-size: 12px; color: #555; font-weight: 600; margin-bottom: 6px; }
.ct-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #DDD;
  border-radius: 6px;
  background: #FAFAFA;
  font-size: 13px;
  color: var(--text-main);
  font-family: var(--font);
  transition: border-color .15s ease, background .15s ease;
}
.ct-input::placeholder { color: #999; }
.ct-input:focus { outline: none; border-color: var(--green); background: var(--white); }
textarea.ct-input { height: 110px; resize: vertical; }
.ct-input.invalid { border-color: #E53935; background: #FFF5F5; }
.ct-error { color: #E53935; font-size: 11px; margin-top: 4px; display: none; }
.ct-error.show { display: block; }
.ct-submit {
  background: var(--green); color: var(--white);
  padding: 12px 26px; border: none; border-radius: 6px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.ct-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(76,175,80,.35); }
.ct-success {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  background: #E8F5E9;
  border-left: 4px solid var(--green);
  border-radius: 0 4px 4px 0;
  font-size: 13px;
  color: #2E7D32;
}
.ct-success.show { display: block; }

/* -------------------------------------------------------- SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .sol-item:hover, .ab-card:hover, .cta-btn:hover, .ct-submit:hover { transform: none; }
}

/* ============================================================ RESPONSIVE */

/* Tablet: solutions grid 4 -> 2 columns */
@media (max-width: 900px) {
  .sol-grid { grid-template-columns: repeat(2, 1fr); }
  .sol-grid.center { grid-template-columns: repeat(2, minmax(0, 248px)); }
  .ab-grid { grid-template-columns: 1fr; }
  .ct-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 30px; }
}

/* Mobile: single column, hamburger nav */
@media (max-width: 640px) {
  .nav-inner { padding: 12px 20px; position: relative; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid #eaeaea;
    box-shadow: 0 8px 16px rgba(0,0,0,.06);
    padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 24px;
    border-bottom: none;
  }
  .nav-links a.active { border-bottom: none; border-left: 3px solid var(--green); }

  .hero { padding: 40px 20px 48px; }
  .hero-logo { height: 96px; }
  .hero h1 { font-size: 25px; }
  .btn-group { display: flex; flex-direction: column; align-items: stretch; width: 100%; max-width: 280px; margin: 0 auto; }
  .btn { text-align: center; }

  .page-hero { padding: 44px 24px; }
  .page-hero h1 { font-size: 26px; }

  .sol-grid, .sol-grid.center { grid-template-columns: 1fr; }
  .sol-cat { padding: 36px 20px; }
  .about-strip { padding: 36px 20px; }

  .ab-section { padding: 40px 24px; }
  .ct-page { padding: 40px 20px; }
  .ct-info { padding: 28px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}
