/* Page Styles for Production and Sub-pages */

/* Ensure base sizing matches home page */
html {
    font-size: 16px;
    overflow-x: hidden;
    scroll-padding-top: 0;
}

body {
    font-size: 16px;
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-black);
    line-height: 1.4;
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    margin: 0;
    padding: 0;
}

/* Ensure header matches home page - use same responsive values without !important to allow media queries */
.header {
    padding: 2rem 0;
}

.header-container {
    max-width: min(1800px, 95vw);
    padding: 0 clamp(1.5rem, 4vw, 3rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
    flex-wrap: nowrap;
    min-width: 0;
}

.header-logo {
    max-height: clamp(60px, 8vw, 80px);
    height: clamp(60px, 8vw, 80px);
    min-height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
    opacity: 1;
    visibility: visible;
    flex-shrink: 0;
    border: 1px solid var(--text-black);
    padding: 0.25rem;
    box-sizing: border-box;
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}

a .header-logo,
.header-left a {
    display: inline-block;
    line-height: 0;
}

.header-tagline {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(0.75rem, 1.5vw, 1.5rem);
    line-height: 1.2;
    flex-shrink: 1;
    min-width: 0;
    flex-wrap: wrap;
}

.dropdown-toggle {
    min-width: 120px;
    max-height: 50px;
    padding: 0.5rem 1rem;
    flex-shrink: 0;
}

/* Hamburger icon for mobile */
.hamburger-icon {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 24px;
    height: 18px;
    justify-content: center;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-black);
    transition: all 0.3s ease;
}

.dropdown-menu.active .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.dropdown-menu.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.dropdown-menu.active .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive header adjustments to match home page */
@media (max-width: 1400px) {
    .header-tagline {
        display: none;
    }
    
    .header-left {
        flex: 0 0 auto;
        justify-content: flex-start;
        width: auto;
        flex-wrap: nowrap;
    }
    
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .dropdown-menu {
        flex: 0 0 auto;
        margin-left: auto;
    }
    
    .dropdown-toggle {
        min-width: auto;
        width: clamp(40px, 8vw, 80px);
        height: clamp(40px, 8vw, 80px);
        padding: 0;
        justify-content: center;
        align-items: center;
        flex-shrink: 0;
    }
    
    .hamburger-icon {
        width: 24px;
        height: 18px;
    }
    
    .hamburger-icon span {
        height: 2px;
    }
    
    .dropdown-toggle-text {
        display: none;
    }
    
    .dropdown-toggle-icon {
        display: none;
    }
    
    .hamburger-icon {
        display: flex;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: clamp(0.5rem, 2vw, 1rem);
    }
    
    .header-left {
        flex: 0 1 auto;
        width: auto;
        justify-content: flex-start;
    }
    
    .header {
        padding: clamp(1rem, 3vw, 2rem) 0;
    }
    
    .header-logo {
        max-height: clamp(60px, 8vw, 80px);
        height: clamp(60px, 8vw, 80px);
        min-height: 60px;
    }
}

@media (max-width: 480px) {
    .header-logo {
        max-height: clamp(40px, 8vw, 60px);
        height: clamp(40px, 8vw, 60px);
        min-height: 40px;
    }
    
    .header-container {
        gap: clamp(0.25rem, 1vw, 0.5rem);
    }
}

.page-container {
    max-width: min(1800px, 95vw);
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 2rem) clamp(1.5rem, 4vw, 3rem);
    min-height: calc(100vh - 200px);
}

.page-content {
    width: 100%;
    margin: 0;
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--text-black);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
}

.page-description {
    margin-bottom: clamp(3rem, 6vw, 4rem);
}

.page-description p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.8;
    color: var(--text-black);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.page-description p:last-child {
    margin-bottom: 0;
}

.section-heading {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--text-black);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    margin-top: clamp(2rem, 4vw, 3rem);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(1rem, 2vw, 2rem);
    margin-bottom: 3rem;
}

.clients-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.clients-column p {
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    color: var(--text-black);
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.services-list p {
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    color: var(--text-black);
    font-weight: 300;
    line-height: 1.8;
    margin: 0;
}

/* Office cards and clocks */
.offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(2rem, 4vw, 3rem);
    margin-bottom: clamp(3rem, 6vw, 4rem);
}

.office-card {
    border: 1px solid var(--border-grey);
    padding: clamp(2rem, 4vw, 3rem);
    background-color: var(--bg-light);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.office-card:hover {
    background-color: var(--bg-black);
    color: var(--text-white);
}

.office-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    padding-bottom: clamp(1rem, 2vw, 1.5rem);
    border-bottom: 1px solid var(--border-grey);
}

.office-city {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--text-black);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
    transition: color 0.3s ease;
}

.office-card:hover .office-city {
    color: var(--text-white);
}

.office-clock {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-shrink: 0;
    font-family: 'Courier New', monospace;
}

.digital-clock-time {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 400;
    color: var(--text-black);
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.digital-clock-period {
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    font-weight: 300;
    color: var(--text-black);
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.office-card:hover .digital-clock-time,
.office-card:hover .digital-clock-period {
    color: var(--text-white);
}

.office-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.office-address,
.office-contact,
.office-email {
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    color: var(--text-black);
    font-weight: 300;
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
}

.office-card:hover .office-address,
.office-card:hover .office-contact,
.office-card:hover .office-email {
    color: var(--text-white);
}

.office-contact,
.office-email {
    margin-top: 0.75rem;
    font-weight: 400;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .clients-grid,
    .offices-grid {
        grid-template-columns: 1fr;
    }
    
    .page-container {
        padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem);
    }
}

