/* ========================================
   RQK Yohan Internet Services — Styles
   ======================================== */

/* --- CSS Variables --- */
:root {
  --color-navy: #0b1d3a;
  --color-navy-light: #132d5e;
  --color-navy-dark: #071428;
  --color-accent: #0891b2;
  --color-accent-light: #22d3ee;
  --color-accent-dark: #0e7490;
  --color-white: #ffffff;
  --color-bg: #f8fafc;
  --color-bg-alt: #f1f5f9;
  --color-text: #334155;
  --color-text-light: #64748b;
  --color-text-dark: #0f172a;
  --color-border: #e2e8f0;

  --shadow-sm: 0 1px 3px rgba(11, 29, 58, 0.06);
  --shadow-md: 0 4px 16px rgba(11, 29, 58, 0.08);
  --shadow-lg: 0 8px 32px rgba(11, 29, 58, 0.12);
  --shadow-hover: 0 12px 40px rgba(11, 29, 58, 0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --header-height: 72px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--color-accent-dark);
}

ul {
  list-style: none;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 5rem 0;
}

.section__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section__tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section__desc {
  font-size: 1.0625rem;
  color: var(--color-text-light);
}

/* --- Card --- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(8, 145, 178, 0.3);
}

.btn--primary:hover {
  background: var(--color-accent-dark);
  color: var(--color-white);
  box-shadow: 0 6px 20px rgba(8, 145, 178, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn--sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.btn--full {
  width: 100%;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.header--scrolled {
  box-shadow: var(--shadow-md);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--color-text-dark);
}

.logo:hover {
  color: var(--color-text-dark);
}

.logo__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-navy), var(--color-accent));
  color: var(--color-white);
  font-weight: 800;
  font-size: 1rem;
  border-radius: var(--radius-sm);
}

.logo__text {
  font-size: 1.125rem;
  font-weight: 700;
}

.logo--footer .logo__text {
  color: var(--color-white);
}

/* --- Navigation --- */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle--active .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle--active .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle--active .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--color-white);
  padding: calc(var(--header-height) + 2rem) 2rem 2rem;
  box-shadow: var(--shadow-lg);
  transition: right var(--transition);
  z-index: 999;
}

.nav--open {
  right: 0;
}

.nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav__link {
  display: block;
  padding: 0.75rem 0;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--color-text-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-accent);
}

.nav__cta {
  margin-top: 1.5rem;
}

.nav__cta .btn {
  width: 100%;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 29, 58, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  z-index: 998;
}

.nav-overlay--visible {
  opacity: 1;
  visibility: visible;
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: calc(var(--header-height) + 4rem) 0 5rem;
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 50%, var(--color-navy-light) 100%);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(8, 145, 178, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: rgba(8, 145, 178, 0.2);
  color: var(--color-accent-light);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 100px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.75);
  max-width: 540px;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  backdrop-filter: blur(8px);
}

.hero__stat {
  text-align: center;
}

.hero__stat-value {
  display: block;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--color-accent-light);
  margin-bottom: 0.25rem;
}

.hero__stat-label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- Services --- */
.services {
  background: var(--color-bg);
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  padding: 2rem;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.1), rgba(34, 211, 238, 0.15));
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  color: var(--color-accent);
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
}

.service-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 0.5rem;
}

.service-card__text {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  line-height: 1.65;
}

/* --- Coverage --- */
.coverage__inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.coverage__list {
  margin-top: 1.5rem;
}

.coverage__list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.coverage__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
}

.coverage__map {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  min-height: 280px;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  border: none;
}

.coverage__map-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.coverage__map-grid span {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.coverage__map-dot {
  background: rgba(34, 211, 238, 0.3) !important;
  border-color: var(--color-accent-light) !important;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.coverage__map-label {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-white);
}

/* --- Why Choose Us --- */
.why {
  background: var(--color-white);
}

.why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.why__item {
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  transition: background var(--transition);
}

.why__item:hover {
  background: var(--color-bg);
}

.why__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
  border-radius: 50%;
  color: var(--color-accent-light);
}

.why__icon svg {
  width: 24px;
  height: 24px;
}

.why__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 0.5rem;
}

.why__text {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  max-width: 280px;
  margin: 0 auto;
}

/* --- Customer Portal --- */
.portal {
  background: var(--color-bg);
}

.portal__inner {
  display: grid;
  gap: 2.5rem;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  border: none;
  color: var(--color-white);
}

.portal__inner:hover {
  transform: none;
}

.portal__content .section__tag {
  color: var(--color-accent-light);
}

.portal__content .section__title {
  color: var(--color-white);
  text-align: left;
}

.portal__text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 540px;
}

.portal__features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.portal__feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: background var(--transition);
}

.portal__feature:hover {
  background: rgba(255, 255, 255, 0.12);
}

.portal__feature svg {
  width: 22px;
  height: 22px;
  color: var(--color-accent-light);
  flex-shrink: 0;
}

/* --- Contact --- */
.contact {
  background: var(--color-white);
}

.contact__grid {
  display: grid;
  gap: 2rem;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
}

.contact__item:hover {
  transform: translateY(-2px);
}

.contact__item-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.1), rgba(34, 211, 238, 0.15));
  border-radius: var(--radius-md);
  color: var(--color-accent);
  flex-shrink: 0;
}

.contact__item-icon svg {
  width: 22px;
  height: 22px;
}

.contact__item-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-light);
  margin-bottom: 0.25rem;
}

.contact__item-text {
  font-size: 1rem;
  color: var(--color-text-dark);
}

.contact__item-text a {
  color: var(--color-text-dark);
  font-weight: 500;
}

.contact__item-text a:hover {
  color: var(--color-accent);
}

.contact__form {
  padding: 2rem;
}

.contact__form-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

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

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--color-text-dark);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15);
}

.form-input::placeholder {
  color: var(--color-text-light);
}

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

/* --- Footer --- */
.footer {
  background: var(--color-navy-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 2rem;
}

.footer__inner {
  display: grid;
  gap: 2rem;
  text-align: center;
}

.footer__tagline {
  font-size: 0.9375rem;
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--color-accent-light);
}

.footer__copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ========================================
   Responsive — Tablet (768px+)
   ======================================== */
@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }

  .nav-toggle {
    display: none;
  }

  .nav {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    padding: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  .nav__list {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }

  .nav__link {
    padding: 0.5rem 0.875rem;
    font-size: 0.9375rem;
    border-bottom: none;
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition);
  }

  .nav__link:hover,
  .nav__link--active {
    background: rgba(8, 145, 178, 0.08);
  }

  .nav__cta {
    margin-top: 0;
  }

  .nav__cta .btn {
    width: auto;
  }

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

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .why__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portal__inner {
    grid-template-columns: 1.2fr 1fr;
    padding: 3rem;
    align-items: center;
  }

  .contact__grid {
    grid-template-columns: 1fr 1.4fr;
    align-items: start;
  }

  .footer__inner {
    grid-template-columns: 1fr auto;
    text-align: left;
    align-items: start;
  }

  .footer__copy {
    grid-column: 1 / -1;
    text-align: center;
  }
}

/* ========================================
   Responsive — Desktop (1024px+)
   ======================================== */
@media (min-width: 1024px) {
  .section {
    padding: 6rem 0;
  }

  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .why__grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .hero {
    padding: calc(var(--header-height) + 6rem) 0 6rem;
  }
}
