/* ==========================================================================
   SISI TECH CONSULTING — style.css
   ========================================================================== */

:root {
  --navy: #0A2540;
  --navy-light: #173B63;
  --accent: #1E6FD9;
  --accent-dark: #1859B3;
  --light-blue: #EAF2FB;
  --white: #FFFFFF;
  --page-bg: #F5F9FD;
  --text: #37474F;
  --border: #D9E2EC;
  --max-width: 1100px;
  --header-height: 80px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--page-bg);
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: normal;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }

p {
  margin: 0 0 1.25em;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img, svg {
  max-width: 100%;
}

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

.centered {
  text-align: center;
}

.narrow {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.button {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 14px 32px;
  border: none;
  border-radius: 4px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
}

.button:hover,
.button:focus {
  background: var(--navy-light);
  color: var(--white);
  text-decoration: none;
}

.button-accent {
  background: var(--accent);
}

.button-accent:hover,
.button-accent:focus {
  background: var(--accent-dark);
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(10, 37, 64, 0.06);
  background: var(--white);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}

.wordmark:hover {
  text-decoration: none;
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 36px;
}

.site-nav a {
  color: var(--navy);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover {
  color: var(--accent);
}

.site-nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  font-size: 0.9rem;
  color: var(--text);
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

section {
  padding: 80px 0;
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  text-align: center;
}

.hero .container {
  position: relative;
  width: 100%;
}

.hero h1 {
  font-size: 3.6rem;
  color: var(--white);
  margin-bottom: 20px;
}

/* Animated globe: a dot-matrix Earth tile scrolls horizontally inside a circular clip.
   The sphere sits large and off-centre, cropped by the top and right edges of the hero. */

.globe {
  position: absolute;
  top: -20%;
  right: -6%;
  width: clamp(560px, 64vw, 920px);
  height: auto;
  pointer-events: none;
}

.globe-map {
  /* One tile is 1700 units wide; the offset starts the view on Europe.
     Moving right matches the Earth's west-to-east rotation. */
  animation: globe-spin 60s linear infinite;
}

@keyframes globe-spin {
  from { transform: translateX(-2373px); }
  to   { transform: translateX(-673px); }
}

/* Soft navy pool under the headline so the text stays readable over the globe */

.hero-fade {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(ellipse 620px 320px at 50% 50%,
    rgba(10, 37, 64, 0.9) 0%,
    rgba(10, 37, 64, 0.65) 45%,
    rgba(10, 37, 64, 0) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .globe-map {
    animation: none;
  }
}

.subline {
  display: block;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 40px;
}

.intro {
  padding: 72px 0 80px;
}

.intro p {
  font-size: 1.15rem;
}

/* Cards */

.services-overview {
  padding-top: 0;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.card {
  background: var(--light-blue);
  border: 1px solid var(--border);
  padding: 44px 40px;
  border-radius: 4px;
}

.card-icon {
  display: block;
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 20px;
}

.card h3 {
  margin-bottom: 14px;
}

.card p {
  margin-bottom: 20px;
}

.card a {
  font-weight: bold;
}

/* Navy band */

.band {
  background: var(--navy);
  color: var(--light-blue);
  padding: 80px 0;
}

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

.band h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.band p {
  margin: 0;
  color: var(--light-blue);
}

/* Closing CTA */

.cta {
  text-align: center;
  padding: 96px 0;
}

.cta h2 {
  margin-bottom: 16px;
}

.cta p {
  margin-bottom: 32px;
}

/* --------------------------------------------------------------------------
   Inner pages
   -------------------------------------------------------------------------- */

.page-title {
  padding: 80px 0 40px;
  border-bottom: 1px solid var(--border);
}

.page-title h1 {
  margin-bottom: 8px;
}

.page-title .subtitle {
  font-size: 1.15rem;
  margin: 0;
}

.services-group {
  padding: 64px 0;
}

.services-group + .services-group {
  border-top: 1px solid var(--border);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}

.section-heading h2 {
  margin: 0;
}

.section-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: var(--accent);
}

#telecom,
#it-services {
  /* sticky header height plus breathing room */
  scroll-margin-top: calc(var(--header-height) + 32px);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 48px;
}

.service h3 {
  margin-bottom: 10px;
}

.service p {
  margin: 0;
}

.prose-section,
.contact-section {
  padding: 0;
}

.prose {
  max-width: 760px;
  padding: 64px 0 80px;
}

.prose p {
  font-size: 1.1rem;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  padding: 64px 0 80px;
}

.contact-details dl {
  margin: 0;
}

.contact-details dt {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
  font-size: 1.1rem;
  margin-top: 24px;
}

.contact-details dt:first-child {
  margin-top: 0;
}

.contact-details dd {
  margin: 4px 0 0;
}

.map {
  margin-top: 32px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.map iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
}

.contact-form label {
  display: block;
  font-weight: bold;
  color: var(--navy);
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.contact-form .field {
  margin-bottom: 22px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1rem;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 111, 217, 0.15);
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.optional {
  font-weight: normal;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .service-grid,
  .band .columns {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.7rem; }

  section { padding: 56px 0; }

  .hero { min-height: 480px; padding: 64px 0; }
  .hero h1 { font-size: 2.6rem; }

  .globe {
    top: -6%;
    right: -45vw;
    width: 120vw;
  }

  .hero-fade {
    background: radial-gradient(ellipse 90vw 260px at 50% 50%,
      rgba(10, 37, 64, 0.9) 0%,
      rgba(10, 37, 64, 0.65) 45%,
      rgba(10, 37, 64, 0) 100%);
  }

  .site-header .container {
    flex-wrap: wrap;
    height: auto;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    width: 100%;
    margin-top: 16px;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--border);
  }

  .site-nav li {
    border-bottom: 1px solid var(--border);
  }

  .site-nav a {
    display: block;
    padding: 14px 0;
    border-bottom: none;
  }

  .site-nav a.active {
    border-bottom: none;
  }

  .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;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .cards,
  .band .columns,
  .service-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .band .columns { gap: 36px; }
  .contact-grid { gap: 48px; padding: 48px 0 64px; }
  .services-group { padding: 48px 0; }
  .page-title { padding: 56px 0 32px; }
  .cta { padding: 64px 0; }

  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }
}
