/* PHBET - Main Stylesheet */
:root {
    --primary-color: #f09c1a;
    --secondary-color: #ffeb00;
    --bg-dark: #121212;
    --bg-light: #111922;
    --bg-darker: #000000;
    --text-light: #ffffff;
    --text-gray: #d8d8d8;
    --text-muted: #5a5a5a;
    --border-color: #333333;
    --container-width: 1200px;
    --spacing-unit: 1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 1.5);
}

/* Header */
.site-header {
    background-color: var(--bg-light);
    border-bottom: 2px solid var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.header-top {
    background-color: var(--bg-dark);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    margin-right: 2.6rem;
}

.logo img {
    max-height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-left: 0.5rem;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.25rem;
    align-items: center;
    flex-wrap: wrap; /* avoid overflow when buttons are wider */
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    display: block;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu .has-children > a::after {
    content: '▼';
    font-size: 0.7rem;
    margin-left: 0.3rem;
    display: inline-block;
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-light);
    min-width: 200px;
    padding: 0.5rem 0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
}

.nav-menu li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    padding: 0;
}

.sub-menu a {
    padding: 0.75rem 1.5rem;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

.sub-menu a:hover {
    background-color: var(--bg-dark);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 156, 26, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Navigation-specific button adjustments */
.nav-menu .btn {
    padding: 0.55rem 1.1rem;
    border-radius: 20px;
    line-height: 1.2;
    white-space: nowrap;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 300px);
    padding: 0.5rem 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-dark) 100%);
    padding: 2rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-gray);
}

/* Content Sections */
.content-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(240, 156, 26, 0.2);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.card-content {
    color: var(--text-gray);
    line-height: 1.8;
}

/* Footer */
.site-footer {
    background-color: var(--bg-darker);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 0.5rem;
}

.footer-widget a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-widget a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    margin: 0 0.5rem;
    color: var(--text-muted);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-dark) 100%);
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 968px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--bg-light);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        transition: right 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: var(--bg-dark);
        margin-left: 1rem;
        display: none;
    }
    
    .nav-menu li:hover .sub-menu,
    .nav-menu li.active .sub-menu {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* Image Layout Styles - Diverse and Professional */
.hero-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    border-radius: 12px;
    margin: 0 auto 2rem;
    display: block;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    margin-bottom: 1rem;
    display: block;
}

.inline-illustration {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem auto;
    display: block;
}

/* Image with Text Wrapper - Left/Right Layout */
.image-text-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: 3rem 0;
}

.image-text-wrapper.reverse {
    grid-template-columns: 1fr 1fr;
}

.image-text-wrapper .image-side {
    position: relative;
}

.image-text-wrapper .image-side img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.image-text-wrapper .text-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Image Grid - 2, 3, 4 columns */
.image-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.image-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.image-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.image-grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
}

.image-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-grid-item:hover img {
    transform: scale(1.05);
}

/* Background Image Section */
.bg-image-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 5rem 0;
    margin: 3rem 0;
}

.bg-image-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.bg-image-section .container {
    position: relative;
    z-index: 2;
}

/* Featured Image - Large Center */
.featured-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 12px;
    margin: 3rem auto;
    display: block;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

/* Small Inline Image */
.inline-small {
    width: 300px;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 1rem 1rem 0;
    float: left;
}

/* Image Box Pattern - Icon + Image */
.image-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
}

.image-box img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-color);
}

/* Step Process Images */
.step-process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step-item {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-light);
}

.step-title {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 600;
}

.step-description {
    color: var(--text-gray);
    line-height: 1.6;
}

.step-item img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Logo Grid */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
    margin: 2rem 0;
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: 8px;
}

.logo-grid img {
    width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.logo-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Responsive Image Layouts */
@media (max-width: 968px) {
    .image-text-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .image-text-wrapper.reverse {
        grid-template-columns: 1fr;
    }
    
    .image-text-wrapper .image-side {
        order: -1;
    }
    
    .image-grid-2,
    .image-grid-3,
    .image-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .inline-small {
        float: none;
        margin: 1rem auto;
        display: block;
    }
    
    .bg-image-section {
        background-attachment: scroll;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .image-grid-2,
    .image-grid-3,
    .image-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .step-process {
        grid-template-columns: 1fr;
    }
    
    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
