/* ============================================================
   Key IT Solutions — Main Stylesheet
   ============================================================ */

:root {
  --color-primary:      #0B1F3A;
  --color-accent:       #2A7F8F;
  --color-accent-light: #3AAFC2;
  --color-surface:      #F4F6F8;
  --color-white:        #FFFFFF;
  --color-text:         #1A1A2E;
  --color-text-muted:   #5A6478;
  --color-border:       #DDE3EA;

  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 6px;
  --transition: 0.2s ease;
  --max-width: 1140px;
  --header-height: 68px;
}

/* Skip to content (keyboard / screen reader accessibility)
   ------------------------------------------------------------ */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 999;
  padding: 10px 20px;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-to-content:focus {
  top: 16px;
}

/* Reset & base
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--color-text);
  line-height: 1.7;
  background: var(--color-white);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-heading {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
  margin-bottom: 16px;
}

.section-heading--light { color: var(--color-white); }

.section-intro {
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: 48px;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-accent-light); }

.btn-outline {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}
.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

/* ============================================================
   Coming Soon Banner
   ============================================================ */
#coming-soon-banner {
  position: relative;
  z-index: 200;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 0;
  transition: opacity 0.3s ease, max-height 0.4s ease, padding 0.3s ease;
  overflow: hidden;
  max-height: 160px;
}

#coming-soon-banner.banner-hiding {
  opacity: 0;
  max-height: 0;
}

.banner-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
}

.banner-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  opacity: 0.9;
}

.banner-text {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.5;
}

.banner-text strong { font-weight: 700; }

.banner-close {
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  padding: 4px 8px;
  flex-shrink: 0;
  transition: opacity var(--transition);
  border-radius: var(--radius);
}
.banner-close:hover { opacity: 1; background: rgba(255,255,255,0.12); }

/* Push header down to account for banner */
#site-header {
  top: 0;
}

@media (max-width: 680px) {
  .banner-inner { padding: 14px 16px; gap: 10px; }
  .banner-text { font-size: 0.85rem; }
}

/* ============================================================
   Header
   ============================================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition);
}

#site-header.scrolled {
  background: var(--color-primary);
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

#site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-logo { height: 40px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 32px; }

.site-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.02em;
  transition: color var(--transition);
}
.site-nav a:hover { color: var(--color-accent-light); }

.site-nav .btn { margin-left: 8px; padding: 9px 20px; font-size: 0.875rem; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
}

/* Morph into × when nav is open */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
#hero {
  min-height: 100vh;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-height) + 40px) 0 80px;
}

/* Subtle geometric texture */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(42,127,143,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,127,143,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

#hero::after {
  content: '';
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 60px solid rgba(42,127,143,0.08);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: 20px;
}

.hero-heading {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-heading span { color: var(--color-accent-light); }

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   Services
   ============================================================ */
#services {
  padding: 96px 0;
  background: var(--color-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  padding: 32px 28px;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(11,31,58,0.08);
}

.service-icon {
  width: 44px;
  height: 44px;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ============================================================
   About
   ============================================================ */
#about {
  padding: 96px 0;
  background: var(--color-surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text p {
  color: var(--color-text-muted);
  margin-bottom: 18px;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 36px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--color-white);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-accent);
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  white-space: nowrap;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.visual-block {
  border-radius: var(--radius);
  background: var(--color-primary);
}

.visual-block:nth-child(1) { height: 200px; opacity: 0.9; }
.visual-block:nth-child(2) { height: 120px; background: var(--color-accent); opacity: 0.85; margin-left: 40px; }
.visual-block:nth-child(3) { height: 80px; background: var(--color-accent-light); opacity: 0.6; margin-left: 80px; }

/* ============================================================
   Service Area
   ============================================================ */
#service-area {
  padding: 96px 0;
  background: var(--color-white);
}

.area-intro {
  color: var(--color-text-muted);
  max-width: 620px;
  margin-bottom: 48px;
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.area-card {
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  position: relative;
}

.area-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.area-badge--primary { background: var(--color-accent); color: var(--color-white); }
.area-badge--secondary { background: var(--color-surface); color: var(--color-text-muted); }
.area-badge--remote { background: var(--color-primary); color: var(--color-white); }

.area-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.area-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.area-note {
  padding: 20px 24px;
  background: var(--color-surface);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-accent);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ============================================================
   Remote Support
   ============================================================ */
#remote-support {
  padding: 96px 0;
  background: var(--color-primary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

#remote-support::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(42,127,143,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,127,143,0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.remote-content { position: relative; max-width: 640px; margin: 0 auto; }

.remote-content p {
  color: rgba(255,255,255,0.72);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

/* ============================================================
   Contact
   ============================================================ */
#contact {
  padding: 96px 0;
  background: var(--color-surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.contact-details h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.contact-item-icon {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.contact-item-text strong {
  display: block;
  color: var(--color-text);
  font-weight: 600;
  margin-bottom: 2px;
}

/* Form — disabled / coming soon state */
.contact-form--disabled {
  position: relative;
}

.contact-form--disabled form {
  pointer-events: none;
  user-select: none;
  filter: blur(2px);
  opacity: 0.45;
}

.form-coming-soon {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(244, 246, 248, 0.6);
  backdrop-filter: blur(2px);
}

.form-coming-soon svg {
  width: 36px;
  height: 36px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.form-coming-soon span {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.01em;
}

.form-coming-soon p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  max-width: 260px;
  line-height: 1.5;
}

/* Form */
.contact-form {
  background: var(--color-white);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(42,127,143,0.12);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.form-submit { width: 100%; padding: 14px; font-size: 1rem; border: none; }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  display: none;
}
.form-message.success {
  display: block;
  background: #e6f4f1;
  color: #1a6b5a;
  border: 1px solid #b3ddd5;
}
.form-message.error {
  display: block;
  background: #fdf0ef;
  color: #a33;
  border: 1px solid #f5c6c3;
}

/* ============================================================
   Footer
   ============================================================ */
#site-footer {
  background: var(--color-primary);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 28px;
}

.footer-brand .site-logo { margin-bottom: 12px; }

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer-nav h4,
.footer-contact h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: 16px;
}

.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }

.footer-nav a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--color-white); }

.footer-contact p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ============================================================
   Scroll-to-top button
   ============================================================ */
#scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  pointer-events: none;
}
#scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#scroll-top:hover { background: var(--color-accent-light); }
#scroll-top svg { width: 20px; height: 20px; stroke: #fff; }

/* ============================================================
   Scroll-in animations
   ============================================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}
/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Active nav link
   ============================================================ */
.site-nav a.nav-active {
  color: var(--color-accent-light);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { flex-direction: row; }
  .visual-block:nth-child(1) { flex: 1.5; height: 160px; }
  .visual-block:nth-child(2) { flex: 1; height: 160px; margin-left: 0; }
  .visual-block:nth-child(3) { flex: 0.7; height: 160px; margin-left: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .services-grid { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Mobile nav */
  .site-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--color-primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 99;
  }
  .site-nav.nav-open { display: flex; }
  .site-nav a { font-size: 1.2rem; }
  .site-nav .btn { font-size: 1rem; padding: 12px 28px; }

  .nav-toggle { display: flex; z-index: 101; position: relative; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }

  .contact-form { padding: 28px 20px; }

  .about-visual { display: none; }
}
