/* ================================================================
   DS Webhosting Services — style.css
   ================================================================ */

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

:root {
  --blue:        #1a70c0;
  --blue-dark:   #155a9e;
  --blue-light:  #e8f2fc;
  --grey:        #4a4a52;
  --grey-dark:   #2d2d35;
  --grey-mid:    #6b7280;
  --grey-light:  #f3f4f6;
  --border:      #dde3ea;
  --white:       #ffffff;
  --text:        #333740;
  --text-light:  #6b7280;
  --success:     #16a34a;
  --error:       #dc2626;

  --radius:      8px;
  --radius-lg:   14px;
  --shadow:      0 2px 12px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 24px rgba(0,0,0,0.11);
  --transition:  0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: 'Barlow', 'Segoe UI', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--grey-dark);
}

h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── LAYOUT ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 5vw;
}

.container--narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 5vw;
}

/* ── HEADER / NAV ── */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 5vw;
  max-width: 1100px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logo img {
  height: 52px;
  width: auto;
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: var(--grey);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}

nav a:hover, nav a.active {
  color: var(--blue);
  background: var(--blue-light);
}

nav a.nav-cta {
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
  padding: 0.5rem 1.1rem;
}

nav a.nav-cta:hover {
  background: var(--blue-dark);
  color: var(--white);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--grey);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: all 0.2s;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #f0f6ff 0%, #e8f2fc 50%, #f5f7fa 100%);
  border-bottom: 1px solid var(--border);
  padding: 5rem 5vw 4rem;
  text-align: center;
}

.hero__logo {
  margin: 0 auto 2rem;
  max-width: 320px;
}

.hero__logo img {
  width: 100%;
  height: auto;
}

.hero h1 {
  margin-bottom: 1.1rem;
}

.hero h1 span { color: var(--blue); }

.hero__sub {
  font-size: 1.1rem;
  color: var(--grey-mid);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

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

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  font-family: inherit;
}

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

.btn--primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26,112,192,0.3);
}

.btn--outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.btn--outline:hover {
  background: var(--blue-light);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ── SECTION WRAPPERS ── */
.section {
  padding: 5rem 5vw;
}

.section--alt {
  background: var(--grey-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.6rem;
}

.section__header p {
  color: var(--grey-mid);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0.75rem auto 0;
}

/* ── SERVICE CARDS ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--blue);
}

.card__icon {
  width: 52px;
  height: 52px;
  background: var(--blue-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.card__icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  color: var(--grey-dark);
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--grey-mid);
  font-size: 0.92rem;
  margin-bottom: 0;
}

.card__link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
}

/* ── ABOUT TEASER ── */
.about-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.about-strip__stat {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.stat-num {
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  flex-shrink: 0;
  min-width: 70px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--grey-mid);
  padding-top: 0.2rem;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, #1a70c0 0%, #155a9e 100%);
  padding: 3.5rem 5vw;
  color: var(--white);
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.6rem;
}

.page-hero p {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 0;
}

/* ── SERVICES PAGE ── */
.service-block {
  max-width: 1100px;
  margin: 0 auto 4rem;
}

.service-block:last-child { margin-bottom: 0; }

.service-block__header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--blue-light);
}

.service-block__icon {
  width: 60px;
  height: 60px;
  background: var(--blue-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-block__icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-block h2 {
  margin-bottom: 0.3rem;
}

.service-block__sub {
  color: var(--grey-mid);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  background: var(--blue-light);
  color: var(--blue-dark);
  border-radius: 100px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 2rem;
  margin-top: 1.2rem;
}

.feature-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.93rem;
  color: var(--text);
}

.feature-list li::before {
  content: '';
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a70c0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

/* ── ABOUT PAGE ── */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.timeline {
  position: relative;
  padding-left: 2rem;
  margin: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--blue-light);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 0.45rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--blue);
}

.timeline-year {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 0.25rem;
}

.timeline-item h3 {
  margin-bottom: 0.35rem;
}

.creds {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.cred {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  background: var(--grey-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  flex: 1;
  min-width: 200px;
}

.cred__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.cred__text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--grey-dark);
}

.cred__text span {
  font-size: 0.8rem;
  color: var(--grey-mid);
}

/* ── CONTACT PAGE ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info h3 {
  margin-bottom: 0.5rem;
}

.contact-info p {
  color: var(--grey-mid);
  font-size: 0.93rem;
}

.contact-detail {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin: 1rem 0;
  font-size: 0.93rem;
}

.contact-detail svg {
  width: 18px;
  height: 18px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ── FORM ── */
.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--grey-dark);
  margin-bottom: 0.4rem;
}

.form-group label .req {
  color: var(--blue);
  margin-left: 2px;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,112,192,0.12);
}

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

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

/* Honeypot - MUST stay invisible */
.form-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
  tab-index: -1;
}

.captcha-box {
  background: var(--grey-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.captcha-box label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--grey-dark);
  flex-shrink: 0;
}

.captcha-question {
  font-weight: 700;
  color: var(--blue-dark);
  flex-shrink: 0;
}

.captcha-box input {
  width: 80px;
  padding: 0.45rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  text-align: center;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.captcha-box input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,112,192,0.12);
}

.form-note {
  font-size: 0.8rem;
  color: var(--grey-mid);
  margin-top: 0.75rem;
}

.form-msg {
  display: none;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  margin-top: 1rem;
}

.form-msg--success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: var(--success);
}

.form-msg--error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: var(--error);
}

/* ── DIVIDER ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── CTA STRIP ── */
.cta-strip {
  background: linear-gradient(135deg, #1a70c0 0%, #155a9e 100%);
  padding: 4rem 5vw;
  text-align: center;
  color: var(--white);
}

.cta-strip h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-strip p  { color: rgba(255,255,255,0.8); margin-bottom: 1.8rem; font-size: 1.05rem; }

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

.btn--white:hover {
  background: var(--blue-light);
  color: var(--blue-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ── FOOTER ── */
footer {
  background: var(--grey-dark);
  color: rgba(255,255,255,0.6);
  padding: 2.5rem 5vw;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand img {
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.8rem;
  line-height: 1.6;
  margin-bottom: 0.3rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 5vw;
    gap: 0.15rem;
    box-shadow: var(--shadow-md);
  }

  nav ul.open { display: flex; }
  nav a { padding: 0.6rem 0.85rem; }

  .about-strip { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }

  .service-block__header { flex-direction: column; }
}

@media (max-width: 500px) {
  .hero { padding: 3.5rem 5vw 3rem; }
  .section { padding: 3.5rem 5vw; }
}
