/* SP Technology Services Private Limited - Core Styles */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root{
  --bg: #0b1020;
  --surface: rgba(255,255,255,.08);
  --surface-2: rgba(255,255,255,.12);
  --text: #0d1321;
  --muted: rgba(13,19,33,.70);
  --white: #ffffff;
  --brand: #2d6cdf;
  --brand-2: #00b3a4;
  --accent: #7c3aed;
  --shadow: 0 18px 50px rgba(10, 16, 32, .18);
  --shadow-sm: 0 10px 24px rgba(10, 16, 32, .14);
  --radius: 16px;
  --radius-sm: 12px;
  --container: 1160px;

  --h1: 48px;
  --h2: 32px;
  --h3: 24px;
  --body: 16px;

  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 72px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: var(--body);
  line-height: 1.7;
  color: var(--text);
  background: #f6f7fb;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }

.container{
  width: min(var(--container), calc(100% - 2 * var(--space-4)));
  margin: 0 auto;
}

.section{
  padding: var(--space-7) 0;
}
.section--tight{
  padding: var(--space-6) 0;
}

.eyebrow{
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  font-size: 12px;
  color: rgba(255,255,255,.78);
}

h1, h2, h3{
  font-family: "Playfair Display", Georgia, serif;
  margin: 0 0 var(--space-3);
  line-height: 1.15;
}
h1{ font-size: var(--h1); color: var(--white); }
h2{ font-size: var(--h2); }
h3{ font-size: var(--h3); }
p{ margin: 0 0 var(--space-3); color: var(--muted); }

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.26);
}
.btn:active{ transform: translateY(0); }
.btn--dark{
  color: #0b1020;
  background: rgba(255,255,255,.92);
  border-color: rgba(255,255,255,.75);
}
.btn--dark:hover{
  background: #ffffff;
}
.btn--primary{
  background: linear-gradient(135deg, #2d6cdf, #00b3a4 48%, #7c3aed);
  border-color: rgba(255,255,255,.12);
}
.btn--primary:hover{
  filter: saturate(1.05);
}

/* Sticky Nav */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(246, 247, 251, .78);
  border-bottom: 1px solid rgba(10,16,32,.06);
}
.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}
.brand-mark{
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(10,16,32,.08);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(10,16,32,.10);
}
.brand-logo{
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.brand-text{
  display: grid;
  line-height: 1.1;
}
.brand-text strong{
  font-weight: 800;
  letter-spacing: .01em;
}
.brand-text span{
  font-size: 12px;
  color: rgba(13,19,33,.65);
  font-weight: 600;
}

.nav-links{
  display: grid;
  grid-auto-flow: column;
  gap: 18px;
  align-items: center;
  justify-content: center;
  flex: 1;
}
.nav-links a{
  padding: 10px 18px;
  border-radius: 999px;
  color: rgba(13,19,33,.78);
  font-weight: 600;
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover{
  background: rgba(13,19,33,.06);
  color: rgba(13,19,33,.92);
}
.nav-links a.active{
  background: linear-gradient(135deg, rgba(45,108,223,.16), rgba(0,179,164,.14), rgba(124,58,237,.14));
  color: rgba(13,19,33,.92);
  box-shadow: inset 0 0 0 1px rgba(45,108,223,.18);
}

.nav-actions{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 220px;
}

.hamburger{
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(10,16,32,.10);
  background: rgba(255,255,255,.78);
  cursor: pointer;
}
.hamburger-lines{
  width: 18px;
  height: 12px;
  margin: 0 auto;
  display: grid;
  gap: 4px;
}
.hamburger-lines span{
  display: block;
  height: 2px;
  border-radius: 999px;
  background: rgba(10,16,32,.72);
}

/* Hero */
.hero{
  position: relative;
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #f6f7fb;
}
.hero::before{
  content:"";
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}
.hero-inner{
  position: relative;
  padding: var(--space-7) 0;
  display: grid;
  justify-items: start;
  text-align: left;
}
.hero-card{
  width: min(980px, 100%);
  padding: clamp(22px, 4vw, 34px);
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(10,16,32,.08);
  box-shadow: 0 24px 80px rgba(0,0,0,.08);
}
.hero-card h1{
  margin: 0 0 var(--space-4);
  color: var(--text);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.15;
}
.hero p{
  color: var(--text);
  max-width: 80ch;
  margin-left: 0;
  margin-right: 0;
}
.hero-copy{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: var(--body);
  line-height: 1.75;
  text-align: justify;
  text-justify: inter-word;
}
.hero-copy--lead{
  font-size: var(--body);
  font-weight: 600;
}
.hero-actions{
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: var(--space-4);
}
.hero .btn,
.hero .btn--primary{
  color: #ffffff;
  background: #2d6cdf;
  border-color: transparent;
}
.hero .btn:hover,
.hero .btn--primary:hover{
  background: #254fb9;
}

/* About */
.about-grid{
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-6);
  align-items: center;
}
.about-grid p{
  text-align: justify;
  text-justify: inter-word;
}
.profile-placeholder{
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  display: grid;
  place-items: center;
  padding: var(--space-5);
  background: linear-gradient(135deg, rgba(45,108,223,.20), rgba(0,179,164,.18), rgba(124,58,237,.16));
  border: 1px solid rgba(10,16,32,.10);
  box-shadow: var(--shadow-sm);
}
.profile-placeholder .badge{
  width: 100%;
  border-radius: 18px;
  padding: 20px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(10,16,32,.08);
}
.profile-placeholder .badge strong{
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}
.profile-placeholder .badge span{
  color: rgba(13,19,33,.72);
  font-weight: 600;
}

/* Services */
.section-title{
  display: grid;
  gap: 8px;
  margin-bottom: var(--space-5);
}
.section-title p{ max-width: 72ch; }
.service-group{
  margin-top: var(--space-6);
}
.service-group:first-child{
  margin-top: 0;
}
.service-group > h3{
  margin-bottom: var(--space-4);
  color: #0e5aa7;
}
.service-item{
  padding: 0 0 var(--space-4);
  margin: 0 0 var(--space-4);
  border-bottom: 1px solid rgba(10,16,32,.10);
}
.service-item:last-child{
  margin-bottom: 0;
}
.service-item h4{
  margin: 0 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  color: #0e5aa7;
}
.service-item p{
  margin: 0;
  text-align: justify;
  text-justify: inter-word;
}

.cards{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.card{
  grid-column: span 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(10,16,32,.08);
  box-shadow: 0 10px 26px rgba(10,16,32,.08);
  transform: translateY(6px);
  opacity: 0;
}
.card.is-visible{
  animation: fadeUp .55s ease forwards;
}
@keyframes fadeUp{
  to{ transform: translateY(0); opacity: 1; }
}
.card-hero{
  height: 110px;
  display: grid;
  align-items: end;
  padding: 18px;
  background: #0e5aa7;
}
.card-hero h3{
  margin: 0;
  color: #ffffff;
  text-shadow: 0 10px 22px rgba(0,0,0,.22);
}
.card-body{
  padding: 18px;
  display: grid;
  gap: 12px;
}
.tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(45,108,223,.10);
  color: rgba(13,19,33,.82);
  border: 1px solid rgba(45,108,223,.14);
  font-weight: 600;
}
.card .btn{
  width: fit-content;
  color: rgba(13,19,33,.92);
  background: rgba(13,19,33,.05);
  border-color: rgba(13,19,33,.10);
}
.card .btn:hover{
  background: rgba(13,19,33,.08);
}

/* Contact */
.contact-grid{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: var(--space-6);
  align-items: start;
}
.panel{
  background: #ffffff;
  border: 1px solid rgba(10,16,32,.08);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(10,16,32,.08);
  padding: clamp(18px, 3vw, 26px);
}
form{
  display: grid;
  gap: 14px;
}
.field{
  display: grid;
  gap: 8px;
}
label{
  font-weight: 700;
  font-size: 13px;
  color: rgba(13,19,33,.78);
}
input, select, textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(10,16,32,.14);
  outline: none;
  font: inherit;
  background: #ffffff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea{ min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus{
  border-color: rgba(45,108,223,.55);
  box-shadow: 0 0 0 4px rgba(45,108,223,.14);
}
.form-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.btn--submit{
  color: #0b1020;
  background: linear-gradient(135deg, rgba(45,108,223,.18), rgba(0,179,164,.18), rgba(124,58,237,.16));
  border-color: rgba(45,108,223,.18);
}
.success{
  display: none;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0,179,164,.14);
  border: 1px solid rgba(0,179,164,.22);
  color: rgba(13,19,33,.84);
  font-weight: 700;
}
.success.is-visible{ display: block; }
.contact-meta{
  display: grid;
  gap: 14px;
}
.meta-item{
  padding: 14px;
  border-radius: 14px;
  background: rgba(13,19,33,.04);
  border: 1px solid rgba(10,16,32,.06);
}
.meta-item strong{ display: block; margin-bottom: 6px; }
.meta-item a{
  color: rgba(45,108,223,.92);
  font-weight: 700;
}

/* Footer */
.site-footer{
  background: #070b16;
  color: rgba(255,255,255,.86);
  padding: var(--space-6) 0;
  margin-top: var(--space-7);
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}
.footer-brand strong{
  display: block;
  font-weight: 800;
  letter-spacing: .01em;
  color: #ffffff;
}
.footer-brand span{
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,.68);
}
.footer-links{
  display: grid;
  gap: 10px;
}
.footer-links a{
  color: rgba(255,255,255,.72);
  font-weight: 600;
}
.footer-links a:hover{ color: rgba(255,255,255,.92); }
.social{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.social a{
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.86);
  font-weight: 700;
}
.social a:hover{
  background: rgba(255,255,255,.10);
}
.copyright{
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.62);
  font-weight: 600;
  font-size: 13px;
}

/* Mobile Nav */
@media (max-width: 768px){
  :root{
    --h1: 36px;
    --h2: 26px;
    --h3: 20px;
  }
  .brand{ min-width: unset; }
  .nav-actions{ min-width: unset; }

  .hamburger{ display: inline-flex; align-items: center; justify-content: center; }
  .nav-links{
    position: absolute;
    left: 0;
    right: 0;
    top: 74px;
    padding: 12px;
    grid-auto-flow: row;
    justify-content: stretch;
    background: rgba(246,247,251,.94);
    border-bottom: 1px solid rgba(10,16,32,.06);
    transform-origin: top;
    display: none;
  }
  .nav-links a{
    padding: 12px 14px;
  }
  .site-header.is-open .nav-links{
    display: grid;
  }

  .hero{ min-height: calc(100vh - 74px); }
  .hero-card{ border-radius: 20px; }

  .about-grid{
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .cards{ gap: 14px; }
  .card{ grid-column: span 12; }
  .contact-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
}

