/* ==============================================
   GENERAL STYLES – apply to the whole page
   ============================================== */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    color: #333;
    background: #f9f9f9;
}

/* Lock root, let body scroll */
html {
    height: 100%;
    overflow: hidden;
}

body {
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0;
    padding: 0;
}

/* Make header sticky */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #003366;
    width: 100%;
    /* Your existing padding, colors, etc. */
}

/* Make sure the first content section doesn't get hidden under the header */
.hero {
    margin-top: 0;           /* or small value if needed */
    padding-top: 20px;       /* breathing room */
}

/* ==============================================
   MAIN CONTENT CONTAINER
   Controls the maximum width of all content sections
   ============================================== */
.container {
    max-width: 1200px;           /* This is the main content width – change here if you want wider */
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ==============================================
   HEADER – Full-width background, centered content
   ============================================== */
header {
    background: #003366;         /* Dark blue – stretches full width */
    color: white;
    padding: 20px 0;
    width: 100%;                 /* Ensures background goes edge-to-edge */
}

header .container {
    max-width: 1200px;           /* Matches the rest of the site for alignment */
    margin: 0 auto;
    padding: 0 20px;
}

header .logo {
    font-size: 24px;
    font-weight: bold;
    float: left;
}

header nav ul {
    list-style: none;
    float: right;
    margin: 0;
    padding: 0;
}

header nav li {
    display: inline;
    margin-left: 30px;
}

header nav a {
    color: white;
    text-decoration: none;
}

header::after {
    content: "";
    display: table;
    clear: both;
}

.logo-link {
    float: left;                    /* Keeps it on the left like before */
    display: block;
    text-decoration: none;
}

.logo-img {
    height: 30px;                   /* Adjust this to fit your logo – 50-80px is usually perfect */
    width: auto;                    /* Keeps proportions */
    max-width: 500px;               /* Prevents it from getting too wide */
    display: block;
}

/* Optional: Add a subtle hover effect */
.logo-link:hover .logo-img {
    opacity: 0.9;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* Mobile adjustments – make logo smaller on small screens */
@media (max-width: 768px) {
    .logo-img {
        height: 30px;
        max-width: 200px;
    }
}

.menu-toggle {
    display: none;              /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        float: right;
    }

    .main-nav {
        display: none;           /* Hidden by default on mobile */
        width: 100%;
        clear: both;
    }

    .main-nav.active {
        display: block;          /* Shown when toggled */
    }

    .main-nav ul {
        flex-direction: column;
        text-align: center;
    }

    .main-nav li {
        margin: 15px 0;
    }

    .main-nav a {
        font-size: 1.3rem;
        padding: 10px;
        display: block;
    }
}

/* ==============================================
   HERO SECTION – Welcome banner
   ============================================== */
.hero {
    position: relative;          /* Allows absolute positioning of bg */
    min-height: 50vh;           /* Adjust height as needed */
    color: white;
    justify-content: center;
    text-align: center;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/hero-bg.jpg');  /* ← Change to your filename */
    background-size: cover;
    background-position: center;
    filter: blur(8px) brightness(0.7);  /* Creates the faded/soft look */
    opacity: 0.85;                      /* Fine-tune fade – lower = more subtle */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;                         /* Keeps text above the bg */
    max-width: 1200px;
    padding: 40px 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);  /* Improves readability on bg */
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 60px 15px 80px;
        min-height: 40vh;
    }

    .services, .about, .contact, .speaking {
        padding: 50px 15px;
    }

   .hero h1 {
        font-size: 2.2rem;           /* smaller headline */
        margin-bottom: 1rem;
        line-height: 1.2;
    }

   hero h2 {
        font-size: 2.2rem;           /* smaller headline */
        margin-bottom: 1rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1.15rem;
        line-height: 1.5;
        margin-bottom: 1.8rem;
    }

    .service-grid {
        grid-template-columns: 1fr;   /* One column on mobile */
        gap: 30px;
    }

    .cta-button {
        padding: 14px 28px;
        font-size: 1.1rem;
        width: 100%;               /* Full-width button on mobile */
        max-width: 500px;
    }
}

/* Optional: Add a dark overlay for even better text contrast */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 51, 102, 0.4);  /* Semi-transparent dark blue overlay */
    z-index: 1;
}

/* Call-to-action button */
.cta-button {
    background: #ff9900;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
}


/* ==============================================
   SECTIONS (Services, About, Speaking, Contact)
   ============================================== */
.services,
.about,
.speaking,
.contact {
    padding: 40px 0;
    text-align: center;
}

.services h2,
.about h2,
.speaking h2,
.contact h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

/* ==============================================
   GRIDS – Services cards & Team members
   ============================================== */
.service-grid,
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.service-card,
.team-member {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.service-icon {
    width: 80px;              /* Adjust size as needed – 64px to 100px works well */
    height: 80px;
    margin-bottom: -20px;      /* Space between icon and title */
    display: block;
    margin-left: auto;
    margin-right: auto;       /* Centers the icon */
}

.service-card {
    text-align: center;       /* Makes everything centered under the icon */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

/* Team member specific styles */
.team-member img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 8px;
}

/* Justify bio text, but keep job title centered */
.team-member p {
    text-align: justify;
    line-height: 1.6;
}

.team-member p strong {
    display: block;
    text-align: center;          /* or change to 'left' if preferred */
    margin-bottom: -20px;
}

/* ==============================================
   SPEAKING SECTION – Light background contrast
   ============================================== */
.speaking {
    position: relative;
    min-height: 500px;           /* Adjust for your content amount */
    color: white;                /* White text for contrast */
    text-align: center;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.speaking-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/speaking-bg.jpg');  /* ← Your filename here */
    background-size: cover;
    background-position: center;
    filter: blur(10px) brightness(0.65);  /* Stronger fade for readability */
    opacity: 0.8;
    z-index: 1;
}

.speaking-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    padding: 60px 20px;
}

.speaking h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

.speaking p, .speaking ul {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

.speaking ul {
    list-style: none;
    padding: 0;
}

.speaking li {
    margin: 10px 0;
    font-weight: bold;
}

/* Dark overlay for extra contrast (optional but recommended) */
.speaking::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 51, 102, 0.45);  /* Dark blue tint */
    z-index: 1;
}

/* ==============================================
   CONTACT FORM
   ============================================== */
form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    height: 50px;
}

form textarea {
    height: 150px;
    resize: vertical;
}

form button {
    width: 100%;
    background: #ff9900;
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    border-radius: 5px;
}

/* Better radio button styling – smaller, aligned, mobile-friendly */
.radio-group {
    margin: 20px 0 24px;
    text-align: left;
    font-size: 1rem;
}

.radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    vertical-align: middle;
    accent-color: #005599; /* your brand blue – change if needed */
}

.radio-group label {
    display: inline-block;
    margin-right: 32px;
    margin-bottom: 12px;
    cursor: pointer;
    vertical-align: middle;
    font-size: 1rem;
}

/* ==============================================
   FOOTER
   ============================================== */
footer {
    background: #003366;
    color: white;
    text-align: center;
    padding: 20px 0;
}

/* ==============================================
   MOBILE RESPONSIVENESS
   ============================================== */
@media (max-width: 768px) {
    header nav ul {
        float: none;
        text-align: center;
    }
    
    header nav li {
        display: block;
        margin: 10px 0;
    }
}

/* Default styles — applied on desktop and everywhere unless overridden */
.hero p,
.about p,
.speaking p,
.services p,
.contact p {
    text-align: justify;
}

/* Only change to left-aligned on smaller screens (mobile/tablet) */
@media (max-width: 768px) {
    .hero p,
    .about p,
    .speaking p,
    .services p,
    .contact p {
        text-align: left;
    }
}

.service-description {
    position: relative;
}

.read-more-btn {
    background: none;
    border: none;
    color: #005599;           /* your brand color */
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: 8px;
    font-size: 0.95rem;
}

.read-more-btn:hover {
    text-decoration: underline;
}

/* Hide full text by default */
.full-text {
    margin-top: 12px;
}

/* Mobile-only toggle (you can remove the media query if you want it everywhere) */
@media (max-width: 768px) {
    .short-text {
        /* You can limit lines if you want even more compact look */
        display: -webkit-box;
        -webkit-line-clamp: 2;          /* shows only 2 lines */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

.team-bio {
    position: relative;
}

.read-more-btn team-read-more {
    background: none;
    border: none;
    color: #005599;           /* your brand color */
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: 8px;
    font-size: 0.95rem;
}

.read-more-btn team-read-more:hover {
    text-decoration: underline;
}

/* Hide full text by default */
.full-bio {
    margin-top: 12px;
}

/* Mobile-only toggle (you can remove the media query if you want it everywhere) */
@media (max-width: 768px) {
    .short-bio {
        /* You can limit lines if you want even more compact look */
        display: -webkit-box;
        -webkit-line-clamp: 2;          /* shows only 2 lines */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* Ensure all CTA buttons are centered and constrained on mobile */
@media (max-width: 768px) {
    .cta-button {
        width: 100%;
        max-width: 360px;          /* ← adjust this value to taste — 320–400px usually feels best */
        margin-left: auto;
        margin-right: auto;
        display: block;            /* forces centering when width is limited */
        box-sizing: border-box;
        padding: 14px 20px;        /* slightly smaller padding if needed */
    }

    /* Make sure hero and speaking content respect the container */
    .hero-content,
    .speaking-content {
        padding-left: 15px;
        padding-right: 15px;
    }
}