/* ===========================================================
   Garhwal Tech Solutions — Main Stylesheet
   =========================================================== */
:root {
  --gt-navy: #0b2545;
  --gt-blue: #1565d8;
  --gt-teal: #0fb9b1;
  --gt-ink: #10182b;
  --gt-slate: #5b6b82;
  --gt-mist: #f4f7fb;
  --gt-line: #e4e9f2;
  --gt-white: #ffffff;
  --gt-amber: #f5a524;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(11,37,69,.06);
  --shadow-md: 0 12px 30px rgba(11,37,69,.10);
  --shadow-lg: 0 24px 60px rgba(11,37,69,.16);
}

* { box-sizing: border-box; }

html { overflow-x: hidden; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gt-ink);
  background: var(--gt-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .display-font {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 600;
  color: var(--gt-navy);
  letter-spacing: -0.01em;
}

a { text-decoration: none; color: var(--gt-blue); }
img { max-width: 100%; display: block; }

.container-xl { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }
.bg-mist { background: var(--gt-mist); }
.bg-navy { background: var(--gt-navy); color: #cfe0f7; }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: var(--gt-white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gt-teal); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--gt-teal); display: inline-block; }

.section-title { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 16px; }
.section-lead { color: var(--gt-slate); font-size: 17px; max-width: 640px; }
.text-center .section-lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn-gt-primary, .btn-gt-outline, .btn-gt-light {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: all .2s ease; border: 2px solid transparent; white-space: nowrap;
}
.btn-gt-primary { background: linear-gradient(135deg, var(--gt-blue), var(--gt-teal)); color: #fff; }
.btn-gt-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: #fff; }
.btn-gt-outline { border-color: var(--gt-line); color: var(--gt-navy); }
.btn-gt-outline:hover { border-color: var(--gt-blue); color: var(--gt-blue); }
.bg-navy .btn-gt-outline { border-color: rgba(255,255,255,.3); color: #fff; }
.bg-navy .btn-gt-outline:hover { border-color: #fff; }
.btn-gt-light { background: #fff; color: var(--gt-navy); }
.btn-gt-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--gt-navy); }

/* Navbar */
.gt-navbar { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--gt-line); transition: box-shadow .25s ease; }
.gt-navbar.scrolled { box-shadow: 0 4px 20px rgba(11,37,69,.08); }
.gt-navbar .navbar-brand { display: flex; align-items: center; gap: 10px; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 20px; color: var(--gt-navy); }
.gt-navbar .navbar-brand .logo-mark { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, var(--gt-blue), var(--gt-teal)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; }
.gt-navbar .nav-link { font-weight: 500; color: var(--gt-ink); padding: 8px 16px !important; }
.gt-navbar .nav-link.active, .gt-navbar .nav-link:hover { color: var(--gt-blue); }

/* Hero */
.hero { position: relative; padding: 100px 0 80px; background: radial-gradient(circle at 80% 0%, #eaf3ff 0%, var(--gt-white) 55%); overflow: hidden; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; max-width: 100%; background: #eaf6f5; color: #0a8f88; padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 20px; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.12; margin-bottom: 22px; }
.hero .lead { font-size: 18px; color: var(--gt-slate); max-width: 560px; margin-bottom: 32px; }
.hero-stats { display: flex; gap: 34px; margin-top: 50px; flex-wrap: wrap; }
.hero-stats .num { font-family: 'Poppins', sans-serif; font-size: 30px; font-weight: 700; color: var(--gt-navy); }
.hero-stats .label { font-size: 13px; color: var(--gt-slate); }
.hero-art { position: relative; }
.hero-art .card-float { position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 16px 20px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; z-index: 3; }

/* Hero product mockup — abstract dashboard composition (no stock imagery) */
.hero-mockup { position: relative; padding: 30px 20px 70px; }
.hero-mockup::before {
  content: ''; position: absolute; inset: 40px -10px 90px 30px; z-index: 0;
  background: radial-gradient(120% 120% at 30% 20%, rgba(21,101,216,.12), transparent 60%),
              radial-gradient(120% 120% at 80% 80%, rgba(15,185,177,.14), transparent 60%);
  border-radius: 32px;
}
.mockup-browser {
  position: relative; z-index: 1; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--gt-line); overflow: hidden;
}
.mockup-browser-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--gt-mist); border-bottom: 1px solid var(--gt-line); }
.mockup-browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d7dfec; }
.mockup-browser-bar span:nth-child(1) { background: #f5a524; }
.mockup-browser-bar span:nth-child(2) { background: #0fb9b1; }
.mockup-browser-body { padding: 26px 26px 30px; background: linear-gradient(180deg, #fff, #fbfdff); }
.mockup-row { display: flex; gap: 14px; margin-bottom: 22px; }
.mockup-stat { flex: 1; background: var(--gt-mist); border-radius: 12px; padding: 14px 16px; }
.mockup-stat-num { font-family: 'Poppins', 'Inter', sans-serif; font-weight: 700; font-size: 20px; color: var(--gt-navy); }
.mockup-stat-label { font-size: 12px; color: var(--gt-slate); margin-top: 2px; }
.mockup-chart { display: flex; align-items: flex-end; gap: 10px; height: 90px; padding: 0 2px; }
.mockup-chart .bar { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--gt-teal), var(--gt-blue)); opacity: .85; }
.mockup-chat-card {
  position: absolute; z-index: 2; right: -10px; bottom: 10px; background: #fff; border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 14px 18px; display: flex; align-items: center; gap: 12px; max-width: 250px;
}
.mockup-chat-card .chat-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: #e4faf0; color: #1fae67; display: flex;
  align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.mockup-chat-card .chat-text { font-size: 13px; line-height: 1.4; }
.mockup-chat-card .chat-text strong { color: var(--gt-navy); display: block; font-size: 13.5px; }

/* Rich text content (from the admin WYSIWYG editor) */
.rte-content, .blog-content { color: var(--gt-ink); }
.rte-content p, .blog-content p { margin-bottom: 1em; }
.rte-content ul, .rte-content ol, .blog-content ul, .blog-content ol { margin-bottom: 1em; padding-left: 1.4em; }
.rte-content h1, .rte-content h2, .rte-content h3, .blog-content h1, .blog-content h2, .blog-content h3 { margin-top: 1.2em; margin-bottom: .5em; }
.rte-content img, .blog-content img { max-width: 100%; border-radius: 10px; margin: 1em 0; }
.rte-content a, .blog-content a { text-decoration: underline; }

/* Scroll-reveal micro-interaction */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Cards */
.gt-card { background: #fff; border: 1px solid var(--gt-line); border-radius: var(--radius); padding: 32px 28px; height: 100%; transition: all .25s ease; }
.gt-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.gt-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 22px; background: linear-gradient(135deg, #eaf3ff, #e4faf8); color: var(--gt-blue); }
.gt-card h3 { font-size: 20px; margin-bottom: 12px; }
.gt-card p { color: var(--gt-slate); font-size: 15px; margin-bottom: 0; }
.gt-card .learn-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600; font-size: 14px; }

/* Process / numbered steps */
.step-card { position: relative; padding-left: 8px; }
.step-num { font-family: 'Poppins', sans-serif; font-size: 42px; font-weight: 700; color: transparent; -webkit-text-stroke: 1.5px var(--gt-line); margin-bottom: 10px; }

/* Portfolio */
.portfolio-card { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--gt-line); transition: all .25s ease; }
.portfolio-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.portfolio-thumb { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--gt-navy), var(--gt-blue)); display: flex; align-items: center; justify-content: center; color: #fff; font-family: 'Poppins', 'Inter', sans-serif; font-weight: 700; font-size: 22px; text-align: center; padding: 20px; }
.portfolio-body { padding: 22px 24px; }
.tag-pill { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--gt-teal); background: #e4faf8; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }

/* Blog */
.blog-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gt-line); background: #fff; height: 100%; transition: all .25s ease; }
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.blog-thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, #eaf3ff, #e4faf8); display: flex; align-items: center; justify-content: center; color: var(--gt-blue); font-size: 34px; }
.blog-body { padding: 24px; }
.blog-meta { font-size: 13px; color: var(--gt-slate); margin-bottom: 10px; }
.blog-body h3 { font-size: 19px; margin-bottom: 10px; }

/* Testimonials */
.testimonial-card { background: #fff; border: 1px solid var(--gt-line); border-radius: var(--radius); padding: 30px; height: 100%; display: flex; flex-direction: column; }
.testimonial-card .stars { color: var(--gt-amber); margin-bottom: 14px; }
.testimonial-card p { flex-grow: 1; }
.testimonial-who-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.testimonial-logo { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; border: 1px solid var(--gt-line); flex-shrink: 0; }
.testimonial-card .who { font-weight: 700; color: var(--gt-navy); }
.testimonial-card .who span { display: block; font-weight: 400; font-size: 13px; color: var(--gt-slate); }
.testimonial-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--gt-blue); text-decoration: none; }
.testimonial-link:hover { text-decoration: underline; }

/* Seamless auto-scroll marquee for testimonials, used only when there are
   more testimonials than fit in one row. The track holds the testimonial
   set twice; animating it left by exactly -50% loops without any visible
   jump, since copy #2 lines up perfectly where copy #1 began. */
.testimonial-scroller { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.testimonial-track { display: flex; gap: 24px; width: max-content; padding: 0 24px; animation: testimonial-scroll linear infinite; animation-duration: calc(var(--tcount, 6) * 6s); }
.testimonial-scroller:hover .testimonial-track { animation-play-state: paused; }
.testimonial-slide { width: 340px; flex-shrink: 0; }
@keyframes testimonial-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .testimonial-track { animation: none; } }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--gt-navy), #123a6e); border-radius: 28px; padding: 60px; color: #fff; text-align: center; }

/* Country code picker (searchable) */
.phone-field { display: flex; gap: 8px; }
.country-picker { position: relative; flex: 0 0 132px; }
.country-picker-btn {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 6px;
  border: 1.5px solid var(--gt-line); border-radius: 10px; padding: 13px 12px; background: #fff;
  font-size: 15px; cursor: pointer; color: var(--gt-ink);
}
.country-picker-btn:focus { outline: none; border-color: var(--gt-blue); box-shadow: 0 0 0 4px rgba(21,101,216,.1); }
.country-picker-btn .flag { font-size: 18px; line-height: 1; }
.country-picker-btn .dial { font-weight: 600; white-space: nowrap; }
.country-picker-panel {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 50;
  width: 300px; max-width: 90vw; background: #fff; border: 1px solid var(--gt-line); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 10px; max-height: 320px; display: none; flex-direction: column;
}
.country-picker.open .country-picker-panel { display: flex; }
.country-picker-search {
  width: 100%; border: 1.5px solid var(--gt-line); border-radius: 8px; padding: 9px 12px; font-size: 14px; margin-bottom: 8px;
}
.country-picker-search:focus { outline: none; border-color: var(--gt-blue); }
.country-picker-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; }
.country-picker-list li {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 14px;
}
.country-picker-list li:hover, .country-picker-list li.active { background: var(--gt-mist); }
.country-picker-list .flag { font-size: 18px; }
.country-picker-list .cname { flex: 1; }
.country-picker-list .cdial { color: var(--gt-slate); font-size: 13px; }
.country-picker-empty { text-align: center; color: var(--gt-slate); font-size: 13px; padding: 16px 0; }

/* Forms */
.gt-form .form-control, .gt-form .form-select { border: 1.5px solid var(--gt-line); border-radius: 10px; padding: 13px 16px; font-size: 15px; }
.gt-form .form-control:focus, .gt-form .form-select:focus { border-color: var(--gt-blue); box-shadow: 0 0 0 4px rgba(21,101,216,.1); }
.gt-form label { font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--gt-navy); }

/* Footer */
.gt-footer { background: var(--gt-navy); color: #b9caea; padding: 70px 0 24px; }
.newsletter-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 18px;
  padding: 28px 32px; margin-bottom: 46px;
}
.newsletter-band h4 { color: #fff; font-size: 19px; }
.newsletter-band p { color: #b9caea; font-size: 14px; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form .form-control { min-width: 220px; border-radius: 999px; border: none; padding: 12px 18px; }
.newsletter-form .btn-gt-primary { padding: 12px 24px; white-space: nowrap; }
@media (max-width: 576px) { .newsletter-band { flex-direction: column; align-items: stretch; text-align: center; } .newsletter-form { flex-direction: column; } }
.gt-footer h5 { color: #fff; font-size: 16px; margin-bottom: 20px; }
.gt-footer a { color: #b9caea; }
.gt-footer a:hover { color: #fff; }
.gt-footer .footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: 'Poppins', 'Inter', sans-serif; font-weight: 700; font-size: 20px; margin-bottom: 16px; }
.gt-footer ul { list-style: none; padding: 0; margin: 0; }
.gt-footer li { margin-bottom: 10px; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 46px; padding-top: 22px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.social-icons { display: flex; gap: 10px; }
.social-icons a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.social-icons a:hover { background: var(--gt-blue); }

/* Page header (inner pages) */
.page-header { padding: 60px 0 50px; background: linear-gradient(160deg, #eaf3ff 0%, var(--gt-white) 70%); }
.breadcrumb-gt { font-size: 14px; color: var(--gt-slate); }
.breadcrumb-gt a { color: var(--gt-slate); }
.breadcrumb-gt .current { color: var(--gt-blue); font-weight: 600; }

/* Utility */
.badge-soft { background: #eaf6f5; color: #0a8f88; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.divider-line { height: 1px; background: var(--gt-line); border: none; margin: 40px 0; }
.avatar-circle { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--gt-blue), var(--gt-teal)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; }

.alert-gt-success { background: #e4faf0; color: #0a7a4f; border: 1px solid #b9ecd5; border-radius: 10px; padding: 16px 20px; }
.alert-gt-error { background: #fdecec; color: #b3261e; border: 1px solid #f6c8c6; border-radius: 10px; padding: 16px 20px; }

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .cta-band { padding: 40px 24px; border-radius: 20px; }
  .hero { padding: 60px 0 40px; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-stats { justify-content: center; }
  .footer-bottom { justify-content: center; text-align: center; }
}
