/* Color palette (from Winnie the Pooh palette)
   #F4D7A1  - light cream
   #F09C20  - bright amber
   #C57429  - warm orange-brown
   #955223  - deep saddle brown (PRIMARY)
   #786552  - muted brown-gray
*/

:root {
    --kp-bg-main: #1b0f09;        /* dark base behind content */
    --kp-bg-panel: #955223;      /* primary panel / header color */
    --kp-bg-panel-alt: #786552;  /* secondary panel / alt sections */
    --kp-accent: #F09C20;
    --kp-accent-soft: #C57429;
    --kp-text-main: #F4D7A1;
    --kp-text-muted: #e2c89b;
    --kp-border-soft: rgba(244, 215, 161, 0.14);
    --kp-radius-lg: 18px;
    --kp-radius-md: 12px;
    --kp-shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* Global reset-ish */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #955223 0, #1b0f09 45%, #0c0603 100%);
    color: var(--kp-text-main);
    line-height: 1.6;
}

/* Generic containers & sections */

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4.5rem 0;
}

.section-alt {
    background: linear-gradient(135deg, rgba(120, 101, 82, 0.94), rgba(149, 82, 35, 0.92));
}

.section-highlight {
    background: radial-gradient(circle at top, rgba(240, 156, 32, 0.22), rgba(149, 82, 35, 0.96));
}

.section-inner {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
    gap: 2rem;
}

.section-two-column {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.8fr);
}

.section-header {
    text-align: center;
    margin-bottom: 2.75rem;
}

.section-header h2 {
    font-size: clamp(1.8rem, 2.6vw, 2.4rem);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--kp-text-muted);
    max-width: 620px;
    margin: 0.25rem auto 0;
}

/* Boarding Section Layout */

.boarding-flex {
    display: grid;
    grid-template-columns: 2fr 1.3fr;
    gap: 2rem;
    align-items: start;
}

.boarding-cards-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
    justify-items: center; /* center cards left/right */
}

.boarding-left .card {
    width: 100%;
    max-width: 420px;
}

.boarding-right {
    display: flex;
    justify-content: center;
}

.boarding-image {
    width: 100%;
    height: auto;
    border-radius: var(--kp-radius-lg);
    box-shadow: var(--kp-shadow-soft);
    display: block;
}

.boarding-intro {
    max-width: 780px;
    margin: 0 auto 2.8rem;
    text-align: left;
}

.boarding-intro p {
    margin-bottom: 1.2rem;
    color: var(--kp-text-muted);
    font-size: 1rem;
    line-height: 1.65;
}

/* Training layout */
#training {
    background: radial-gradient(circle at top, rgba(240, 156, 32, 0.16), rgba(27, 15, 9, 0.82));
}

.training-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
    gap: 2rem;
    align-items: center;
}

/* Desktop: show image on the left, card on the right */
.training-left {
    order: 2;
}

.training-right {
    order: 1;
}

.training-image {
    width: 100%;
    max-width: 700px;
    border-radius: var(--kp-radius-lg);
    box-shadow: var(--kp-shadow-soft);
    display: block;
}

/* Training Section Layout (Desktop) */
.training-flex {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2.5rem;
    align-items: center; /* center text card vertically next to image */
}

/* Shape the training card */
.training-flex .card {
    max-width: 430px;      /* prevents the ultra-wide look */
    width: 100%;
    padding: 2rem;
    border-radius: var(--kp-radius-lg);
}

/* Facilities Section */
#facilities {
    background: linear-gradient(135deg, rgba(120, 101, 82, 0.90), rgba(27, 15, 9, 0.92));
}

.facilities-top {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.5fr);
    gap: 2rem;
    align-items: center;
    margin-bottom: 2.5rem;
}

.facilities-text p {
    color: var(--kp-text-muted);
    margin-bottom: 1rem;
	text-align: center;
}

.facilities-map {
    display: flex;
    flex-direction: column;
}

.facilities-map-image {
    width: 75%;
    height: auto;
    border-radius: var(--kp-radius-lg);
    box-shadow: var(--kp-shadow-soft);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.map-legend-note {
    margin-top: 0.5rem;
    font-size: 0.82rem;
    color: var(--kp-text-muted);
    text-align: right;
    margin-left: auto;
    margin-right: auto;	
}

/* Facilities grid now holds 8 items in 2 rows of 4 on desktop */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
}

.facility-item {
    position: relative;
    background: rgba(27, 15, 9, 0.94);
    border-radius: var(--kp-radius-md);
    padding: 1.5rem 1.2rem 1.2rem;
    border: 1px solid var(--kp-border-soft);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.facility-item h3 {
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

.facility-item p {
    font-size: 0.93rem;
    color: var(--kp-text-muted);
}

/* Number badge for 1–8 */
.facility-number {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    background: radial-gradient(circle at 30% 20%, var(--kp-accent), var(--kp-accent-soft));
    color: #2b160a;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
}


/* Typography */

h1, h2, h3 {
    margin-top: 0;
    letter-spacing: 0.03em;
}

h1 {
    font-size: clamp(2.2rem, 4vw, 3.1rem);
}

p {
    margin: 0 0 1rem;
}

/* Links — no purple, no underlines */
a,
a:visited {
    color: var(--kp-text-main);
    text-decoration: none;
}

a:hover {
    color: var(--kp-accent);
}

/* Header / Nav */

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: linear-gradient(to bottom, rgba(9, 4, 2, 0.95), rgba(9, 4, 2, 0.82));
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(244, 215, 161, 0.12);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.brand-logo {
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 999px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
    flex-shrink: 0;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/*
.brand-mark {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, #F4D7A1, #C57429);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    color: #2b160a;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}
*/

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.brand-tagline {
    font-size: 0.78rem;
    color: var(--kp-text-muted);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    font-size: 0.95rem;
}

.main-nav a {
    padding: 0.35rem 0.4rem;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.12s ease;
}

.main-nav a:hover {
    background: rgba(244, 215, 161, 0.12);
    transform: translateY(-1px);
}

.main-nav .nav-cta {
    padding-inline: 0.95rem;
    background: linear-gradient(135deg, var(--kp-accent), var(--kp-accent-soft));
    color: #221107;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.45);
}

.main-nav .nav-cta:hover {
    background: linear-gradient(135deg, var(--kp-accent-soft), var(--kp-accent));
    color: #1a0c05;
}

/* Hero */

.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background: url("../assets/kpstables_01.jpg") center/cover no-repeat;
}

/* Soft overall darkening just enough for readability */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.45)
    );
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    min-height: 70vh;
    padding: 4.5rem 1.5rem 5rem;
}

/* Card that sits on top of the photo */
.hero-card {
    max-width: 560px;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(10px);
    border-radius: var(--kp-radius-lg);
    padding: 1.9rem 1.7rem 2rem;
    box-shadow: var(--kp-shadow-soft);
    border: 1px solid var(--kp-border-soft);
}

.hero-eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--kp-text-muted);
    margin: 0 0 0.5rem;
}

.hero-card h1 {
    margin: 0 0 0.8rem;
    font-size: clamp(2.1rem, 4vw, 3rem);
}

.hero-lead {
    margin: 0;
    color: var(--kp-text-muted);
    max-width: 540px;
}

.hero-actions {
    margin-top: 1.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--kp-accent), var(--kp-accent-soft));
    color: #221107;
    box-shadow: var(--kp-shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.55);
}

.btn-ghost {
    background: transparent;
    border-color: rgba(244, 215, 161, 0.34);
    color: var(--kp-text-main);
}

.btn-ghost:hover {
    background: rgba(244, 215, 161, 0.08);
}

/* Cards & grids */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.8rem;
}

.card-price {
    margin-top: 0.6rem;
    font-weight: 600;
    color: var(--kp-accent);
    font-size: 0.95rem;
}

/* For training with one row of content if needed */
.cards-grid-training {
    grid-template-columns: minmax(0, 1.2fr);
    justify-content: center;
}

.card {
    background: linear-gradient(145deg, rgba(27, 15, 9, 0.96), rgba(120, 101, 82, 0.95));
    border-radius: var(--kp-radius-lg);
    padding: 1.5rem 1.4rem 1.6rem;
    box-shadow: var(--kp-shadow-soft);
    border: 1px solid var(--kp-border-soft);
}

.card h3 {
    margin-bottom: 0.6rem;
}

.card p:last-child {
    margin-bottom: 0;
}

.card ul {
    list-style: none;
    margin: 0.8rem 0 0;
    padding: 0;
}

.card ul li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.card ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--kp-accent);
}

/* Facilities */

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
}

.facility-item {
    background: rgba(27, 15, 9, 0.94);
    border-radius: var(--kp-radius-md);
    padding: 1.2rem;
    border: 1px solid var(--kp-border-soft);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.facility-item h3 {
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.facility-item p {
    font-size: 0.95rem;
    color: var(--kp-text-muted);
}

/* About and contact cards */

.section-content p:last-child {
    margin-bottom: 0;
}

.section-card {
    background: linear-gradient(145deg, rgba(21, 11, 6, 0.98), rgba(149, 82, 35, 0.95));
    border-radius: var(--kp-radius-lg);
    padding: 1.6rem 1.5rem;
    border: 1px solid var(--kp-border-soft);
    box-shadow: var(--kp-shadow-soft);
}

.section-card h3 {
    margin-bottom: 0.8rem;
}

.section-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.section-card li {
    margin-bottom: 0.35rem;
}

/* Offset in-page anchor jumps so sticky header doesn't cover titles */
#about,
#boarding,
#training,
#facilities,
#testimonials,
#contact {
    scroll-margin-top: 90px;
}

/* Testimonials */

.card-quote {
    position: relative;
}

.card-quote::before {
    content: "“";
    position: absolute;
    font-size: 3.5rem;
    left: 0.6rem;
    top: -0.6rem;
    opacity: 0.12;
}

.card-quote p {
    margin-top: 0.4rem;
}

.quote-author {
    display: block;
    margin-top: 0.9rem;
    font-size: 0.9rem;
    color: var(--kp-text-muted);
}

/* Contact */

.contact-card {
    background: rgba(27, 15, 9, 0.96);
}

.contact-line {
    margin-bottom: 0.4rem;
}

.contact-note {
    margin-top: 0.9rem;
    font-size: 0.9rem;
    color: var(--kp-text-muted);
}

.contact-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--kp-radius-lg);
    box-shadow: var(--kp-shadow-soft);
    display: block;
    margin-top: 0.75rem;
}

.contact-image-wrapper {
    display: flex;
    justify-content: center;
}

/* Footer */

.site-footer {
    background: #0b0503;
    border-top: 1px solid rgba(244, 215, 161, 0.14);
    padding: 1.3rem 0 1.4rem;
    font-size: 0.85rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.7rem;
}

.footer-secondary {
    color: var(--kp-text-muted);
}

/* Responsive tweaks */

@media (max-width: 900px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.7rem;
    }

    .main-nav {
        flex-wrap: wrap;
        row-gap: 0.4rem;
        column-gap: 0.8rem;
    }

    .hero-inner {
        padding-top: 3rem;
        padding-bottom: 3.5rem;
    }

    .section-inner,
    .section-two-column {
        grid-template-columns: minmax(0, 1fr);
    }

    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .facilities-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .boarding-flex {
        grid-template-columns: 1fr;
    }

    .training-layout {
        grid-template-columns: 1fr;
    }
	
	.facilities-top {
        grid-template-columns: minmax(0, 1fr);
    }

    .facilities-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Mobile: card above, image below */
    .training-left {
        order: 1;
    }

    .training-right {
        order: 2;
    }
}

@media (max-width: 640px) {
    .cards-grid,
    .facilities-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-inner {
        align-items: flex-end;
        padding-top: 3rem;
        padding-bottom: 3.2rem;
    }

    .hero-card {
        max-width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .facilities-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Contact mobile: card first, map below */
    #contact .section-inner {
        display: flex;
        flex-direction: column-reverse;
    }

    .contact-flex {
        display: flex;
        flex-direction: column-reverse;
    }

    #contact .contact-image-wrapper {
        margin-top: 1.5rem;
    }
}
