/* =========================
   ROOT VARIABLES
========================= */
:root {
  --color-primary: #82fff3;
  --color-primary-dark: #82d8e8;
  --color-background: #ecfefa;
  --color-card: #ddfcf7;
  --color-text: #333333;
  --color-muted: #666666;

  --spacing-unit: 0.5rem;
  --spacing-sm: calc(var(--spacing-unit) * 2);
  --spacing-md: calc(var(--spacing-unit) * 4);
  --spacing-lg: calc(var(--spacing-unit) * 6);

  --font-size-xl: 2rem;
}

/* =========================
   GLOBAL STYLES
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =========================
   NAVBAR
========================= */
header {
  width: 100%;
  background: transparent;
  position: relative;
  z-index: 100;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-img {
  height: 200px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--color-text);
  padding: 0.25rem 0.5rem;
  line-height: 1;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: var(--spacing-md);
}

.nav-links a {
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--color-primary-dark);
}

/* =========================
   MOBILE NAV
========================= */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .navbar {
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    background: var(--color-card);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding: var(--spacing-sm) 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem var(--spacing-md);
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }
}

/* =========================
   HERO SECTION
========================= */
#hero {
  background: var(--color-card);
  padding: var(--spacing-lg);
  width: 100%;
  max-width: 1200px;
  text-align: center;
  border-radius: 12px;
  margin: var(--spacing-md) auto 0 auto;
}

#hero h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

#hero p {
  font-size: 1.2rem;
  color: var(--color-muted);
}

/* =========================
   SECTIONS
========================= */
section {
  padding: var(--spacing-lg) var(--spacing-md);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

section h2 {
  text-align: center;
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-xl);
  font-weight: bold;
  width: 100%;
}

section h3 {
  text-align: center;
  margin-bottom: var(--spacing-sm);
}

section p {
  text-align: center;
}

section ul {
  list-style-position: inside;
  display: inline-block;
  text-align: left;
  width: 100%;
}

/* Center everything inside sections by default */
section {
  text-align: center;
}

/* =========================
   GRID BOXES
========================= */
.grid-boxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-md);
  width: 100%;
}

.grid-boxes > * {
  flex: 1 1 260px;
  max-width: calc(33.333% - var(--spacing-md));
}

/* =========================
   CARDS / BOXES
========================= */
.box {
  background: var(--color-card);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  text-align: center;
  color: var(--color-text);
  text-decoration: none;
}

.box:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.12);
  cursor: pointer;
}

.box h3 {
  margin-bottom: 0.5rem;
}

.box p {
  font-size: 0.95rem;
  color: var(--color-muted);
}

.box img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* Colour variants - unified for consistency */
.warm-bg        { background: #ddfcf7; }
.warm-bg-light  { background: #ddfcf7; }
.warm-bg-dark   { background: #ddfcf7; }
.warm-bg-accent { background: #ddfcf7; }

/* =========================
   SERVICE CARDS
========================= */
.service-link {
  display: block;
  cursor: pointer;
}

.service-link:focus-visible {
  outline: 3px solid var(--color-primary-dark);
  outline-offset: 4px;
}

/* =========================
   BUTTONS
========================= */
.cta-button {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  background-color: var(--color-primary);
  color: var(--color-text);
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  margin-top: 10px;
}

.cta-button:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
}

.btn {
  display: inline-block;
  margin: 10px 5px 0;
  padding: 12px 20px;
  background-color: #2c2c2c;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn:hover { background-color: #444; }

.btn-outline {
  background-color: transparent;
  border: 2px solid #2c2c2c;
  color: #2c2c2c;
}

.btn-outline:hover {
  background-color: #2c2c2c;
  color: #fff;
}

/* =========================
   CONTACT FORM
========================= */
form {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: 0 auto;
  gap: var(--spacing-sm);
}

form input,
form textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

form textarea {
  resize: vertical;
  min-height: 120px;
}

form button {
  padding: 0.9rem;
  background-color: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: var(--color-primary-dark);
}

/* =========================
   FOOTER
========================= */
footer {
  background: var(--color-card);
  padding: var(--spacing-md) 0;
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  margin-top: auto;
}

.footer-content {
  text-align: center;
  padding: 30px 20px;
}

.social-links {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.social-links img {
  width: 26px;
  height: 26px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-links a:hover img {
  transform: translateY(-3px);
  opacity: 0.75;
}

/* =========================
   ANIMATIONS
========================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.9s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   RESPONSIVE BREAKPOINTS
========================= */
@media (max-width: 480px) {
  #hero h2 { font-size: 1.6rem; }
  #hero p { font-size: 1rem; }
  section { padding: var(--spacing-md); }
  .grid-boxes > * { max-width: 100%; }
}

@media (min-width: 481px) and (max-width: 768px) {
  #hero h2 { font-size: 2rem; }
  #hero p { font-size: 1.1rem; }
  .grid-boxes > * { max-width: calc(50% - var(--spacing-sm)); }
}

@media (min-width: 769px) and (max-width: 992px) {
  #hero h2 { font-size: 2.2rem; }
  .grid-boxes > * { max-width: calc(50% - var(--spacing-md)); }
  section { padding: var(--spacing-lg); }
}

@media (min-width: 993px) and (max-width: 1200px) {
  #hero h2 { font-size: 2.5rem; }
  .grid-boxes > * { max-width: calc(33.333% - var(--spacing-md)); }
  section { padding: var(--spacing-lg) var(--spacing-md); }
}

@media (min-width: 1201px) {
  #hero h2 { font-size: 2.8rem; }
  .grid-boxes > * { max-width: calc(33.333% - var(--spacing-md)); }
  section { padding: var(--spacing-lg) var(--spacing-lg); }
}

/* ── Add these to your existing style.css ── */

/* "Learn more →" hint inside clickable boxes */
.box-link-hint {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

a.box:hover .box-link-hint {
  opacity: 1;
  transform: translateX(4px);
}

/* Back link on sub-pages */
.back-link {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.6rem 1.4rem;
  border: 2px solid currentColor;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.back-link:hover {
  background: currentColor;
  /* colour will inherit from your theme */
}


