/* =========================================================
   GraNet IT Solutions - Main Site Styles
   Use this file as: assets/css/styles.css

   Root-level pages:
   index.html
   services/index.html

   Correct stylesheet link from both:
   <link rel="stylesheet" href="assets/css/styles.css">
   ========================================================= */

:root {
  --navy: #061d37;
  --navy-2: #0a2a4a;
  --red: #d21f3c;
  --red-dark: #b71932;
  --text: #111827;
  --muted: #5d6b7c;
  --border: #d9e2ee;
  --bg: #f5f8fc;
  --white: #ffffff;
  --black: #07111f;
  --blue-700: #0b3f73;
  --red-600: #d62839;
  --light-pink: #fef7f8;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  --radius: 10px;
  --max: 1180px;
}

@keyframes brandVisor {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 18%, rgba(18, 84, 145, 0.14), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f5f8fc 62%, #eef4fb 100%);
  line-height: 1.55;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  text-decoration: none;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.brand .red {
  color: var(--red);
}

.brand .blue {
  color: var(--navy);
}

.brand span {
  background: linear-gradient(
    105deg,
    var(--black) 0%,
    var(--blue-700) 28%,
    #8fc7f0 42%,
    var(--blue-700) 54%,
    var(--red-600) 74%,
    #f09aaa 86%,
    var(--black) 100%
  );
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brandVisor 11s ease-in-out infinite alternate;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 700;
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
  color: #101827;
  opacity: 0.9;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 20px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--white);
  color: var(--navy);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.09);
}

.btn.primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn.primary:hover {
  background: var(--red-dark);
}

.btn.dark {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn.dark:hover {
  background: var(--navy-2);
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 58px 24px 26px;
  display: flex;
  align-items: center;
  gap: 42px;
  justify-content: space-between;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: white;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 24px 0 18px;
  max-width: 660px;
  font-size: clamp(3.25rem, 6.1vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: -0.075em;
  color: var(--navy);
}

.accent {
  color: var(--red);
  text-transform: uppercase;
}

.hero p {
  max-width: 560px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.12rem;
}

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

.hero-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 360px;
}

.hero-logo img {
  width: 420px;
  height: auto;
  filter: drop-shadow(0 25px 40px rgba(7, 29, 55, 0.11));
}

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

.deal-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 30px;
  align-items: center;
  border: 2px solid var(--red);
  border-radius: var(--radius);
  background: var(--light-pink);
  padding: 24px 30px;
  box-shadow: var(--shadow);
}

.deal-tag {
  width: 150px;
  height: 76px;
  background: var(--red);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 1000;
  font-size: 2rem;
  letter-spacing: 0.04em;
  transform: rotate(-4deg);
  border-radius: 6px 22px 22px 6px;
  position: relative;
}

.deal-tag::after {
  content: "";
  position: absolute;
  right: 12px;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
}

.deal-copy small {
  display: block;
  color: var(--red);
  font-weight: 1000;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.deal-copy strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.05;
  color: var(--navy);
  letter-spacing: -0.055em;
}

.deal-copy strong span {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.deal-copy p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 700;
}

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

.services-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.section-title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1;
  letter-spacing: -0.055em;
  color: var(--text);
}

.content-card {
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.card-eyebrow {
  color: var(--red);
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1rem;
  margin-bottom: 10px;
}

.content-card h3 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
  color: var(--text);
}

.content-card > p {
  color: var(--muted);
  margin: 13px 0 28px;
}

/* =========================================================
   Homepage Service Cards
   ========================================================= */

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #e7edf5;
  padding-top: 24px;
  margin-top: 1px;
}

.service-grid-home {
  align-items: stretch;
}

.service-item {
  min-width: 0;
  padding: 0 24px;
  border-right: 1px solid #e7edf5;
  background-color: white;
}

.service-item:last-child {
  border-right: 0;
  padding-right: 0;
}

.service-card-link,
.service-card-link:visited {
  display: block;
  color: inherit;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.service-card-link:hover {
  transform: translateY(-2px);
  background: #f9fbfe;
}

.service-card-link h4,
.service-card-link p,
.service-card-link span,
.service-card-link div,
.service-card-link u {
  text-decoration: none;
}

.primary-service-item {
  background: var(--light-pink);
  border: 3px dotted red;
  border-radius: 20px;
  padding: 26px 28px;
  margin-right: 26px;
}

.primary-service-item h4 {
  color: var(--red);
  text-transform: uppercase;
}

.primary-service-item p {
  font-weight: 600;
}

.service-icon {
  width: 52px;
  height: 52px;
  border: 2px solid var(--navy);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--navy);
  font-weight: 1000;
  font-size: 1.15rem;
}

.service-item h4 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.35;
}

.service-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.58;
}

.text-link,
.service-card-link .text-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--red);
  font-weight: 900;
  font-size: 0.95rem;
  text-decoration: none;
}

.service-card-link:hover .text-link {
  color: var(--red-dark);
}

/* =========================================================
   Services Page
   Works for services/index.html
   ========================================================= */

.services-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 58px 24px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.65fr);
  gap: 30px;
  align-items: stretch;
}

.services-hero h1 {
  margin: 24px 0 18px;
  max-width: 820px;
  font-size: clamp(2.65rem, 5.3vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.075em;
  color: var(--navy);
}

.services-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.services-hero-card {
  align-self: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.services-hero-card h2 {
  margin: 0 0 12px;
  color: var(--navy);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.services-hero-card p {
  font-size: 0.98rem;
  margin-bottom: 20px;
}

.section-actions,
.service-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.service-index .content-card > p {
  max-width: 760px;
}

.service-anchor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.service-anchor-grid a,
.service-anchor-grid a:visited {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--navy);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.service-anchor-grid a:hover {
  transform: translateY(-1px);
  color: var(--red);
  border-color: rgba(210, 31, 60, 0.45);
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.08);
}

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.service-detail-copy {
  position: sticky;
  top: 110px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(217, 226, 238, 0.72);
  border-radius: var(--radius);
  padding: 26px;
}

.service-detail-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 3.7vw, 3.05rem);
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--navy);
}

.service-detail-copy p {
  margin: 0;
  color: #334155;
}

.service-detail-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.service-detail-card h3 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.service-detail-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: #334155;
}

.service-detail-card li + li {
  margin-top: 8px;
}

.service-note {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-left: 4px solid var(--red);
  border-radius: 6px;
  background: var(--light-pink);
  color: #334155;
  font-weight: 700;
}

.final-services-cta .content-card {
  background: linear-gradient(135deg, #ffffff 0%, #fef7f8 100%);
}

/* =========================================================
   About Section
   ========================================================= */

.about {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
}

.about-copy {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

.about h2,
.contact h2 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.about p {
  color: #334155;
  margin: 0 0 16px;
}

.about-image {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  min-height: 245px;
  background:
    linear-gradient(rgba(8, 29, 55, 0.08), rgba(8, 29, 55, 0.08)),
    url("../img/about-image.png") center / cover;
}

/* =========================================================
   Contact Section
   ========================================================= */

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.muted {
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 13px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd9e6;
  border-radius: 7px;
  padding: 13px 14px;
  font: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(6, 29, 55, 0.12);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-status {
  display: none;
  font-weight: 700;
  margin: 0;
}

.form-status.success {
  display: block;
  color: var(--blue-700);
}

.form-status.error {
  display: block;
  color: var(--red-600);
}

.website-field {
  position: absolute;
  left: -100vw;
  opacity: 0;
  pointer-events: none;
}

.calendar-card h3 {
  margin: 0 0 12px;
  font-size: 1.55rem;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.calendly-inline-widget {
  position: relative;
  min-width: 320px;
  height: 520px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3px;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  background: var(--navy);
  color: white;
  margin-top: 26px;
}

.footer-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 42px 24px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 34px;
}

.footer-brand {
  font-size: 1.55rem;
  font-weight: 1000;
  letter-spacing: -0.05em;
  margin-bottom: 10px;
}

.footer-brand .red {
  color: var(--red);
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  margin: 0;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-col h4 {
  margin: 0 0 12px;
  color: white;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
}

.copyright {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px 28px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1050px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .service-item:not(.primary-service-item) {
    border-right: 0;
    border-bottom: 1px solid #e7edf5;
    padding: 0 0 22px;
  }

  .primary-service-item {
    margin-right: 0;
  }
}

@media (max-width: 950px) {
  .nav {
    display: none;
  }

  .hero {
    flex-direction: column-reverse;
  }

  .about,
  .contact,
  .services-hero,
  .service-detail {
    grid-template-columns: 1fr;
  }

  .hero-logo {
    min-height: auto;
  }

  .hero-logo img {
    width: 240px;
  }

  .deal-card {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-detail-copy {
    position: static;
  }

  .service-anchor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .footer-wrap {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 60px;
  }

  .nav-wrap {
    padding: 14px 18px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding-top: 38px;
  }

  .hero h1 {
    font-size: 3.25rem;
  }

  .hero-logo img {
    width: 180px;
  }

  .services-hero {
    padding-top: 38px;
  }

  .services-hero h1 {
    font-size: 3rem;
  }

  .hero-actions,
  .form-row,
  .section-actions,
  .service-cta-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .service-anchor-grid {
    grid-template-columns: 1fr;
  }

  .primary-service-item {
    padding: 22px;
  }

  .contact-card.calendar-card {
    padding: 0;
  }

  .calendar-card-heading {
    padding: 30px;
  }

  .footer-wrap {
    grid-template-columns: 1fr;
  }
}
