/* ============================================================
   STYLES.CSS — THEME & COLOURS

   To change the blue: edit --color-primary below.
   To change any colour, find the variable and swap the hex code.
   Use a colour picker at: https://www.google.com/search?q=color+picker
   ============================================================ */

:root {
  --color-primary:      #4d96e8;   /* main blue — buttons, accents */
  --color-primary-dark: #1240a8;   /* darker blue — hover states */
  --color-primary-pale: #dbeafe;   /* very light blue — card backgrounds */
  --color-bg:           #ffc9df;   /* page background */
  --color-surface:      #f0f6ff;   /* section backgrounds */
  --color-text:         #0f172a;   /* main body text */
  --color-text-light:   #475569;   /* subtitle / caption text */
  --color-border:       #bfdbfe;   /* divider lines */
  --color-white:        #ffffff;

  --font-main: 'Segoe UI', system-ui, sans-serif;
  --max-width: 1100px;
}

/* --- RESET --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
}

/* ============================================================
   HEADER / NAV — solid blue background, white text
   ============================================================ */
header {
  background-color: var(--color-primary);
  padding: 0 3rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 12px rgba(26, 86, 219, 0.25);
  border-bottom: 9px solid var(--color-white);
}

.logo {
  font-size: clamp(0.85rem, 3.5vw, 1.4rem);
  font-weight: 800;
  color: var(--color-white);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   HEADER LOGO IMAGE — ~20×20 px thumbnail beside the logo text
   To add your image: set the src attribute on the <img> in the header.
   ============================================================ */
.header-logo-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 3px;
  flex-shrink: 0;
}

/* ============================================================
   HERO LOGO IMAGE — image to the left of the hero title
   ============================================================ */
.hero-logo-img {
  display: inline-block;
  width: 96px;
  height: 96px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 0.6rem;
  margin-bottom: 0.2rem;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

nav a:hover,
nav a.active {
  color: var(--color-white);
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   HERO — blue gradient band
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1e40af 100%);
  color: var(--color-white);
  padding: 2.5rem 2rem;
  border-bottom: 19px solid var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Logo + title on one horizontal row, centred as a unit */
.hero-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.hero-logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0;
  color: var(--color-white);
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 auto;
  white-space: nowrap;
  text-align: center;
}

/* ============================================================
   PAGE HERO (services / contact pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1e40af 100%);
  color: var(--color-white);
  text-align: center;
  padding: 4rem 2rem 3.5rem;
  border-bottom: 19px solid var(--color-white); /* ~5mm white strip */
}

.page-hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.75px;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.page-hero p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 500px;
  margin: 0 auto;
}

/* ============================================================
   STORY SECTION
   ============================================================ */
.stories {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

.story-card {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 4rem 0;
  position: relative;
}

/* Full-width white strip between story cards — breaks out of the constrained .stories container */
.story-card:not(:last-child)::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 19px; /* ~5mm */
  background: var(--color-white);
}

.story-card:nth-child(even) {
  flex-direction: row-reverse;
}

.story-card:last-child {
  /* no border needed — dividers handled by ::after on non-last cards */
}

.story-image {
  flex: 1;
  min-width: 0;
}

.story-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
}

.story-image .img-placeholder {
  width: 100%;
  height: 360px;
  border-radius: 12px;
  background-color: var(--color-surface);
  border: 2px dashed var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--color-primary);
  font-size: 0.9rem;
}

.story-image .img-placeholder span {
  font-size: 2.5rem;
}

.story-text {
  flex: 1;
  min-width: 0;
}

.story-number {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  background: var(--color-primary-pale);
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.story-text h2 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
  color: var(--color-text);
}

.story-text p {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 480px;
}

.story-text div[style*="text-align:center"] p {
  max-width: 100%;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.services-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 2rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  box-shadow: 0 8px 28px rgba(26, 86, 219, 0.12);
  transform: translateY(-3px);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--color-primary-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.service-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.service-tag {
  display: inline-block;
  background: var(--color-primary-pale);
  color: var(--color-primary-dark);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.services-note {
  background: var(--color-surface);
  border-top: 3px solid var(--color-primary);
  max-width: var(--max-width);
  margin: 0 auto 4rem;
  padding: 1.5rem 2rem;
  border-radius: 0 0 12px 12px;
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.services-note strong {
  color: var(--color-primary);
}

/* ============================================================
   SERVICE CARD — clickable state
   ============================================================ */
.service-card {
  cursor: pointer;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  opacity: 0.8;
  transition: opacity 0.2s;
}

.service-card:hover .read-more {
  opacity: 1;
}

/* ============================================================
   MODAL POPUP
   ============================================================ */
#modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

#modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--color-white);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 580px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--color-surface);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close:hover {
  background: var(--color-primary-pale);
  color: var(--color-primary);
}

.modal-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.modal-box h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  letter-spacing: -0.4px;
}

.modal-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--color-surface);
  border-radius: 10px;
  border-left: 3px solid var(--color-primary);
}

.modal-meta span {
  font-size: 0.88rem;
  color: var(--color-text-light);
}

.modal-meta span strong {
  color: var(--color-text);
}

#modal-body {
  font-size: 0.98rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-bio {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 2rem;
}

.contact-bio .bio-avatar {
  width: 72px;
  height: 72px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

.contact-bio h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.contact-bio .bio-title {
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.contact-bio p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.75;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-details h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.contact-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--color-primary-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-item-body strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary);
  margin-bottom: 0.2rem;
}

.contact-item-body span {
  font-size: 1rem;
  color: var(--color-text);
  font-weight: 500;
}

/* ============================================================
   SUBSCRIBE PAGE
   ============================================================ */
.subscribe-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.subscribe-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
}

.required {
  color: var(--color-primary);
}

.optional {
  font-weight: 400;
  color: var(--color-text-light);
  font-size: 0.82rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9ca3af;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Custom select arrow */
.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: '▾';
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-light);
  pointer-events: none;
  font-size: 0.85rem;
}

.select-wrapper select {
  appearance: none;
  cursor: pointer;
}

.submit-btn {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 8px;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-main);
  transition: background 0.2s, transform 0.15s;
  width: 100%;
}

.submit-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

/* Success state */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  gap: 0.75rem;
}

.success-icon {
  font-size: 3rem;
}

.form-success h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.form-success p {
  color: var(--color-text-light);
  max-width: 360px;
}

/* Aside panel */
.subscribe-aside {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 2rem;
  position: sticky;
  top: 88px;
}

.subscribe-aside h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
}

.aside-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.aside-list li {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

.aside-note {
  font-size: 0.82rem;
  color: var(--color-text-light);
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  line-height: 1.6;
}

/* ============================================================
   FOOTER — blue
   ============================================================ */
footer {
  background: var(--color-primary);
  text-align: center;
  padding: 1.75rem 2rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
}

footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 700px) {
  header { padding: 0 1rem; }
  .logo { font-size: clamp(0.75rem, 3.8vw, 1rem); gap: 0.35rem; }
  nav { gap: 1rem; }
  nav a { font-size: 0.82rem; }

  .hero {
    padding: 1.75rem 1.25rem;
  }

  .hero-top {
    flex-direction: column;
    gap: 0.6rem;
  }

  .hero-logo-img {
    width: 64px;
    height: 64px;
  }

  .story-card,
  .story-card:nth-child(even) {
    flex-direction: column;
    gap: 2rem;
    padding: 2.5rem 0;
  }

  .hero h1,
  .page-hero h1 { font-size: 1.9rem; }

  .hero-sub {
    white-space: normal;
    font-size: 0.95rem;
  }

  .story-text h2 { font-size: 1.4rem; }

  .contact-wrapper,
  .subscribe-wrapper {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
