/*
  style.css — Shared styles for itscatching.uk

  This one file controls the look of every page.
  Change a colour here and it changes everywhere.

  The :root section defines brand colours as variables.
  Instead of typing #4A6741 everywhere, we type var(--olive).
  If the brand colour changes, we update it in one place.
*/

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

:root {
  --olive: #4A6741;
  --olive-light: #6B8C60;
  --olive-dark: #3A5233;
  --pink: #E8788A;
  --pink-light: #F2A5B0;
  --silver: #C0C0C0;
  --dark: #0D1117;
  --dark-speckle: #2D3B2D;
  --cream: #FAFAF5;
  --white: #FFFFFF;
  --text: #2C2C2C;
  --text-light: #5A5A5A;
}

/* ---- RESET & BASE ----
   Browsers add their own spacing and styles to elements.
   This removes that so we start from a clean slate.
*/
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

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


/* ---- NAVIGATION ----
   The nav bar appears at the top of every page.
   It's "sticky" — it stays visible when you scroll.
*/
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 40px;
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;  /* z-index controls layering — 100 means "on top of everything" */
}

.nav-logo img {
  height: 36px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-links a {
  color: var(--silver);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;  /* smooth colour change on hover */
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

/* CTA button in the nav */
.nav-cta {
  background: var(--pink);
  color: var(--white) !important;  /* !important overrides the silver above */
  padding: 8px 20px;
  border-radius: 5px;
  font-weight: 600;
}
.nav-cta:hover {
  background: var(--olive);
  color: var(--white) !important;
}

/* Mobile hamburger menu — hidden on desktop, shown on small screens */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
}


/* ---- LAYOUT HELPERS ----
   Reusable classes for common layout patterns.
   Instead of writing the same CSS for every section,
   we give elements these class names.
*/
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 60px 0;
}

.section.shaded {
  background: var(--cream);
}

.section.dark {
  background: var(--dark);
  color: var(--white);
}

.text-center { text-align: center; }

.two-col {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.two-col .col { flex: 1; }


/* ---- TYPOGRAPHY ---- */
h1 {
  color: var(--olive);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

h2 {
  color: var(--olive);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

h3 {
  color: var(--dark-speckle);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

p {
  margin-bottom: 16px;
  font-size: 15px;
}

.subtitle {
  color: var(--text-light);
  font-size: 18px;
  margin-bottom: 32px;
}

/* On dark backgrounds, headings and text need light colours */
.dark h1, .dark h2, .dark h3 { color: var(--white); }
.dark p, .dark .subtitle { color: var(--silver); }


/* ---- HERO ----
   The big banner at the top of the home page.
*/
.hero {
  background: var(--dark);
  padding: 80px 40px;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  font-size: 42px;
  margin-bottom: 12px;
}

.hero .subtitle {
  color: var(--olive-light);
  font-size: 20px;
  margin-bottom: 32px;
}

.hero .tagline {
  color: var(--olive-light);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 16px;
}


/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  border: none;
}

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

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--olive-light);
}
.btn-secondary:hover {
  background: var(--olive);
  color: var(--white);
  border-color: var(--olive);
}

.btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
}


/* ---- STATS BAR ---- */
.stats-bar {
  display: flex;
  justify-content: space-around;
  text-align: center;
  padding: 40px 20px;
  background: var(--olive);
}

.stat-item .stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  display: block;
}

.stat-item .stat-label {
  font-size: 13px;
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: 1px;
}


/* ---- FEATURE LIST (icon + text rows) ---- */
.feature-list {
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}

.feature-list li img {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.feature-list .feature-text h3 {
  margin-bottom: 4px;
}

.feature-list .feature-text p {
  margin-bottom: 0;
  font-size: 14px;
  color: var(--text-light);
}


/* ---- CARDS (for pricing tiers, features, etc.) ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid #E5E5E5;
  border-radius: 10px;
  padding: 28px;
  text-align: center;
}

.card.featured {
  border-color: var(--pink);
  box-shadow: 0 4px 20px rgba(232, 120, 138, 0.15);
}

.card h3 { margin-bottom: 12px; }
.card .price {
  font-size: 28px;
  font-weight: 700;
  color: var(--olive);
  margin-bottom: 16px;
}
.card .price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-light);
}
.card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 20px;
}
.card ul li {
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  font-size: 14px;
  color: var(--text-light);
}
.card ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 14px; height: 14px;
  background: var(--olive);
  border-radius: 50%;
}
.card ul li::after {
  content: '';
  position: absolute;
  left: 3px; top: 13px;
  width: 7px; height: 3px;
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(-45deg);
}


/* ---- DIVIDER ---- */
.divider {
  height: 3px;
  background: linear-gradient(90deg, var(--olive), var(--pink), var(--olive));
  opacity: 0.4;
}


/* ---- FOOTER ---- */
.footer {
  background: var(--dark);
  padding: 40px;
  text-align: center;
}

.footer img { width: 80px; margin-bottom: 12px; }
.footer p { font-size: 12px; color: var(--text-light); margin-bottom: 4px; }
.footer a { color: var(--olive-light); }


/* ---- PAGE HEADER (for inner pages) ----
   A smaller banner at the top of non-home pages
*/
.page-header {
  background: var(--dark);
  padding: 40px;
  text-align: center;
}
.page-header h1 {
  color: var(--white);
  font-size: 32px;
  margin-bottom: 8px;
}
.page-header .subtitle {
  color: var(--olive-light);
  margin-bottom: 0;
}


/* ---- FORM ---- */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark-speckle);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #D0D0D0;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}
.form-group textarea { min-height: 120px; resize: vertical; }


/* ---- RESPONSIVE ----
   @media rules change the layout on smaller screens.
   When the browser window is narrower than 768px (tablet/phone),
   these rules kick in.
*/
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0; right: 0;
    background: var(--dark);
    padding: 20px 40px;
    gap: 16px;
  }

  .hero { padding: 50px 24px; }
  .hero h1 { font-size: 28px; }

  .container { padding: 0 20px; }
  .two-col { flex-direction: column; }
  .stats-bar { flex-wrap: wrap; gap: 20px; }
  .btn-group { flex-direction: column; align-items: center; }

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