/* Base styles */

:root {
    --soft-blue: #7fb3ff;
    --light-blue: #e3f2ff;
    --red: #d62828;
    --black: #000000;
    --white: #ffffff;
    --text-dark: #222222;
    --max-width: 1100px;
    --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: #f5f5f5;
    line-height: 1.6;
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

/* Header */

.site-header {
    background-color: rgba(43,100,162,1);
    color: var(--white);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.elect-box {
    background-color: var(--red);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--white);
}

/* Navigation */

.main-nav {
    display: flex;
    align-items: center;
}

nav.main-nav .nav-menu {
    list-style: none;
    display: flex;
    gap: 1rem;
}

nav.main-nav .nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
}

.nav-toggle {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    margin-left: 1rem;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
}

/* HERO SECTION */

.hero {
    position: relative;
    background-color: rgba(178,204,229,1);
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

.hero-bg {
    flex: 1;
    background-image: url("images/stratford-banner.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(178,204,229,0.25);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.5rem 1rem 5rem;
    color: var(--white);
}

.hero h1 {
    font-size: 3rem;
    margin: 0 0 0.5rem;
    color: var(--white);
    text-shadow:
        -2px -2px 0 #000,
         2px -2px 0 #000,
        -2px  2px 0 #000,
         2px  2px 0 #000;
}

/* NEW: Hero title spans */
.hero-line {
    display: inline;
}

/* Desktop/tablet: keep on one line */
@media (min-width: 601px) {
    #hero-title {
        white-space: nowrap;
    }
}

/* Mobile: stack lines + move text higher */
@media (max-width: 600px) {

    /* Move hero text higher in the hero */
    .hero-bg {
        align-items: flex-start;
    }

    #hero-title {
        text-align: center;
        white-space: normal;
        font-size: 3rem;
        line-height: 1.25;
    }

    .hero-line {
        display: block;
    }

    /* Final spacing adjustment you requested */
    .hero-content {
        padding-top: 1rem;     /* your chosen value */
        padding-bottom: 3rem;  /* keeps mugshot spacing perfect */
    }
}

.hero-subtitle {
    margin: 0;
    font-size: 1.1rem;
    color: var(--white);
    text-shadow:
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000;
}

/* Mugshot */

.mugshot-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -8rem;
    display: flex;
    justify-content: center;
}

.mugshot-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 6px solid var(--white);
    overflow: hidden;
    background-color: var(--soft-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.mugshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* PLATFORM SECTION */

.platform-section {
    background-color: var(--black);
    color: var(--white);
    padding-top: 8rem;
    padding-bottom: 3rem;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
}

.platform-grid > .platform-item:not(:last-child) {
    border-right: 2px dashed rgba(255,255,255,0.25);
    padding-right: 1.5rem;
}

.platform-icon {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--soft-blue);
}

.platform-item h3 {
    margin-top: 0;
    font-size: 1.35rem;
    font-weight: 700;
}

.platform-item p {
    margin-top: 0.5rem;
    line-height: 1.55;
}

/* ABOUT SECTION */

.about-section {
    background-color: var(--light-blue);
}

/* EXPERIENCE SECTION */

.experience-section {
    background-color: var(--white);
}

.experience-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    min-height: 380px;
}

.experience-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.exp-icon {
    color: var(--soft-blue);
    font-weight: 700;
    margin-right: 0.5rem;
}

.exp-heading {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.exp-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.exp-list li {
    margin-bottom: 0.4rem;
    display: flex;
    align-items: flex-start;
}

.experience-photo {
    background-image: url("images/experience-graphic.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
}

/* Fade-in animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide-in animation */
.slide-in-right {
    opacity: 0;
    transform: translateX(40px);
    animation: slideInRight 1s ease-out forwards;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* CONTACT SECTION */

.contact-section {
    background-color: #f0f0f0;
}

/* FOOTER */

.site-footer {
    background-color: var(--white);
    border-top: 1px solid #ddd;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--text-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
    color: var(--text-dark);
}

.social-link:hover {
    background-color: var(--soft-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.social-svg {
    width: 20px;
    height: 20px;
}

/* MOBILE & TABLET */

@media (max-width: 900px) {

    .header-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .elect-box {
        margin-right: auto;
    }

    .hamburger {
        display: flex;
        margin-left: 1rem;
    }

    nav.main-nav .nav-menu {
        display: none;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
        background-color: rgba(43,100,162,1);
        padding: 1rem;
        border-radius: 6px;
    }

    .nav-toggle:checked + .hamburger + .nav-menu {
        display: flex;
    }

    nav.main-nav ul {
        flex-direction: column;
    }

    .hero {
        min-height: 380px;
    }

    .hero-content {
        padding-bottom: 3.5rem;
    }

    .mugshot-circle {
        width: 240px;
        height: 240px;
    }

    .experience-grid {
        grid-template-columns: 1fr;
    }

    .experience-photo {
        height: 260px;
    }
}

@media (max-width: 600px) {

    .platform-grid {
        grid-template-columns: 1fr;
    }

    .platform-grid > .platform-item {
        border-bottom: 2px dashed rgba(255,255,255,0.25);
        padding-bottom: 1.5rem;
        padding-right: 0;
    }

    .platform-grid > .platform-item:last-child {
        border-bottom: none;
    }
}
/* FORM PAGE */

.form-section {
    background-color: var(--light-blue);
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.sign-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.sign-form label {
    font-weight: 600;
}

.sign-form input,
.sign-form textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.submit-btn {
    background-color: rgba(43,100,162,1);
    color: var(--white);
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.submit-btn:hover {
    background-color: var(--soft-blue);
    transform: translateY(-2px);
}

.captcha-wrapper {
    margin-top: 1rem;
    margin-bottom: 1rem;
}
