/* ---------------------------------------------
   Dominick Tech Services — base styles
--------------------------------------------- */

:root {
  --navy: #0F2A43;
  --navy-dark: #0A1D30;
  --slate: #1F2937;
  --bg: #FAFAF9;
  --bg-alt: #F1F1EF;
  --accent: #2A9D8F;
  --accent-dark: #21847A;
  --border: #E5E7EB;
  --white: #FFFFFF;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

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

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

.wrap-narrow {
  max-width: 760px;
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-lead {
  font-size: 1.05rem;
  color: #4B5563;
  max-width: 640px;
  margin-bottom: 2.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85em 1.8em;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.05s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-large { font-size: 1.1rem; padding: 1em 2.2em; }
.btn-small { font-size: 0.9rem; padding: 0.55em 1.3em; }

/* Header */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--navy-dark);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.brand-name {
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand:hover { text-decoration: none; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a:not(.btn) {
  color: #D6DEE6;
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a:not(.btn):hover {
  color: var(--white);
  text-decoration: none;
}

.nav-toggle-input,
.nav-toggle-btn {
  display: none;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 110px 0 100px;
}

.hero h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 0.4em;
}

.hero-sub {
  font-size: 1.3rem;
  color: #E7ECEF;
  max-width: 680px;
  margin: 0 auto 0.75em;
}

.hero-detail {
  font-size: 1.02rem;
  color: #AEB9C4;
  max-width: 620px;
  margin: 0 auto 2.2em;
}

/* Services */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  position: relative;
}

.card h3 { margin-bottom: 0.5em; }
.card p { margin: 0; color: #4B5563; font-size: 0.98rem; }

.card-highlight {
  border-color: var(--accent);
  border-width: 2px;
}

.badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* Pricing */
.pricing-table {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.pricing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
}

.pricing-row:last-child { border-bottom: none; }

.pricing-row-fallback {
  background: var(--bg-alt);
}

.pricing-name {
  font-weight: 600;
  color: var(--navy);
}

.pricing-price {
  text-align: right;
  font-weight: 700;
  color: var(--accent-dark);
  font-size: 1.1rem;
  white-space: nowrap;
}

.pricing-price span {
  font-weight: 500;
  color: #6B7280;
  font-size: 0.85rem;
}

.pricing-price small {
  display: block;
  font-weight: 500;
  color: #6B7280;
  font-size: 0.8rem;
  margin-top: 2px;
}

.pricing-note {
  margin-top: 1.75rem;
  font-size: 0.92rem;
  color: #6B7280;
  max-width: 760px;
}

/* Contact */
.contact-inner {
  text-align: center;
}

.contact-alt {
  margin-top: 1.5rem;
  color: #4B5563;
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: #B7C1CB;
  padding: 48px 0 24px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 20px;
}

.footer-inner .brand-name { color: var(--white); }

.footer-inner p {
  margin: 6px 0 0;
  font-size: 0.92rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.footer-contact a {
  color: #D6DEE6;
}
.footer-contact a:hover { color: var(--white); }

.copyright {
  margin: 0;
  font-size: 0.82rem;
  color: #7C8894;
}

/* Responsive */
@media (max-width: 780px) {
  h1 { font-size: 2.1rem; }
  .hero h1 { font-size: 2.3rem; }
  .hero { padding: 80px 0 70px; }
  .section { padding: 56px 0; }

  .nav-toggle-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    cursor: pointer;
  }
  .nav-toggle-btn span {
    display: block;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .site-nav a:not(.btn) {
    width: 100%;
    padding: 14px 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .site-nav .btn {
    margin: 16px 24px 20px;
  }

  .nav-toggle-input:checked ~ .site-nav {
    max-height: 400px;
  }

  .header-inner {
    position: relative;
    flex-wrap: wrap;
  }

  .pricing-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .pricing-price { text-align: left; }

  .footer-inner {
    flex-direction: column;
  }
  .footer-contact {
    align-items: flex-start;
  }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
