/* ============================================================
   1-Web-Development.com — Main Stylesheet
   Modern revamp of a 1999-2003 era full-service web dev company
   ============================================================ */

/* ── CSS Variables ── */
:root {
  --primary:   #1a2a5e;
  --accent:    #cc3333;
  --light-bg:  #f5f7fb;
  --text:      #333333;
  --border:    #dde2ef;
  --white:     #ffffff;
  --nav-hover: #253a82;
  --shadow:    0 2px 8px rgba(26, 42, 94, 0.10);
  --radius:    6px;
  --max-width: 1100px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--light-bg);
  line-height: 1.65;
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* ── Header ── */
.site-header {
  background: var(--primary);
  color: var(--white);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-logo {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo .logo-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.site-logo .logo-name span {
  color: var(--accent);
}

.site-logo .logo-tagline {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.70);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Navigation ── */
.site-nav {
  display: flex;
  align-items: stretch;
}

.nav-list {
  display: flex;
  align-items: stretch;
  gap: 0;
  list-style: none;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a,
.nav-list > li > span {
  display: flex;
  align-items: center;
  padding: 1.1rem 0.85rem;
  color: rgba(255,255,255,0.92);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.nav-list > li > a:hover,
.nav-list > li:hover > a,
.nav-list > li:hover > span {
  background: var(--nav-hover);
  color: var(--white);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

/* Dropdown indicator */
.nav-list > li > a::after,
.nav-list > li > span::after {
  content: ' ▾';
  font-size: 0.6rem;
  margin-left: 0.25rem;
  opacity: 0.7;
}

.nav-list > li.no-drop > a::after {
  content: '';
}

/* Dropdown Menu */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  z-index: 999;
}

.nav-list > li:hover .dropdown {
  display: block;
}

.dropdown li a {
  display: block;
  padding: 0.55rem 1.1rem;
  font-size: 0.84rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background 0.14s, color 0.14s;
}

.dropdown li:last-child a {
  border-bottom: none;
}

.dropdown li a:hover {
  background: var(--light-bg);
  color: var(--accent);
  text-decoration: none;
}

/* ── Page Wrapper ── */
.page-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
}

/* ── Page Layout (content + sidebar) ── */
.page-layout {
  display: flex;
  flex-direction: row;
  gap: 1.75rem;
  align-items: flex-start;
}

.content {
  flex: 1;
  min-width: 0;
}

.sidebar {
  width: 200px;
  flex-shrink: 0;
}

/* ── Hero Section ── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #253a82 100%);
  color: var(--white);
  padding: 3rem 2rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.hero h1 span {
  color: #f5a0a0;
}

.hero p {
  font-size: 1.05rem;
  opacity: 0.88;
  max-width: 620px;
  margin-bottom: 1.25rem;
}

.hero-cta {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.18s;
  text-decoration: none;
}

.hero-cta:hover {
  background: #a82828;
  color: var(--white);
  text-decoration: none;
}

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.25rem;
}

.card h2, .card h3 {
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.card h2 {
  font-size: 1.25rem;
  border-bottom: 2px solid var(--light-bg);
  padding-bottom: 0.5rem;
  margin-bottom: 0.85rem;
}

/* ── Services Grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1rem;
  text-align: center;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(26,42,94,0.14);
  border-color: var(--primary);
  text-decoration: none;
  color: var(--primary);
}

.service-card .svc-icon {
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
}

.service-card .svc-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
}

.service-card .svc-desc {
  font-size: 0.78rem;
  color: #666;
  line-height: 1.4;
}

/* ── Sidebar Widgets ── */
.sidebar .card {
  padding: 1rem;
}

.sidebar .card h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.4rem;
  margin-bottom: 0.75rem;
}

.news-item {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text);
  padding-bottom: 0.6rem;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.news-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.news-item .news-date {
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 0.2rem;
}

/* ── Breadcrumb ── */
.breadcrumb {
  font-size: 0.82rem;
  color: #777;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--primary);
}

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

.breadcrumb .sep {
  color: #bbb;
}

.breadcrumb .current {
  color: var(--accent);
  font-weight: 600;
}

/* ── Page Headings ── */
.page-heading {
  color: var(--primary);
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.page-heading-bar {
  height: 4px;
  width: 60px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

/* ── Forms ── */
.form-group {
  margin-bottom: 0.85rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.form-control {
  width: 100%;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,42,94,0.10);
}

.btn {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background 0.18s, transform 0.12s;
  letter-spacing: 0.03em;
  text-align: center;
}

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

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

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

.btn-accent:hover {
  background: #a82828;
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
}

/* ── Tables ── */
.content-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.content-table th {
  background: var(--primary);
  color: var(--white);
  padding: 0.6rem 0.9rem;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.content-table td {
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.content-table tr:last-child td {
  border-bottom: none;
}

.content-table tr:nth-child(even) td {
  background: var(--light-bg);
}

.content-table tr:hover td {
  background: #edf0f8;
}

/* ── Package Cards ── */
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.package-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.package-card .pkg-header {
  background: var(--primary);
  color: var(--white);
  padding: 1rem 1.1rem;
}

.package-card .pkg-header h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.package-card .pkg-header .pkg-sub {
  font-size: 0.76rem;
  opacity: 0.80;
}

.package-card .pkg-body {
  padding: 1rem 1.1rem;
}

.package-card .pkg-body ul {
  list-style: disc;
  padding-left: 1.1rem;
  font-size: 0.84rem;
  color: var(--text);
  line-height: 1.7;
}

.package-card .pkg-body ul li {
  margin-bottom: 0.15rem;
}

.package-card .pkg-footer {
  padding: 0.75rem 1.1rem;
  background: var(--light-bg);
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: #555;
  font-weight: 600;
}

/* ── Hosting Plan Table ── */
.plan-highlight {
  font-weight: 700;
  color: var(--primary);
}

.plan-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
}

.check {
  color: #27ae60;
  font-weight: 700;
}

/* ── Info Callout ── */
.callout {
  border-left: 4px solid var(--accent);
  background: #fff5f5;
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.callout-info {
  border-left-color: var(--primary);
  background: #f0f3fc;
}

/* ── Anchor jump targets ── */
.anchor-target {
  scroll-margin-top: 80px;
}

/* ── Links Section ── */
.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.78rem;
  padding: 0.5rem 0;
}

.links-row a {
  color: var(--primary);
  font-size: 0.78rem;
}

/* ── Footer ── */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.80);
  margin-top: 3rem;
  padding: 2rem 1.25rem 1rem;
  font-size: 0.82rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 0.4rem;
}

.footer-col p,
.footer-col address {
  font-style: normal;
  line-height: 1.8;
  color: rgba(255,255,255,0.72);
}

.footer-col a {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 0.3rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.76rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.65);
}

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

/* ── Utility ── */
.text-accent   { color: var(--accent); }
.text-primary  { color: var(--primary); }
.text-muted    { color: #777; }
.font-bold     { font-weight: 700; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.section-title {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--border);
}

/* ── Responsive: 768px breakpoint ── */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 1rem;
    gap: 0;
  }

  .site-logo {
    padding: 0.6rem 0;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
  }

  .nav-list {
    gap: 0;
    flex-wrap: wrap;
  }

  .nav-list > li > a,
  .nav-list > li > span {
    padding: 0.65rem 0.6rem;
    font-size: 0.75rem;
  }

  .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    border-top: none;
    background: rgba(255,255,255,0.08);
    display: none;
    width: 100%;
  }

  .nav-list > li:hover .dropdown {
    display: block;
  }

  .dropdown li a {
    color: rgba(255,255,255,0.85);
    background: transparent;
    border-color: rgba(255,255,255,0.10);
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
  }

  .dropdown li a:hover {
    background: rgba(255,255,255,0.10);
    color: var(--white);
  }

  .page-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    order: -1;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

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

  .hero {
    padding: 2rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

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