/*
  Global styles for the North Shore Media site.  The palette and spacing
  reference the West Coast Content inspiration while maintaining our own
  brand identity.  Variables defined in :root allow for easy colour tweaks.
*/

/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --primary-color: #ef4444; /* rich red accent reminiscent of the source site */
  --primary-light: #fde9e9; /* light tint of primary for backgrounds */
  --text-color: #2c2c2c; /* dark grey for readability */
  --heading-color: #1a1a1a; /* slightly darker for headings */
  --bg-color: #ffffff; /* base background */
  --light-bg: #fafafa; /* subtle off‑white for alternating sections */
  --border-radius: 8px;
  --max-width: 1200px;

  /* Dark navy colour for contrast sections */
  --dark-bg-color: #0d253f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Navigation */
.site-header {
  background: var(--bg-color);
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary-color);
  text-decoration: none;
}

/* Logo image styling */
/*
  The logo should remain crisp and clearly legible on both desktop and mobile.  To
  increase its prominence as requested, bump the height by roughly 20% (from 58
  pixels to 70px).  The width will adjust automatically to preserve the
  original aspect ratio.
*/
.logo-image {
  height: 70px;
  width: auto;
  display: block;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.nav ul li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.nav ul li a:hover,
.nav ul li a.active {
  color: var(--primary-color);
}

/* Dark background section */
.dark-bg {
  background-color: var(--dark-bg-color);
  color: #ffffff;
}
.dark-bg .section-title,
.dark-bg .section-subtitle {
  color: #ffffff;
}
/* Service cards in dark section */
/* Service cards in dark section
   When inside a dark background we want the panels themselves to stand out
   against the navy backdrop.  Override to use white backgrounds with
   our regular text colours so the content remains legible. */
.dark-bg .service-card {
  background-color: #ffffff;
  color: var(--text-color);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.dark-bg .service-card h3 {
  color: var(--heading-color);
}
.dark-bg .service-card ul li {
  color: var(--text-color);
}
.system-note {
  margin-top: 2rem;
  text-align: center;
  color: #d6e4f0;
  font-style: italic;
}

/* Results grid styling */
.results-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 2rem;
}
.result-card {
  background: #ffffff;
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.result-value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.result-description {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--heading-color);
}
.result-note {
  font-size: 0.85rem;
  color: #777;
}

/* Imagine this grid */
.imagine-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 2rem;
}
.imagine-grid .before,
.imagine-grid .after {
  background: #ffffff;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  color: var(--text-color);
}
.imagine-grid h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: var(--heading-color);
}
.imagine-grid ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.imagine-grid li {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Use coloured icons for the Imagine This before and after lists.  The
   ::before pseudo‑element inserts either a red X or a green check mark
   depending on whether the list is in the `.before` or `.after` column. */
.imagine-grid .before li {
  position: relative;
  padding-left: 1.5rem;
}
.imagine-grid .before li::before {
  content: '\2716'; /* heavy multiplication X */
  position: absolute;
  left: 0;
  top: 0;
  color: #e74c3c;
}
.imagine-grid .after li {
  position: relative;
  padding-left: 1.5rem;
}
.imagine-grid .after li::before {
  content: '\2714'; /* check mark */
  position: absolute;
  left: 0;
  top: 0;
  color: #27ae60;
}

/*
  The Imagine This section can appear inside a dark background (e.g. navy) and
  still present the before/after boxes with sufficient contrast.  When the
  parent section has the .dark-bg class we override the card styling to use
  semi‑transparent panels and lighter text.  This preserves legibility while
  maintaining the overall dark aesthetic.
*/
.dark-bg .imagine-grid .before,
.dark-bg .imagine-grid .after {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.dark-bg .imagine-grid h3 {
  color: #ffffff;
}

.dark-bg .imagine-grid li {
  color: #f0f0f0;
}

/* Mobile navigation */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
}

/* Hero section */
.hero {
  padding: 3rem 0 5rem;
  background: linear-gradient(90deg, var(--primary-light) 0%, #ffffff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--heading-color);
}

.hero-text .accent {
  color: var(--primary-color);
}

.hero-text p {
  margin-bottom: 2rem;
  font-size: 1rem;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  /* Center button groups within CTA sections */
  justify-content: flex-start;
}

/* Center buttons specifically in the CTA section */
.cta-section .button-group {
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

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

.btn-primary:hover {
  background-color: #d73333;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
}

/* Section layout */
.section {
  padding: 4rem 0;
}

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

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--heading-color);
}

.section-subtitle {
  text-align: center;
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--text-color);
}

/* Card grids */
.card-grid {
  display: grid;
  gap: 2rem;
}

.card-grid.four-cols {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.card-grid.three-cols {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card-grid.two-cols {
  /*
    For the four‑part system we want the cards to appear in a two‑by‑two
    arrangement on wider screens instead of wrapping into three columns.  On
    smaller screens the cards will stack.  Using fixed repeat(2) ensures two
    columns on medium/large widths.  A media query resets to a single column
    below 600px.
  */
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .card-grid.two-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Cards */
.card,
.service-card,
.benefit-card {
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: left;
  transition: transform 0.2s ease;
}

.card:hover,
.service-card:hover,
.benefit-card:hover {
  transform: translateY(-4px);
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.icon.service {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.card h3,
.service-card h3,
.benefit-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  color: var(--heading-color);
}

.card p,
.benefit-card p {
  margin: 0;
  color: var(--text-color);
  font-size: 0.95rem;
}

.service-card ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin: 0.5rem 0 0;
  color: var(--text-color);
  font-size: 0.95rem;
}

.service-card ul li + li {
  margin-top: 0.3rem;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-value span {
  font-size: 1.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--heading-color);
}

/* Transformation grid */
.transform-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.transform-grid > div {
  flex: 1 1 300px;
  border: 1px solid #eee;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  background-color: #fff;
}

.transform-grid h3 {
  margin-top: 0;
  color: var(--primary-color);
}

.transform-grid ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.transform-grid li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.transform-grid .before li::before {
  content: '\2716'; /* heavy multiplication X */
  color: #e74c3c;
  position: absolute;
  left: 0;
  top: 0;
}

.transform-grid .after li::before {
  content: '\2714'; /* check mark */
  color: #27ae60;
  position: absolute;
  left: 0;
  top: 0;
}

/* CTA section */
.cta-section {
  text-align: center;
}

.cta-container h2 {
  margin-top: 0;
  font-size: 2rem;
  color: var(--heading-color);
}

.cta-container p {
  max-width: 600px;
  margin: 0.5rem auto 2rem;
  color: var(--text-color);
}

/* Footer */
.site-footer {
  background-color: var(--light-bg);
  padding: 2.5rem 0 1rem;
  border-top: 1px solid #eee;
  color: var(--text-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.footer-column h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: var(--heading-color);
}

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

.footer-column ul li {
  margin-bottom: 0.4rem;
}

.footer-column ul li a {
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.2s ease;
}

.footer-column ul li a:hover {
  color: var(--primary-color);
}

.social-links {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  padding: 0;
  margin: 0.5rem 0;
}

.social-links li a {
  font-size: 1.3rem;
  color: var(--primary-color);
  text-decoration: none;
}

.contact-email a {
  color: var(--text-color);
  text-decoration: none;
}

.contact-email a:hover {
  color: var(--primary-color);
}

.tagline {
  font-size: 0.9rem;
  color: var(--text-color);
  margin-top: 0.5rem;
}

.copyright {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted-color, #777);
}

/* Page hero (other pages) */
.page-hero {
  position: relative;
  height: 40vh;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

.page-hero .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.page-hero .hero-overlay {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 1rem;
}

.page-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.page-hero p {
  font-size: 1rem;
  margin: 0 auto;
  line-height: 1.5;
  color: #f3f3f3;
}

/* Service detail sections */
.service-detail {
  max-width: 800px;
  margin: 0 auto;
}

.service-detail h2 {
  color: var(--heading-color);
  font-size: 1.8rem;
  margin-top: 0;
}

.service-detail p {
  margin-bottom: 1rem;
}

.feature-list {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin: 0;
}

.feature-list li {
  margin-bottom: 0.5rem;
}

/* Contact form */
.contact-form-container {
  max-width: 800px;
  margin: 0 auto;
}

.contact-form {
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--border-radius);
  padding: 2rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-group.full-width {
  flex-basis: 100%;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.privacy-note {
  margin-top: 0.5rem;
  text-align: center;
  color: var(--muted-color, #777);
  font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text {
    order: 2;
  }
  .hero-image {
    order: 1;
  }
  .nav ul {
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-color);
    width: 200px;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    display: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  }
  .nav ul.open {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .nav ul li {
    margin-bottom: 0.5rem;
  }
}