/* Global reset-ish */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    color: #222;
    line-height: 1.5;
    background-color: #ffffff;
}

/* ---------- Section 1: Hero ---------- */

.hero {
    position: relative;
    width: 100%;

    /* Shallower hero: not full viewport height */
    min-height: 60vh;       /* was 100vh */
    max-height: 750px;      /* roughly your 700px crop */
    
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;

    background-image: url("../images/hero-background.webp");
    background-size: cover;

    /* Keep the hand + stick visible – bias to the right */
    background-position: right center;  /* was center */
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-bg,
.hero-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-bg img {
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.18),
        rgba(0, 0, 0, 0.35)
    );
}

/* Desktop placement: 25% from top & left */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 50%;
    margin-top: 10%;
    margin-left: 10%;   /* Slight refinement — 25vw was pushing too far right */
    text-align: left;

    animation: heroFadeIn 0.9s ease-out 0.2s both;
}

.hero-title {
    margin: 0;
    color: #ffffff;
    font-family: "Gill Sans MT", "Gill Sans", "Calibri", "Trebuchet MS",
        sans-serif;
    font-weight: 600;
    letter-spacing: 0.04em;
    /* Responsive size, aiming for around 56px on larger screens */
    font-size: clamp(2.2rem, 4vw, 3.5rem);
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 56px;
    }
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility: turn off animation if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-content {
        animation: none;
    }
}

/* ---------- Section 2: Two-column info ---------- */

.info-section {
    padding: 3rem 1.5rem;
    background-color: #f7f7f7;
}

.info-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.info-image-wrapper {
    flex: 1 1 45%;
    min-width: 260px;
}

.info-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.info-text {
    flex: 1 1 45%;
    min-width: 260px;
    font-size: 1.5rem;
}

.info-text h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 2.3rem;
    font-weight: 500;
}

.info-text ul {
    padding-left: 1.2rem;
    margin: 0;
}

.info-text li {
    margin-bottom: 0.5rem;
}

.info-text #ref {
	font-size: 1rem;
	font-weight: 300;
}

/* ---------- Section 3: Agents / Wholesalers ---------- */

.agents-section {
    padding: 3rem 1.5rem 3.5rem;
    background-color: #ffffff;
}

.section-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.agents-section h2 {
    margin-top: 0;
    margin-bottom: 1.75rem;
    font-size: 2rem;
    font-weight: 500;
}

.agents-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.agent-row {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.agent-row:last-child {
    border-bottom: none;
}

/* Left side of row: logo + heading */
.agent-main {
    display: flex;
    gap: 1rem;
    flex: 1 1 50%;
    align-items: center;
}

.agent-logo-wrapper {
    width: 200px;
    min-width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agent-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.agent-heading h3 {
    margin: 0 0 0.25rem;
    font-size: 1.4rem;
    font-weight: 500;
}

.agent-region {
    margin: 0;
    font-size: 1.1rem;
    color: #666;
}

/* Right side of row: contact details */
.agent-contact {
    flex: 1 1 50%;
    font-size: 1.2rem;
}

.agent-contact p {
    margin: 0 0 0.35rem;
}

.agent-contact a {
    color: #0059b2;
    text-decoration: none;
}

.agent-contact a:hover,
.agent-contact a:focus {
    text-decoration: underline;
}

/* ---------- Section 4: Footer ---------- */

.site-footer {
    background-color: #222222;
    color: #f9f9f9;
    padding: 1.5rem 1.5rem 1.75rem;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.9rem;
}

.footer-inner a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
}

.footer-inner a:hover,
.footer-inner a:focus {
    border-bottom-style: solid;
}

.footer-copy {
    margin: 0 0 0.5rem;
}

.footer-contact {
    margin: 0;
}

/* ---------- Responsive tweaks ---------- */

@media (max-width: 768px) {
    /* Mobile: center hero text and tighten hero height */
    .hero {
        align-items: center;
        justify-content: center;
        min-height: 70vh;
    }
    
    .hero-content {
        text-align: center;
        max-width: 90%;
        margin: 0 auto;
    }

    .hero-title {
        font-size: clamp(2rem, 7vw, 2.8rem);
    }

    /* Section 2 layout on mobile */
    .info-container {
        flex-direction: column;
    }

    .info-image-wrapper,
    .info-text {
        flex: 1 1 100%;
    }

    .info-text {
        font-size: 1.1rem;
    }

    .info-section {
        padding: 2.5rem 1.25rem;
    }
    
    .info-text h2,
    .agents-section h2,
    .agent-heading h3 {
        font-size: 1.6rem;
    }

    .agent-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .agent-main,
    .agent-contact {
        flex: 1 1 100%;
        font-size: 1.05rem;
    }

    .agent-main {
        align-items: flex-start;
    }

    .site-footer {
        padding: 1.5rem 1rem 1.75rem;
    }
}