/* ============================================================
   CCWorx — style.css
   Colour scheme (from original site):
     --red:        #BB0000  (brand red)
     --red-dark:   #8E0000  (hover state)
     --dark:       #1a1a1a  (headings / dark sections)
     --grey:       #696969  (body text)
     --grey-light: #f5f5f5  (alternate section background)
   ============================================================ */

:root {
  --red: #BB0000;
  --red-dark: #8E0000;
  --dark: #1a1a1a;
  --grey: #696969;
  --grey-light: #f5f5f5;
  --white: #ffffff;
  --header-h: 72px;
  --radius: 10px;
  --shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.14);
}

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

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

body {
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  color: var(--grey);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

h1, h2, h3, h4 { color: var(--dark); font-weight: 500; line-height: 1.3; }

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

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

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

section { padding: 84px 0; }

.section-title { text-align: center; font-size: 32px; margin-bottom: 12px; }
.section-intro { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.title-rule {
  width: 56px; height: 4px; background: var(--red);
  border: 0; border-radius: 2px; margin: 0 auto 22px;
}

/* ---------- Header / sticky nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--white);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.10);
  z-index: 1000;
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 0; }
.logo svg { height: 42px; width: auto; display: block; }

.main-nav ul { display: flex; gap: 6px; list-style: none; }

.main-nav a {
  display: block;
  padding: 10px 16px;
  color: var(--dark);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 6px;
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  color: var(--dark);
}

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--header-h) + 90px) 0 100px;
  background:
    linear-gradient(135deg, rgba(187, 0, 0, 0.93), rgba(122, 0, 0, 0.95)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 24px);
  background-color: var(--red);
  color: #fff;
  text-align: center;
}

.hero h1 {
  color: #fff;
  font-size: 46px;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero p {
  max-width: 640px;
  margin: 0 auto 36px;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.2s;
}

.btn svg { width: 18px; height: 18px; }

.btn-light { background: #fff; color: var(--red); }
.btn-light:hover { background: #f0f0f0; color: var(--red-dark); transform: translateY(-2px); }

.btn-outline { border: 2px solid rgba(255, 255, 255, 0.85); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); color: #fff; transform: translateY(-2px); }

.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; transform: translateY(-2px); }

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}

.service-card {
  background: var(--white);
  border: 1px solid #ececec;
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
  transition: box-shadow 0.25s, transform 0.25s;
}

.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.service-icon {
  width: 58px; height: 58px;
  margin: 0 auto 18px;
  border-radius: 12px;
  background: rgba(187, 0, 0, 0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
}

.service-icon svg { width: 28px; height: 28px; }

.service-card h3 { font-size: 18px; margin-bottom: 10px; }
.service-card p { font-size: 14.5px; }

/* ---------- Web design / pricing ---------- */
.design { background: var(--grey-light); }

.design-cols {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: start;
}

.design-copy h3 { font-size: 21px; margin: 26px 0 10px; }
.design-copy h3:first-child { margin-top: 0; }

.check-list { list-style: none; margin-top: 6px; }
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 7px 0;
}
.check-list svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--red);
  margin-top: 4px;
}

.price-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.price-card-head {
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 30px 24px 26px;
}

.price-card-head h3 { color: #fff; font-size: 17px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; }

.price-figure { font-size: 48px; font-weight: 700; line-height: 1.1; margin-top: 8px; }
.price-figure small { font-size: 17px; font-weight: 400; }

.price-card-body { padding: 28px; }
.price-card-body .check-list li { font-size: 15px; padding: 6px 0; }
.price-card-body .btn { width: 100%; justify-content: center; margin-top: 20px; }
.price-note { font-size: 13px; text-align: center; margin-top: 14px; color: var(--grey); }

/* ---------- Portfolio ---------- */
.portfolio { background: var(--white); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.portfolio-card {
  display: block;
  border: 1px solid #ececec;
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}

.portfolio-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.portfolio-thumb {
  background: linear-gradient(150deg, #2a2a2a, #4a4a4a);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

.portfolio-thumb svg { width: 42px; height: 42px; }

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.35s ease;
}

.portfolio-card:hover .portfolio-thumb img { transform: scale(1.04); }

.portfolio-caption {
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.portfolio-card:hover .portfolio-caption { color: var(--red); }

.portfolio-caption svg { width: 15px; height: 15px; color: var(--red); flex-shrink: 0; }

/* ---------- Hosting ---------- */
.hosting { background: var(--grey-light); }

.hosting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  margin-bottom: 44px;
}

.hosting-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.hosting-feature .service-icon { margin: 0; flex-shrink: 0; width: 50px; height: 50px; }
.hosting-feature .service-icon svg { width: 24px; height: 24px; }
.hosting-feature h3 { font-size: 17px; margin-bottom: 6px; }
.hosting-feature p { font-size: 14.5px; }

.hosting-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.plan-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 26px;
  text-align: center;
  transition: box-shadow 0.25s, transform 0.25s;
}

.plan-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.plan-card h3 { font-size: 16px; text-transform: uppercase; letter-spacing: 1px; }

.plan-price { font-size: 38px; font-weight: 700; color: var(--red); margin: 12px 0 2px; }
.plan-price small { font-size: 15px; font-weight: 400; color: var(--grey); }
.plan-from { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--grey); }

.plan-card p { font-size: 14.5px; margin-top: 14px; }

/* ---------- 3D Printing ---------- */
.printing { background: var(--white); }

.printing-cols {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
}

.printer-figure {
  background: var(--grey-light);
  border-radius: var(--radius);
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.printer-figure svg { width: 100%; max-width: 420px; height: auto; }

.printing .design-copy .btn { margin-top: 26px; }

/* ---------- Contact ---------- */
.contact { background: var(--grey-light); }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  max-width: 760px;
  margin: 0 auto;
}

.contact-card {
  border: 1px solid #ececec;
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: box-shadow 0.25s, transform 0.25s;
}

.contact-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.contact-card .service-icon { margin-bottom: 16px; }
.contact-card h3 { font-size: 17px; margin-bottom: 6px; }
.contact-card a { font-size: 17px; font-weight: 500; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: #9a9a9a;
  padding: 46px 0 38px;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.footer-inner .logo svg { height: 36px; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; justify-content: center; list-style: none; }
.footer-nav a { color: #bdbdbd; font-size: 13px; letter-spacing: 0.5px; text-transform: uppercase; }
.footer-nav a:hover { color: #fff; }

/* ---------- Back to top ---------- */
.back-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s, background 0.2s;
  z-index: 900;
}

.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--red-dark); }
.back-top svg { width: 20px; height: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .design-cols { grid-template-columns: 1fr; }
  .printing-cols { grid-template-columns: 1fr; }
  .price-card { position: static; }
  .hero h1 { font-size: 34px; }
}

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

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
    transform: translateY(-140%);
    transition: transform 0.28s ease;
    z-index: 990;
  }

  .main-nav.open { transform: translateY(0); }

  .main-nav ul { flex-direction: column; padding: 12px 0; gap: 0; }
  .main-nav a { padding: 14px 28px; border-radius: 0; }

  section { padding: 64px 0; }
  .section-title { font-size: 27px; }
}
