/* Cosmic Computers – Global Styles (cleaned, single-source) */

/* ============================
   Design tokens
============================ */
:root {
  --navy: #0A2342;
  --navy-deep: #05172d;
  --navy-cta: #0f3668; /* slightly lighter navy for CTA band */
  --white: #ffffff;
  --text: #0F1720;
  --primary: #1F73C9;
  --accent: #1F73C9;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,0.12);
}

/* ============================
   Base
============================ */
* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: #f6f8fa;
  font-family: var(--font-body);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}

.container.narrow {
  max-width: 880px;
}

/* ============================
   Top contact bar
============================ */
.top-bar {
  background: var(--navy-deep);
  color: var(--white);
  font-size: 14px;
  padding: 8px 0;
}

.top-bar-container {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.top-bar a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.95;
}

.top-bar a:hover { opacity: 1; text-decoration: underline; }

.top-bar .sep { opacity: 0.55; }

/* ============================
   Header + Nav
============================ */
.site-header {
  background: var(--navy);
  color: var(--white);
  padding: 18px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.logo {
  height: 60px;
  width: auto;
  display: block;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Desktop nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.main-nav a {
  text-decoration: none;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 10px;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: rgba(255,255,255,0.10);
}

/* Mobile toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 34px;
  cursor: pointer;
  line-height: 1;
  padding: 8px 10px;
  border-radius: 10px;
}

.mobile-nav-toggle:hover { background: rgba(255,255,255,0.10); }

/* ============================
   Buttons
============================ */
.btn {
  padding: 14px 26px;
  border-radius: 10px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  display: inline-block;
  margin: 0 10px 10px 0;
  border: 0;
}

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

.btn.primary:hover { filter: brightness(0.95); }
.btn.secondary:hover { filter: brightness(0.98); }

.btn.small { padding: 10px 18px; border-radius: 10px; font-size: 14px; }

/* ============================
   Hero
============================ */
.hero {
  position: relative;
  height: 520px;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  width: 100%;
  height: 520px;
  object-fit: cover;
  position: absolute;
  inset: 0;
  filter: brightness(65%);
}

.hero-content {
  position: relative;
  text-align: center;
  padding-top: clamp(84px, 12vh, 110px);
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 46px;
  margin: 0 0 10px;
}

.hero-content h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  margin: 10px 0 10px;
  font-weight: 600;
}

.tagline {
  font-size: 18px;
  margin: 0 auto 22px;
  max-width: 860px;
  opacity: 0.98;
}

/* ============================
   Trust bar (premium icons)
============================ */
.features-bar {
  background: var(--navy);
  color: var(--white);
  padding: 34px 0;
}


/* Features bar link colour */
.features-bar a{
  color: var(--white);
  text-decoration: none;
}
.features-bar a:hover{
  text-decoration: underline;
}

.features-grid.premium-icons {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 220px;
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
}

.feature-link{color:var(--white);text-decoration:none}
.feature-link:hover{text-decoration:underline}

.feature-item a { color: var(--white); text-decoration: none; }
.feature-item a:hover { text-decoration: underline; }

.icon-wrapper {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.icon-svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
}

/* =============================
   Services (How we can help)
============================= */
.services-overview {
  padding: 70px 0;
  background: linear-gradient(to bottom, #f9fbff 0%, #eef4fa 100%);
  text-align: center;
}

.services-overview h2 {
  font-size: 34px;
  font-family: var(--font-heading);
  margin: 0 0 6px;
}

.services-overview .intro {
  font-size: 18px;
  opacity: 0.9;
  margin: 0 auto 46px;
  max-width: 980px;
}

.services-grid {
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
}

.service-card {
  background: #fff;
  padding: 34px 28px;
  border-radius: var(--radius);
  width: 30%;
  min-width: 260px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.12);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: var(--accent);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 8px 20px rgba(31, 115, 201, 0.25);
}

.service-icon svg {
  width: 34px;
  height: 34px;
  fill: white;
  display: block;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  margin: 10px 0 10px;
}

.service-card p {
  opacity: .88;
  margin: 0 0 18px;
  flex-grow: 1; /* aligns buttons */
}

.service-card .btn.primary { margin: 0 auto; }

/* ============================
   Two-column sections (repairs / business)
============================ */
.repairs-section {
  background: #eef2f7;
  padding: 80px 0;
}

.repairs-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
}

.repairs-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.repairs-content h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  margin: 0 0 10px;
  color: var(--navy);
}

.repairs-content .intro {
  font-size: 18px;
  opacity: .92;
  margin: 0 0 22px;
}

.repairs-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  font-size: 18px;
}

.repairs-list li { margin-bottom: 10px; }

.business-section {
  padding: 90px 0;
  background: #ffffff;
}

.business-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 50px;
}

.business-grid.reverse {
  grid-template-columns: 1fr 1.1fr;
}

.business-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.business-content h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  margin: 0 0 10px;
  color: var(--navy);
}

.business-content .intro {
  font-size: 18px;
  opacity: .92;
  margin: 0 0 22px;
}

.business-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  font-size: 18px;
}

.business-content li { margin-bottom: 10px; }

/* ============================
   Testimonials + Reviews carousel
============================ */
.testimonials {
  background: #f0f4f8;
  padding: 70px 0;
  text-align: center;
}

.testimonials h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  margin: 0 0 8px;
}

.testimonial-intro {
  margin: 0 auto 24px;
  max-width: 900px;
  opacity: 0.9;
}

/* Carousel wrapper */
#google-review-carousel {
  position: relative;
  max-width: 980px;
  margin: 26px auto 0;
  overflow: hidden;
}

/* Track */
#google-review-carousel .carousel-inner {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  transition: transform 0.6s ease;
}

/* Slide */
#google-review-carousel .carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 30px;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  text-align: center;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.review-photo {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e5e7eb;
  flex-shrink: 0;
  background: #e9edf3;
}

.review-name {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--navy);
}

.review-time {
  font-size: 13px;
  opacity: 0.7;
}

#google-review-carousel .stars {
  font-size: 18px;
  margin: 8px 0 8px;
  color: #fbbf24;
}

#google-review-carousel p {
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
}

/* Hide arrows (you don't want them) */
#google-review-carousel .carousel-btn { display: none !important; }

/* Dots */
#google-review-carousel .carousel-dots {
  text-align: center;
  margin-top: 14px;
}

#google-review-carousel .carousel-dot {
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background: #95a3b3;
  display: inline-block;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s;
}

#google-review-carousel .carousel-dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

/* ================================
   Areas we cover (4 columns)
=============================== */
.service-areas-columns {
  padding: 80px 0;
  background: #ffffff;
  text-align: center;
}

.service-areas-columns h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--navy);
  margin: 0 0 10px;
}

.areas-subtext {
  font-size: 18px;
  opacity: 0.85;
  margin: 0 auto 40px;
  color: var(--navy);
  max-width: 980px;
}

.areas-columns-grid.four-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  max-width: 1000px;
  margin: 0 auto;
}

.area-col { display: flex; flex-direction: column; gap: 10px; }

.area-col span {
  font-size: 18px;
  color: var(--navy);
  padding: 6px 0;
  font-weight: 500;
  opacity: 0.92;
}

/* ============================
   Contact strip (optional reuse)
============================ */
.contact-strip {
  padding: 60px 0;
  background: #ffffff;
  text-align: center;
}

.contact-strip h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  margin: 0 0 24px;
}

.contact-grid {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-grid > div {
  min-width: 220px;
  max-width: 280px;
  background: #f6f8fa;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.contact-grid h3 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 18px;
}

.contact-grid p { margin: 6px 0; font-size: 15px; }

/* ============================
   Final CTA
============================ */
.final-cta {
  background: var(--navy-cta);
  color: var(--white);
  text-align: center;
  padding: 70px 0;
}

.final-cta h2 {
  font-size: 32px;
  font-family: var(--font-heading);
  margin: 0 0 8px;
}

.final-cta p {
  margin: 0 auto 20px;
  max-width: 900px;
  opacity: 0.95;
}

/* ============================
   Footer
============================ */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 50px 0 20px;
}

.footer-columns {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  margin: 0 0 12px;
  color: var(--white);
}

.footer-col p {
  margin: 6px 0;
  font-size: 15px;
  line-height: 1.45;
}

.footer-col a {
  color: #cfe3ff;
  text-decoration: none;
}

.footer-col a:hover { text-decoration: underline; }

.footer-bottom {
  text-align: center;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 14px;
}

.footer-bottom .highlight {
  color: var(--accent);
  font-weight: 600;
}

/* ============================
   Page templates
============================ */
.page-hero {
  background: #ffffff;
  padding: 48px 0 18px;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: 36px;
  margin: 0 0 8px;
  color: var(--navy);
}

.page-intro {
  margin: 0;
  font-size: 18px;
  opacity: 0.9;
  max-width: 980px;
}

.content-section {
  padding: 44px 0 70px;
}

.content-section h2 {
  font-family: var(--font-heading);
  color: var(--navy);
  margin-top: 26px;
}

.content-section ul {
  line-height: 1.7;
}

.cta-inline { margin-top: 28px; text-align: center; }

/* ============================
   Pricing
============================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
  margin-top: 22px;
}

.pricing-card {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  padding: 26px;
  position: relative;
  text-align: left;
}

.pricing-card h3 {
  font-family: var(--font-heading);
  margin: 0 0 8px;
  color: var(--navy);
}

.pricing-card .price {
  font-family: var(--font-heading);
  font-size: 30px;
  margin: 0 0 6px;
  color: var(--navy);
}

.pricing-card .price span {
  font-family: var(--font-body);
  font-size: 14px;
  opacity: 0.8;
  margin-left: 6px;
}

.pricing-card .min { margin: 0 0 14px; opacity: 0.8; }

.pricing-card ul { padding-left: 18px; margin: 0 0 14px; }
.pricing-card li { margin: 8px 0; }

.pricing-card .small { font-size: 14px; opacity: 0.85; margin: 0; }

.pricing-card.featured {
  border: 2px solid rgba(31,115,201,0.35);
  transform: translateY(-6px);
}

.pricing-card .badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
}

.pricing-footnote {
  margin: 20px auto 0;
  max-width: 980px;
  opacity: 0.85;
  text-align: center;
}

/* ============================
   Responsive
============================ */
@media (max-width: 900px) {
  .hero-content { padding-top: 92px; }
  .hero-content h1 { font-size: 34px; }
  .btn { margin: 8px 8px 0; }
  .services-grid { flex-direction: column; align-items: center; }
  .service-card { width: 100%; max-width: 520px; }
  .repairs-grid, .business-grid, .business-grid.reverse { grid-template-columns: 1fr; }
  .areas-columns-grid.four-col { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
}

@media (max-width: 800px) {
  /* mobile nav */
  .mobile-nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    flex-direction: column;
    background: rgba(5,23,45,0.95);
    padding: 14px;
    border-radius: 12px;
    width: min(92vw, 420px);
    position: absolute;
    right: 18px;
    top: 64px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
    z-index: 50;
  }
  .main-nav.open { display: flex; }
  .main-nav a { margin: 0; padding: 12px 12px; font-size: 16px; }

  /* trust bar mobile spacing */
  .features-grid.premium-icons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .feature-item {
    width: 100%;
    max-width: 420px;
  }

  /* logo */
  .logo { height: 50px; }
}

@media (max-width: 500px) {
  .areas-columns-grid.four-col { grid-template-columns: 1fr; }
  #google-review-carousel .carousel-slide { text-align: center; padding: 22px; }
  .review-photo { width: 64px; height: 64px; }
}


/* Center review header/content */
#google-review-carousel .review-header{
  justify-content: center;
  text-align: center;
}
#google-review-carousel .review-header > div{
  text-align: left; /* keep name/time readable */
}
@media (max-width: 600px){
  #google-review-carousel .review-header{
    flex-direction: column;
  }
  #google-review-carousel .review-header > div{
    text-align: center;
  }
}



/* Footer: enforce 3-column layout */
.site-footer .footer-columns{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  align-items: start;
}
.site-footer .footer-col{
  min-width: 0;
}
@media (max-width: 900px){
  .site-footer .footer-columns{
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

/* ============================
   SERVICES PAGE – SAME STYLE, NEW LAYOUT
============================ */
.services-page{
  padding: 80px 0;
  background: #f6f8fa;
  text-align: center;
}

.services-page h1{
  font-family: var(--font-heading);
  color: var(--navy);
  font-size: 36px;
  margin: 0 0 12px;
}

.services-intro{
  max-width: 820px;
  margin: 0 auto 50px;
  font-size: 18px;
  opacity: .85;
}

.services-grid.services-grid-2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: stretch;
}

.service-card.image-card{
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  text-align: left;
}

.service-card-wide .service-image img{
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.service-body{
  padding: 26px 26px 28px;
}

.service-body h2{
  font-family: var(--font-heading);
  color: var(--navy);
  font-size: 22px;
  margin: 0 0 10px;
}

.service-body p{
  margin: 0 0 14px;
  opacity: .9;
}

.service-body ul{
  margin: 0 0 18px;
  padding-left: 18px;
}

.service-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Mobile */
@media (max-width: 900px){
  .services-grid.services-grid-2{
    grid-template-columns: 1fr;
  }
  .service-card-wide .service-image img{
    height: 170px;
  }
}
/* SERVICES PAGE – 2 COLUMN GRID */
.services-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* Each service card fills its column */
.services-grid-2 .service-card {
    width: 100%;
}

/* Mobile: single column */
@media (max-width: 900px) {
    .services-grid-2 {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-body {
    flex-grow: 1;
}
/* SERVICE CARD */
.service-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden; /* 🔑 makes image follow rounded corners */
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

/* IMAGE AT TOP */
.service-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* CONTENT BELOW IMAGE */
.service-content {
    padding: 28px;
}

/* Lists inside service cards */
.service-content ul {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.service-content li {
    margin-bottom: 8px;
    font-size: 15px;
}


