/*
 * Final Professional Stylesheet for Publius AI Consulting
 * Version: 3.1 - Carousel Polish
 */

:root {
    --primary-dark: #002245;
    --primary-medium: #303F9F;
    --accent-gold: #FBC02D;
    --accent-gold-hover: #F9A825;
    --light-gray-bg: #F5F5F5;
    --white-bg: #FFFFFF;
    --text-dark: #212121;
    --text-light: #FAFAFA;
    --border-color: #E0E0E0;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background-color: var(--white-bg);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.3;
}
h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
p { margin-bottom: 1.5rem; }

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover { color: var(--accent-gold-hover); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-small { max-width: 800px; margin: 0 auto; padding: 0 2rem; }

.site-header {
    background-color: var(--primary-dark);
    padding: 1.5rem 0;
}
.header-content { 
    display: flex; 
    justify-content: center;
    align-items: center; 
}
.custom-logo { 
    max-width: 220px;
    height: auto; 
}

.nav-bar {
    background-color: var(--white-bg);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}
.nav-menu .menu-item { margin: 0 1.5rem; }
.nav-menu .menu-item a {
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-weight: 600;
    padding-bottom: 5px;
    border-bottom: 3px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}
.nav-menu .menu-item a:hover { color: var(--primary-medium); border-bottom-color: var(--accent-gold); }

main section { padding: 80px 2rem; text-align: center; }

.hero {
    position: relative;
    color: var(--white-bg);
    padding: 120px 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 34, 69, 0.7);
    z-index: 2;
}
.hero-background {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    text-align: center;
}
.hero-media {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.hero-media.active { opacity: 1; }
.hero h1 { font-size: 3.5rem; color: var(--white-bg); }
.hero p { font-size: 1.5rem; color: var(--text-light); font-weight: 300; }

.services-section { background-color: var(--white-bg); }
.testimonials-section { background-color: var(--light-gray-bg); }
#media-features { background-color: var(--white-bg); }
.about-section { background-color: var(--light-gray-bg); }
.cta-section { background-color: var(--primary-dark); }

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    text-align: left;
}
.service-box {
    background-color: var(--white-bg);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-box:hover { transform: translateY(-10px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.service-box h3 { margin-top: 0; color: var(--primary-dark); }
.service-box p { color: var(--text-dark); }
a.service-box:hover, a.service-box:hover p { color: var(--text-dark); }

.testimonial { margin-bottom: 3rem; }
.testimonial p:first-of-type { font-size: 1.25rem; font-style: italic; color: #424242; }
.testimonial strong { font-family: var(--font-heading); color: var(--primary-medium); }

.about-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2rem;
    border: 5px solid var(--white-bg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cta-section h2 { color: var(--white-bg); margin-bottom: 2rem; }
.cta-button {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: 700;
    font-family: var(--font-heading);
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.cta-button:hover { background-color: var(--accent-gold-hover); transform: translateY(-3px); }

footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    text-align: center;
    padding: 3rem 2rem;
    font-size: 0.9rem;
}
footer p { margin: 5px 0; color: #BDBDBD; }
footer a { color: var(--accent-gold); font-weight: 600; }

.hamburger-menu { display: none; }

/* Carousel Styles for Media Features */
#media-features {
    background-color: var(--light-gray-bg);
    padding: 80px 0;
    overflow-x: hidden;
}

.media-carousel {
    width: 100%;
    height: 150px; /* Increased height for larger logos */
    margin-top: 3rem;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: auto;
}

.swiper-wrapper {
    transition-timing-function: linear !important;
}

.swiper-slide img {
    max-height: 200px; /* Increased logo size */
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.swiper-slide a:hover img {
    filter: none;
    opacity: 1;
}


@media (max-width: 768px) {
    body { font-size: 16px; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    main section { padding: 60px 1rem; }
    .hero { padding: 80px 1rem; }
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1.25rem; }

    .nav-bar .container { justify-content: flex-end; position: relative; }
    .hamburger-menu {
        display: block;
        background: none; border: none; cursor: pointer;
        padding: 10px; z-index: 1001;
    }
    .hamburger-icon {
        display: block; width: 30px; height: 3px;
        margin: 6px 0; background-color: var(--primary-dark);
        border-radius: 5px;
    }
    .nav-menu {
        display: none; flex-direction: column;
        width: 100%; background-color: var(--white-bg);
        position: absolute; top: 100%; left: 0;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1); padding: 1rem 0;
    }
    .nav-menu.open { display: flex; }
    .nav-menu .menu-item { width: 100%; text-align: center; }
    .nav-menu .menu-item a { padding: 1rem; display: block; border: none; }
}
/*
 * Hero Image Focal Point Control
 * ---------------------------------------------
 * object-position: [x-axis] [y-axis];
 * x-axis: left, center, right, or a percentage (e.g., 25%)
 * y-axis: top, center, bottom, or a percentage (e.g., 30%)
*/

/* --- Desktop Focal Points --- */

/* For the presentation photo (IMG_6930.jpg) */
#hero-img-presentation {
  object-position: left 30%; /* Keeps the focus slightly above center */
}

/* For the panel discussion photo (1749224615897.jpeg) */
#hero-img-panel {
  object-position: right 50%; /* Focuses on the left-center part of the image */
}

/* For the stage photo (IMG_5302.jpg) */
#hero-img-stage {
  object-position: 20% center; /* Keeps the left edge of the image visible */
}


/* --- Mobile Focal Points (for screens smaller than 768px) --- */
@media (max-width: 768px) {
  #hero-img-presentation {
    object-position: left 20%; /* On mobile, move focus even higher */
  }

  #hero-img-panel {
    object-position: right center; /* On a tall screen, center is often safer */
  }

  #hero-img-stage {
    object-position: left center; /* Move focus slightly left of center */
  }
}
/*
 * Lead Generation Popup Styles
 * ---------------------------------------------
*/
.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.popup-content {
    position: relative;
    z-index: 2001;
    background-color: var(--white-bg);
    padding: 3rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.popup-close:hover {
    color: var(--text-dark);
}

.popup-content h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.popup-content p {
    margin-bottom: 2rem;
    color: #666;
}

.popup-content form input {
    display: block;
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-sizing: border-box; /* Important for consistent sizing */
    font-size: 1rem;
}

.popup-download-btn {
    display: block;
    width: 100%;
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    padding: 1rem;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 700;
    font-family: var(--font-heading);
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
    text-decoration: none;
    margin-bottom: 1rem;
}

.popup-download-btn:hover {
    background-color: var(--accent-gold-hover);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.popup-no-thanks {
    color: #999;
    font-size: 0.9rem;
    text-decoration: underline;
    cursor: pointer;
}
/*
 * About Page Specific Styles
 * ---------------------------------------------
*/

/* A simpler hero for internal pages */
.page-hero {
    background-color: var(--light-gray-bg);
    padding: 60px 2rem;
    text-align: center;
}

.page-hero h1 {
    font-size: 3rem;
}

.page-content-section {
    padding: 80px 2rem;
    background-color: var(--white-bg);
}

.about-layout {
    display: flex;
    flex-wrap: wrap; /* Allows columns to stack on mobile */
    align-items: flex-start;
    gap: 4rem;
}

.about-image-column {
    flex: 1;
    min-width: 250px; /* Ensures image column doesn't get too squished */
}

.about-text-column {
    flex: 2;
}

.about-page-image {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.about-text-column h2 {
    margin-top: 0;
}

/* Mission Section Styles */
.mission-section {
    background-color: var(--primary-dark);
    color: var(--white-bg);
    padding: 80px 2rem;
}

.mission-section h2 {
    color: var(--white-bg);
    margin-bottom: 2rem;
}

.mission-section p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* Make about page layout responsive */
@media (max-width: 768px) {
    .about-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }
}
/*
 * Services Page Specific Styles
 * ---------------------------------------------
*/
.service-detail-item {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.service-detail-item:last-of-type {
    border-bottom: none;
}

.service-detail-item h2 {
    margin-bottom: 1.5rem;
}

.service-detail-item p {
    font-size: 1.1rem;
    line-height: 1.8;
}
/*
 * Contact Page Specific Styles
 * ---------------------------------------------
*/
.contact-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-intro p {
    font-size: 1.2rem;
    color: #444;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-button {
    display: block;
    background-color: var(--white-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.contact-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: var(--accent-gold);
}

.contact-button-title {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.contact-button-subtitle {
    display: block;
    font-size: 1.1rem;
    color: var(--accent-gold);
}
/*
 * Legal & Text-Heavy Page Styles
 * ---------------------------------------------
*/
.legal-text-content {
    text-align: left;
}

.legal-text-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.legal-text-content h2:first-of-type {
    margin-top: 0;
}

.legal-text-content p {
    line-height: 1.8;
}

.legal-text-content a {
    text-decoration: underline;
    font-weight: 600;
}