@import url('colors.css');

/* ---------- Global reset & helpers ---------- */
* { box-sizing: border-box; }
html { scroll-padding-top: 90px; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Kumbh Sans', sans-serif;
  color: #111827;
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3 { line-height: 1.2; margin: 0 0 .5rem; overflow-wrap: anywhere; }
p { margin: 0 0 1rem; }
a,button { cursor: pointer; }

/* Utilities */
.section { padding: clamp(24px, 6vw, 64px) 0; }
.container { width: min(1200px, 92%); margin-inline: auto; }
.longbar { width: 100%; height: 1px; background: #e6edf2; display: block; }

.h1 { font-size: clamp(26px, 5vw, 42px); background-image: var(--grad-txt); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
.h2 { font-size: clamp(22px, 4.2vw, 36px); background-image: var(--grad-txt); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
.h3 { font-size: clamp(18px, 3.4vw, 24px); color: #111827; }

.lead { font-size: clamp(16px, 2.6vw, 20px); color: #4b5563; }
.muted { color: #4b5563; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; text-decoration: none;
  background-image: var(--grad-btn);
  padding: 12px 18px; border-radius: 12px;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
  outline: 1px solid rgba(0,0,0,.06);
}
.btn:hover { filter: brightness(1.08); box-shadow: 0 10px 28px rgba(17,24,39,.18); transform: translateY(-1px); }
.btn.small { padding: 10px 14px; font-size: 0.95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- Navbar ---------- */
.navbar {
  height: 90px;
  position: sticky; top: 0; z-index: 999;
  background: #fff; border-bottom: 1px solid #e6edf2;
  display: flex; align-items: center; justify-content: center;
}
.navbar-container {
  width: min(1200px, 92%); height: 90px; display: flex;
  align-items: center; justify-content: space-between;
}
#navbar-logo .logo {
  font-size: 1.9rem; font-weight: 800;
  background-image: var(--grad-txt); -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  transition: transform .2s ease, filter .2s ease;
}
#navbar-logo .logo:hover { transform: scale(1.05); filter: brightness(1.1); }

.navbar-menu-center, .navbar-menu-right {
  display: flex; align-items: center; list-style: none; gap: .5rem; margin: 0; padding: 0;
}
.navbar-links {
  color: #111827; padding: .5rem .75rem; border-radius: 8px; text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.navbar-links:hover { background: #f6f9fb; transform: translateY(-1px); }

.navbar-item-btn { margin-left: .5rem; }
.navbar-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .95rem; font-weight: 700; color: #fff; text-decoration: none;
  background-image: var(--grad-btn); padding: 10px 16px; border-radius: 10px;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
  outline: 1px solid rgba(0,0,0,.06);
}
.navbar-btn:hover { filter: brightness(1.08); box-shadow: 0 8px 22px rgba(0,0,0,.15); transform: translateY(-1px); }

/* Mobile nav */
.navbar-toggle { display: none; background: transparent; border: 0; }
.navbar-toggle .bar { width: 25px; height: 3px; margin: 5px; background: #111827; transition: transform .1s ease, opacity .1s ease; }

@media (max-width: 960px) {
  .navbar-toggle { display: block; }
  .navbar-menu-center {
    position: absolute; left: 0; right: 0; top: -1000px;
    background: #fff; border-bottom: 1px solid #e6edf2;
    display: flex; flex-direction: column; gap: 0; padding: .5rem 0;
    transition: top .35s ease; z-index: 99;
  }
  .navbar-menu-center.active { top: 90px; }
  #mobile-menu.is-active .bar:nth-child(2){ opacity: 0; }
  #mobile-menu.is-active .bar:nth-child(1){ transform: translateY(8px) rotate(45deg); }
  #mobile-menu.is-active .bar:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- Home ---------- */
.two-col {
  display: grid; gap: clamp(16px, 5vw, 48px);
  grid-template-columns: 1fr;
}
.two-col.reverse { grid-template-columns: 1fr; }
.home-image { order: -1; }

@media (min-width: 900px) {
  .two-col { grid-template-columns: 1.1fr .9fr; align-items: center; }
  .two-col.reverse { grid-template-columns: .9fr 1.1fr; }
  .home-image { order: initial; }
}

.home-image img { border-radius: 14px; box-shadow: var(--radial-shadow-gray); }

/* ---------- About ---------- */
.about-image img { border-radius: 14px; box-shadow: var(--radial-shadow-gray); }

/* ---------- Services ---------- */
.section-head { text-align: center; margin-bottom: clamp(16px, 4vw, 28px); }
.card-grid {
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 980px) {
  .card-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

.card {
  background: var(--bg-black1); color: #fff; border-radius: 14px;
  padding: 18px 16px 22px; box-shadow: var(--box-shadow-black);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0,0,0,.28); }
.card .card-icon {
  width: 120px; height: auto; padding: 14px; border-radius: 12px; background: var(--bg-black2);
  margin-bottom: 10px; box-shadow: var(--radial-shadow-gray);
}
.card h3 { background: var(--grad-txt); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
.card p { color: #fff; opacity: .95; }
.card .btn.small { margin-top: auto; }

/* ---------- Contact ---------- */
.contact .contact-wrap {
  display: grid; gap: 18px; grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .contact .contact-wrap { grid-template-columns: .8fr 1.2fr; }
}
.social {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.social a {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid #dbe7ee;
  display: inline-flex; align-items: center; justify-content: center; color: #111827;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.social a:hover { background:#f6f9fb; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(17,24,39,.08); }

.form {
  background: #f6f9fb; border: 1px solid #e6edf2; border-radius: 12px;
  padding: 16px; box-shadow: 0 6px 20px rgba(17,24,39,0.06);
}
.row.two { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .row.two { grid-template-columns: 1fr 1fr; } }

.field input, .field textarea {
  width: 100%; border: 1px solid #dbe7ee; background: #fff; color: #111827;
  border-radius: 10px; padding: 12px; font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input::placeholder, .field textarea::placeholder { color: #6b7280; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: #7da7b2; box-shadow: 0 0 0 3px rgba(125,167,178,.30);
}

.checkbox { display: flex; gap: 10px; align-items: center; margin: 8px 0 12px; }
.checkbox input { width: 18px; height: 18px; accent-color: #7da7b2; }

/* ---------- Footer ---------- */
footer { text-align: center; padding: 1.25rem 0; background: #fff; border-top: 1px solid #e6edf2; }
footer p { color: #111827; }

/* ---------- Back to top ---------- */
#progress{ position: fixed; z-index: 1000; bottom: 60px; right: 10px; width: 50px; height: 50px; display: none; place-items: center; border-radius: 50%; color: #1d002c; cursor: pointer; box-shadow: rgba(50,50,93,0.25) 0 50px 100px -20px, rgba(0,0,0,0.3) 0 30px 60px -30px, rgba(10,37,64,0.35) 0 -2px 6px 0 inset; }
#progress-value{ display: grid; height: calc(100% - 12px); width: calc(100% - 12px); background: var(--gradient-color-bg); border-radius: 50%; color: #fff; place-items: center; font-size: 25px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
