/* TheShapeStoryUK - Main Stylesheet */

:root {
  --narrative-charcoal: #333333;
  --storybook-teal: #008080;
  --soft-parchment: #F5F0E1;
  --muted-crimson: #800020;
  --text-light: #f9f7f4;
  --text-dark: #2a2a2a;
  --border-light: #e8e3da;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ffffff;
  color: var(--narrative-charcoal);
  line-height: 1.82;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  background-color: #ffffff;
  border-bottom: 2px solid var(--muted-crimson);
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.navbar {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--narrative-charcoal);
  text-decoration: none;
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: 1px;
}

.nav-link {
  color: var(--narrative-charcoal) !important;
  font-weight: 500;
  transition: color 0.3s ease, text-decoration 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--storybook-teal) !important;
  text-decoration: underline;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(135deg, var(--soft-parchment) 0%, #faf8f3 100%);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero img {
  max-width: 100%;
  height: auto;
  margin: 40px 0;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  max-height: 400px;
}

.hero h1 {
  font-family: Georgia, Baskerville, 'Times New Roman', serif;
  font-size: 5.3rem;
  font-weight: 800;
  color: var(--narrative-charcoal);
  line-height: 1.2;
  margin: 20px 0;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.3rem;
  color: var(--narrative-charcoal);
  max-width: 700px;
  margin: 30px auto;
  font-weight: 300;
}

/* CONTENT SECTIONS */
section {
  padding: 60px 20px;
  max-width: 1320px;
  margin: 0 auto;
}

section h2 {
  font-family: Georgia, Baskerville, 'Times New Roman', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--narrative-charcoal);
  margin-bottom: 30px;
  text-align: center;
}

section h3 {
  font-family: Georgia, Baskerville, 'Times New Roman', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--narrative-charcoal);
  margin-top: 30px;
  margin-bottom: 15px;
}

section p {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 15px;
  line-height: 1.82;
}

.teal-accent {
  color: var(--storybook-teal);
  font-weight: 600;
}

/* ALTERNATING SECTIONS */
.section-light {
  background-color: #ffffff;
}

.section-dark {
  background: linear-gradient(135deg, var(--soft-parchment) 0%, #faf8f3 100%);
}

/* TEXT + IMAGE LAYOUT */
.content-with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin: 40px 0;
}

.content-with-image.reverse {
  grid-template-columns: 1fr 1fr;
}

.content-with-image.reverse > :first-child {
  order: 2;
}

.content-with-image.reverse > :last-child {
  order: 1;
}

.content-with-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  max-height: 350px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .content-with-image,
  .content-with-image.reverse {
    grid-template-columns: 1fr;
  }
  .content-with-image.reverse > :first-child {
    order: 0;
  }
  .content-with-image.reverse > :last-child {
    order: 0;
  }
}

/* CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-color: var(--storybook-teal);
}

.card h3 {
  color: var(--narrative-charcoal);
  margin-bottom: 15px;
}

.card p {
  color: var(--text-dark);
  font-size: 0.95rem;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 20px;
}

.card-link {
  display: inline-block;
  color: var(--storybook-teal);
  text-decoration: none;
  font-weight: 600;
  margin-top: 15px;
  transition: all 0.3s ease;
}

.card-link:hover {
  color: var(--muted-crimson);
  text-decoration: underline;
}

/* FAQ SECTION */
.faq-item {
  margin: 30px 0;
  border-left: 4px solid var(--storybook-teal);
  padding-left: 25px;
}

.faq-item h4 {
  font-weight: 700;
  color: var(--narrative-charcoal);
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.faq-item p {
  color: var(--text-dark);
}

/* DISCLAIMER BLOCK */
.disclaimer-block {
  background: var(--soft-parchment);
  border-left: 4px solid var(--muted-crimson);
  padding: 25px;
  margin: 30px 0;
  border-radius: 4px;
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.7;
}

.disclaimer-block strong {
  color: var(--narrative-charcoal);
}

/* CONTACT FORM */
.form-group {
  margin-bottom: 25px;
}

.form-control {
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 12px 15px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--narrative-charcoal);
  background-color: #ffffff;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--storybook-teal);
  box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1);
  outline: none;
}

.btn-primary {
  background-color: var(--storybook-teal);
  border-color: var(--storybook-teal);
  color: #ffffff;
  padding: 12px 35px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-primary:hover {
  background-color: var(--muted-crimson);
  border-color: var(--muted-crimson);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(128, 0, 32, 0.3);
  color: #ffffff;
}

/* FOOTER */
footer {
  background: var(--narrative-charcoal);
  color: var(--text-light);
  padding: 50px 20px 30px;
  margin-top: auto;
  font-size: 0.95rem;
}

footer a {
  color: var(--storybook-teal);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--soft-parchment);
  text-decoration: underline;
}

.footer-content {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h5 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--soft-parchment);
}

.footer-section p,
.footer-section ul {
  line-height: 1.8;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(245, 240, 225, 0.2);
  padding-top: 25px;
  text-align: center;
  color: rgba(245, 240, 225, 0.8);
  font-size: 0.9rem;
}

/* THANK YOU PAGE */
.thank-you-container {
  text-align: center;
  padding: 100px 20px;
  max-width: 600px;
  margin: 0 auto;
}

.thank-you-container h1 {
  font-family: Georgia, Baskerville, 'Times New Roman', serif;
  font-size: 3rem;
  color: var(--narrative-charcoal);
  margin-bottom: 20px;
}

.thank-you-container p {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 30px;
}

.btn-home {
  display: inline-block;
  background-color: var(--storybook-teal);
  color: #ffffff;
  padding: 12px 35px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-home:hover {
  background-color: var(--muted-crimson);
  transform: translateY(-2px);
}

/* COOKIE CONSENT */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--narrative-charcoal);
  color: var(--text-light);
  padding: 25px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-message {
  flex: 1;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  white-space: nowrap;
}

.cookie-btn-accept {
  background-color: var(--storybook-teal);
  color: #ffffff;
}

.cookie-btn-accept:hover {
  background-color: #006464;
}

.cookie-btn-reject {
  background-color: transparent;
  border: 1px solid var(--text-light);
  color: var(--text-light);
}

.cookie-btn-reject:hover {
  background-color: rgba(245, 240, 225, 0.1);
}

.cookie-btn-learn {
  background-color: transparent;
  border: 1px solid var(--text-light);
  color: var(--text-light);
  text-decoration: none;
}

.cookie-btn-learn:hover {
  background-color: rgba(245, 240, 225, 0.1);
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-buttons {
    width: 100%;
    justify-content: flex-start;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  section h2 {
    font-size: 2rem;
  }
  .content-with-image {
    gap: 20px;
  }
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  animation: fadeInUp 0.6s ease-out;
}

/* UTILITY CLASSES */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 30px;
}

.mb-4 {
  margin-bottom: 30px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}
