/*
 * Stylesheet for the Castlemilk Home Education Group website.
 * The palette is inspired by the banner image provided by the group,
 * featuring deep teals and gentle greens with a warm accent colour.
 */

/* CSS Variables for colour palette */
:root {
    --primary-color: #0b5b63; /* deep teal for headings and navigation */
    --secondary-color: #8fc5bb; /* soft teal for accents */
    --accent-color: #f1a457; /* warm peach for buttons and highlights */
    --accent-dark: #d98a3c;
    --light-bg-color: #f6faf8; /* light background */
    --text-color: #1f2b2a; /* nearly black for body text */
    --surface-color: #ffffff;
    --surface-muted: #e8f2ef;
    --border-color: rgba(11, 91, 99, 0.18);
    --max-width: 1080px;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
    --font-body: 'Manrope', sans-serif;
    --font-display: 'Fraunces', serif;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: radial-gradient(900px 420px at 85% -10%, rgba(241, 164, 87, 0.22), rgba(241, 164, 87, 0) 60%),
        radial-gradient(800px 520px at -10% 10%, rgba(143, 197, 187, 0.28), rgba(143, 197, 187, 0) 55%),
        var(--light-bg-color);
    color: var(--text-color);
    line-height: 1.65;
}

h1, h2, h3 {
    font-family: var(--font-display);
    color: var(--primary-color);
    letter-spacing: 0.2px;
}

.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-120%);
    background: white;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 0 0 4px 0;
    z-index: 1000;
}

.skip-link:focus {
    transform: translateY(0);
}

.container {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

/* Header and Navigation */
.site-header {
    background: linear-gradient(90deg, #0b5b63, #11737d);
    color: white;
    padding: 0.75rem 0;
    box-shadow: 0 14px 30px rgba(11, 91, 99, 0.22);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.site-title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.site-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    position: relative;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav a::after {
    content: '';
    position: absolute;
    left: 0.65rem;
    right: 0.65rem;
    bottom: 0.15rem;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus {
    color: #fff;
}

.site-nav a:hover::after,
.site-nav a:focus::after {
    transform: scaleX(1);
}

.site-nav a.nav-cta {
    background: var(--accent-color);
    color: #1f2b2a;
    box-shadow: 0 8px 20px rgba(11, 91, 99, 0.2);
}

.site-nav a.nav-cta::after {
    display: none;
}

.site-nav a.nav-cta:hover,
.site-nav a.nav-cta:focus {
    background: #f6b46e;
    color: #1f2b2a;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

a:focus-visible {
    text-decoration: underline;
}

/* Hero section */
.hero {
    position: relative;
    margin-top: 0;
    padding: 3.5rem 0 3rem;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(241, 164, 87, 0.18);
    top: -140px;
    right: -120px;
    z-index: 0;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 2.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content p {
    font-size: 1.05rem;
    margin: 0 0 1.1rem;
}

.hero-content h2 {
    font-size: clamp(2.2rem, 3.4vw, 3.2rem);
    margin: 0 0 1rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 700;
    color: #0b5b63;
    margin-bottom: 0.7rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.5rem 0 1.5rem;
}

.ghost-btn {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid rgba(11, 91, 99, 0.25);
    padding-bottom: 0.1rem;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.ghost-btn:hover,
.ghost-btn:focus {
    color: #0c6a74;
    border-color: #0c6a74;
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.highlight-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0.9rem 1rem;
    box-shadow: 0 10px 20px rgba(11, 91, 99, 0.08);
}

.highlight-title {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: #0b5b63;
    margin-bottom: 0.35rem;
}

.highlight-text {
    font-weight: 600;
    color: #1f2b2a;
}

.hero-media {
    display: flex;
    justify-content: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 140px;
    gap: 0.85rem;
    width: 100%;
    max-width: 420px;
}

.hero-photo {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 30px rgba(11, 91, 99, 0.18);
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-photo--tall {
    grid-row: span 2;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.secondary-btn {
    background-color: var(--accent-color);
    color: white;
}

/* Slightly darker shade for hover on secondary buttons */
.secondary-btn:hover,
.secondary-btn:focus {
    background-color: #e3a55a;
}

/* Sections */
section {
    padding: 2rem 0;
}

.intro { padding: var(--space-xl) 0; text-align: center; }
.intro p { max-width: 900px; margin: 0 auto var(--space-lg); }

.info p,
.pricing p,
.location p {
    max-width: 800px;
    margin-bottom: 1rem;
}

.pricing-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.pricing-list li {
    background-color: var(--secondary-color);
    margin-bottom: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: var(--primary-color);
    font-weight: 500;
}

.map-container iframe {
    border: 0;
    width: 100%;
    height: 300px;
    border-radius: 4px;
}

/* Booking form */
.booking-form-section {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 8px;
}

.booking-form-section h2 {
    margin-top: 0;
    color: var(--primary-color);
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.child-group {
    margin-top: 1rem;
    padding-top: 0.5rem;
}

.add-child label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.add-child input {
    accent-color: var(--primary-color);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--primary-color);
}

.form-group input,
.form-group select {
    padding: 0.5rem;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 5px rgba(246, 181, 101, 0.5);
}

.form-group .required {
    color: var(--accent-color);
}

.form-group small {
    font-size: 0.8rem;
    color: var(--primary-color);
}

.terms {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-top: 0;
}

/* Flash messages */
.flash-messages {
    background-color: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* Thank you page */
.thank-you {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.thank-you h2 {
    color: var(--primary-color);
}

.thank-you a {
    margin-top: 1rem;
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

.footer-container p {
    margin: 0.2rem 0;
}
/* --- CTA: Reserve your space --- */
.primary-btn{
  --btn-bg: var(--accent-color);           /* peach */
  --btn-text: #05343a;                     /* deep teal for contrast */
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 1rem 1.6rem;
  border-radius: 9999px;                   /* pill */
  background: linear-gradient(180deg, var(--btn-bg), #d99549);
  color: var(--btn-text);
  font-weight: 700;
  letter-spacing: .2px;
  text-decoration: none;
  border: 0;
  box-shadow: 0 6px 14px rgba(10,101,110,.18), inset 0 -2px 0 rgba(0,0,0,.08);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.primary-btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 10px 22px rgba(10,101,110,.22), inset 0 -2px 0 rgba(0,0,0,.12);
}

.primary-btn:active{
  transform: translateY(0);
  filter: brightness(.98);
}

.primary-btn:focus-visible{
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(122,183,176,.45), 0 10px 22px rgba(10,101,110,.22);
}

.primary-btn--xl{ font-size: 1.125rem; padding: 1.05rem 1.8rem; }

.primary-btn .icon{
  width: 1.1em; height: 1.1em; flex: 0 0 auto;
  transform: translateX(0); transition: transform .15s ease;
}
.primary-btn:hover .icon{ transform: translateX(2px); }

/* keep it centered under the banner */
.intro .cta { text-align: center; margin-top: .75rem; }
.booking-form textarea {
  width: 100%;
  min-height: 96px;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  font: inherit;
  resize: vertical;
}
