/*
Theme Name: Once Upon My Name
Theme URI: http://onceuponmyname.co.uk
Author: User
Description: Custom WordPress theme for Once Upon My Name
Version: 1.0
*/
/* Global styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fdf7ef;
}

.container {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Navigation */
header {
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  /* Align items to the start so the logo and site name stay on the left */
  justify-content: flex-start;
  padding: 15px 0;
}

.logo-wrapper {
  display: flex;
  align-items: center;
}

.logo {
  width: 40px;
  height: 40px;
  margin-right: 8px;
}

.brand-name {
  font-size: 1.4rem;
  font-weight: bold;
  color: #005baa;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  color: #555555;
  font-weight: 500;
  transition: color 0.3s;
}

/* Push the navigation menu to the right side of the header when the call-to-action
   button is removed. This ensures the logo stays on the left while the
   navigation aligns to the right. */
.nav nav {
  margin-left: auto;
}

.nav-list a:hover {
  color: #ff7043;
}

/* Buttons */
.button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 12px;
  transition: background 0.3s, color 0.3s, border 0.3s;
}

.button.primary {
  background: #ff7043;
  color: #ffffff;
}

.button.primary:hover {
  background: #e85a2a;
  color: #ffffff;
}

.button.secondary {
  background: #ffffff;
  color: #ff7043;
  border: 2px solid #ff7043;
}

.button.secondary:hover {
  background: #ff7043;
  color: #ffffff;
}

.button.big {
  padding: 16px 32px;
  font-size: 1.1rem;
}

/* Hero Section */
.hero {
  /* Use the supplied illustration as the full‑bleed background for the hero
     section. The image fills the viewport and scales to cover the space. */
  background: url('assets/hero_bg.png') center center/cover no-repeat;
  color: #ffffff;
  padding: 80px 0;
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  /* Give each half of the hero section equal width on larger screens. This
     helps keep the tagline on a single line by allowing more horizontal
     space for text. */
  flex-direction: row;
}

.hero-text {
  /* Allow the text column to take up half the width on desktop, giving
     sentences more horizontal room to avoid awkward wrapping. */
  flex: 1 1 50%;
  min-width: 280px;
  margin-right: 30px;
}

.hero-text h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-text .tagline {
  font-size: 1.1rem;
  margin-bottom: 8px;
  /* Prevent narrow columns from squeezing the tagline onto multiple
     lines unnecessarily. Allow text to wrap naturally at spaces when
     needed rather than breaking mid‑word. */
  white-space: normal;
}

.hero-image {
  /* Match the image column to the text column width for balance. */
  flex: 1 1 50%;
  min-width: 260px;
  text-align: center;
}

.hero-image img {
  width: 100%;
  max-width: 450px;
  height: auto;
}

/* Audience Section */
.audience {
  background: #f7f3e9;
  padding: 60px 0;
  text-align: center;
}

.audience h2 {
  margin-bottom: 40px;
  color: #005baa;
  font-size: 2rem;
}

.audience .cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 24px;
  text-align: center;
  flex: 1 1 280px;
}

.card img {
  width: 90px;
  height: 90px;
  margin-bottom: 16px;
  border-radius: 50%;
  object-fit: cover;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.3rem;
  color: #005baa;
}

.card p {
  font-size: 0.95rem;
  color: #666666;
  margin-bottom: 16px;
}

/* Join Section */
.join {
  background: #005baa;
  color: #ffffff;
  padding: 60px 0;
}

.join-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.join-text {
  flex: 1;
  min-width: 280px;
}

.join-text h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 2rem;
  line-height: 1.3;
}

.join-text p {
  margin-bottom: 24px;
  font-size: 1rem;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.join-image {
  flex: 1;
  min-width: 260px;
  text-align: center;
}

.join-image img {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Samples */
.samples {
  padding: 60px 0;
  background: #ffffff;
  text-align: center;
}

.samples h2 {
  color: #005baa;
  margin-bottom: 40px;
  font-size: 2rem;
}

.sample-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.sample {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  flex: 1 1 280px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
}

.sample img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.sample h3 {
  margin: 0;
  padding: 12px;
  font-size: 1.1rem;
  color: #005baa;
}

/* Print Section */
.print {
  background: #f7f3e9;
  padding: 60px 0;
}

.print-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.print-text {
  flex: 1;
  min-width: 280px;
}

.print-text h2 {
  font-size: 2rem;
  color: #005baa;
  margin-top: 0;
  margin-bottom: 16px;
}

.print-text p {
  margin-bottom: 16px;
  color: #555555;
}

.print-text ul {
  margin: 0 0 16px 20px;
  padding: 0;
  list-style: disc;
  color: #666666;
  font-size: 0.95rem;
}

.print-image {
  flex: 1;
  min-width: 260px;
  text-align: center;
}

.print-image img {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* How It Works */
.how {
  background: #ffffff;
  padding: 60px 0;
}

.how h2 {
  text-align: center;
  color: #005baa;
  margin-bottom: 40px;
  font-size: 2rem;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.step {
  background: #f7f3e9;
  padding: 24px;
  border-radius: 8px;
  text-align: center;
  flex: 1 1 280px;
  max-width: 300px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ff7043;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-weight: bold;
  font-size: 1.3rem;
}

.step h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #005baa;
  font-size: 1.2rem;
}

.step p {
  color: #555555;
  font-size: 0.95rem;
}

/* Tech Stack */
.tech {
  background: #fdf7ef;
  padding: 60px 0;
  text-align: center;
}

.tech h2 {
  color: #005baa;
  margin-bottom: 16px;
  font-size: 2rem;
}

.tech p {
  margin-bottom: 24px;
  color: #666666;
  font-size: 0.95rem;
}

.tech-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.tech-logos span {
  background: #ffffff;
  padding: 10px 16px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  font-size: 0.9rem;
  color: #005baa;
}

/* Footer */
footer {
  background: #005baa;
  color: #ffffff;
  padding: 20px 0;
  text-align: center;
}

footer a {
  color: #ffffff;
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .hero-text {
    margin-right: 0;
    margin-bottom: 20px;
  }
  .nav-list {
    gap: 12px;
  }
  .join-inner {
    flex-direction: column;
    text-align: center;
  }
  .print-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .nav-list {
    display: none;
  }
  .hero-text h1 {
    font-size: 1.8rem;
  }
  .button.big {
    font-size: 0.95rem;
    padding: 14px 24px;
  }
  .audience .cards {
    flex-direction: column;
  }
  .sample {
    max-width: 100%;
  }
  .steps {
    flex-direction: column;
  }
}

/* Additional responsive font adjustments */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 1.8rem;
  }
  .hero-text .tagline {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.5rem;
  }
  .hero-text .tagline {
    font-size: 0.9rem;
  }
}
