/* =====================================================
   PGD Website Styles
   Matching Pantera Group design language
   ===================================================== */

:root {
    --bg-dark: #1a1a1a;
    --bg-black: #000000;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --text-white: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #888888;
    --accent-blue: #0077b6;
    --accent-blue-light: #00a8e8;
    --border-dark: #333333;
    --border-light: #dddddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Image sharpness fix */
img {
    image-rendering: -webkit-optimize-contrast;
    backface-visibility: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-weight: 400;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.section-title-light {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.text-blue {
    color: var(--accent-blue);
}

.text-bold {
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent-blue);
    color: var(--text-white);
    border-color: var(--accent-blue);
}

.btn-primary:hover {
    background: var(--accent-blue-light);
    border-color: var(--accent-blue-light);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border-color: var(--text-white);
}

.btn-outline:hover {
    background: var(--text-white);
    color: var(--text-dark);
}

.btn-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: var(--accent-blue-light);
}

/* =====================================================
   Navigation
   ===================================================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

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

nav .logo img {
    height: 35px;
    filter: invert(1);
    image-rendering: -webkit-optimize-contrast;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--text-white);
    transition: all 0.3s ease;
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('images/hero_manufacturing.jpg') center/cover no-repeat;
    background-color: var(--bg-dark);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-logo {
    max-width: 400px;
    width: 80%;
    filter: invert(1);
    image-rendering: -webkit-optimize-contrast;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-white);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Page Hero (for subpages) */
.page-hero {
    position: relative;
    padding: 8rem 0 4rem;
    background-color: var(--bg-dark);
    text-align: center;
    overflow: hidden;
}

.page-hero-image {
    position: relative;
    padding: 8rem 0 4rem;
    background-size: cover;
    background-position: center;
    text-align: center;
}

.page-hero-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.page-hero h1 {
    position: relative;
    z-index: 1;
    font-size: clamp(3rem, 8vw, 5rem);
    color: var(--text-white);
}

.page-hero-pattern {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: url('images/door_pattern.png') repeat-x;
    background-size: auto 100%;
    opacity: 0.3;
}

/* =====================================================
   Stats Bar
   ===================================================== */
.stats-bar {
    background: var(--bg-dark);
    padding: 3rem 0;
    color: var(--text-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--accent-blue);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stats-cta {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-dark);
}

.stats-cta p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* =====================================================
   About / More Than Doors Section
   ===================================================== */
.about-section {
    padding: 5rem 0;
    background: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.about-image img {
    width: 100%;
    height: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* =====================================================
   What We Do Section
   ===================================================== */
.what-we-do {
    background: var(--bg-dark);
    padding: 4rem 0;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.service-item {
    color: var(--text-white);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--text-white);
    stroke-width: 1.5;
}

.service-item h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
}

/* =====================================================
   Projects Section
   ===================================================== */
.projects-section {
    padding: 5rem 0;
    background: var(--bg-white);
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.projects-content p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.projects-image {
    position: relative;
}

.projects-image img {
    width: 100%;
    height: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.image-caption {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* =====================================================
   Future / Timeline Section
   ===================================================== */
.future-section {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    background-image: url('images/future_bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 5rem 0;
    text-align: center;
    color: var(--text-white);
}

.future-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.future-section .container {
    position: relative;
    z-index: 1;
}

.future-intro {
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

.timeline {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: nowrap;
    max-width: 600px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    max-width: 180px;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-dark);
    border: 2px solid var(--accent-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--accent-blue);
}

.timeline-year {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
}

.timeline-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    line-height: 1.3;
}

/* =====================================================
   Pantera Group Section
   ===================================================== */
.pantera-section {
    padding: 5rem 0;
    background: var(--bg-white);
    text-align: center;
}

.pantera-logo {
    max-width: 300px;
    margin: 1rem auto 2rem;
}

.pantera-section p {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.org-placeholder {
    background: var(--bg-light);
    border: 2px dashed var(--border-light);
    padding: 3rem;
    margin-top: 2rem;
    color: var(--text-muted);
}

/* =====================================================
   Certifications
   ===================================================== */
.certifications {
    padding: 3rem 0;
    background: var(--bg-light);
}

.cert-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.cert-item img {
    height: 60px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.cert-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* =====================================================
   Footer
   ===================================================== */
footer {
    background: var(--bg-black);
    color: var(--text-white);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--text-white);
}

.footer-nav a {
    color: var(--text-white);
}

.office-address {
    margin-bottom: 1.5rem;
}

.office-address strong {
    display: block;
    color: var(--text-white);
    margin-bottom: 0.25rem;
}

.office-address p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-logos {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.5rem;
}

.footer-logo-pgd {
    height: 50px;
    filter: invert(1);
    image-rendering: -webkit-optimize-contrast;
}

.footer-logo-pantera {
    height: 40px;
}

.footer-bottom {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-dark);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =====================================================
   Services Page
   ===================================================== */
.capabilities-section {
    padding: 5rem 0;
    background: var(--bg-white);
}

.capabilities-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.capabilities-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.capabilities-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-light);
    transform: translateX(-50%);
}

.capability-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    position: relative;
}

.capability-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 12px;
    background: var(--accent-blue);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.capability-item:nth-child(even) .capability-content {
    order: 2;
    text-align: left;
}

.capability-item:nth-child(even) .capability-image {
    order: 1;
}

.capability-content {
    text-align: right;
}

.capability-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-blue);
}

.capability-content p {
    color: var(--text-dark);
    line-height: 1.8;
}

.capability-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* =====================================================
   Manufacture Page
   ===================================================== */
.manufacture-hero {
    background: var(--bg-dark);
    padding: 8rem 0 4rem;
    text-align: center;
    color: var(--text-white);
}

.video-placeholder {
    background: #333;
    max-width: 800px;
    margin: 2rem auto;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.manufacture-section {
    padding: 4rem 0;
}

.manufacture-section:nth-child(even) {
    background: var(--bg-light);
}

.manufacture-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.manufacture-grid.reverse .manufacture-content {
    order: 2;
}

.manufacture-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.manufacture-content h2 span {
    color: var(--accent-blue);
}

.manufacture-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.made-in-britain {
    display: inline-block;
    padding: 1rem;
    background: var(--bg-dark);
    color: var(--text-white);
}

/* =====================================================
   People Page
   ===================================================== */
.people-hero {
    position: relative;
    padding: 10rem 0 4rem;
    background: linear-gradient(to bottom, var(--bg-dark) 50%, var(--bg-white) 50%);
    text-align: center;
}

.people-hero h1 {
    color: var(--text-white);
    margin-bottom: 2rem;
}

.people-hero-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--text-white);
}

.team-section {
    padding: 4rem 0;
    background: var(--bg-white);
}

.team-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.team-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.team-member {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    align-items: start;
    padding: 2rem;
    background: var(--bg-light);
}

.team-member:nth-child(even) {
    direction: rtl;
}

.team-member:nth-child(even) > * {
    direction: ltr;
}

.team-photo {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.team-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.team-info .role {
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-info p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.team-quote {
    font-style: italic;
    padding: 1.5rem;
    background: var(--bg-white);
    border-left: 4px solid var(--accent-blue);
    margin-top: 1.5rem;
}

/* =====================================================
   ESG Page
   ===================================================== */
.esg-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('images/esg_hero.jpg') center/cover;
    text-align: center;
}

.esg-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.esg-hero-content {
    position: relative;
    z-index: 1;
    color: var(--text-white);
}

.net-zero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 0.5rem;
}

.net-zero-title span {
    color: #4CAF50;
}

.commitment-section {
    padding: 5rem 0;
    text-align: center;
    background: var(--bg-white);
}

.commitment-section .pantera-logo {
    max-width: 200px;
    margin-bottom: 1rem;
}

.commitment-intro {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.commitment-highlight {
    background: var(--bg-light);
    padding: 1.5rem 2rem;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 600;
}

.esg-content {
    padding: 4rem 0;
}

.esg-block {
    margin-bottom: 3rem;
}

.esg-block h2 {
    color: var(--accent-blue);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.esg-block p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* =====================================================
   Contact Page
   ===================================================== */
.contact-hero {
    position: relative;
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #d4a574 0%, #c4956a 100%);
    overflow: hidden;
}

.contact-hero h1 {
    position: relative;
    z-index: 1;
    color: var(--text-white);
    font-size: clamp(3rem, 8vw, 5rem);
}

.door-image {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    height: 120%;
    z-index: 0;
}

.contact-section {
    padding: 5rem 0;
    background: var(--bg-black);
    color: var(--text-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact-address {
    margin-bottom: 2rem;
}

.contact-address h3 {
    font-size: 1.1rem;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-address p {
    color: var(--text-muted);
    line-height: 1.6;
}

.contact-links {
    margin-top: 2rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--accent-blue);
}

.contact-link svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.contact-map {
    background: #333;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-logos {
        grid-column: span 3;
        flex-direction: row;
        justify-content: center;
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid var(--border-dark);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid,
    .projects-grid,
    .manufacture-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .timeline {
        gap: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-logos {
        grid-column: span 2;
    }
    
    .capability-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .capability-item::before {
        display: none;
    }
    
    .capabilities-timeline::before {
        display: none;
    }
    
    .capability-content,
    .capability-item:nth-child(even) .capability-content {
        text-align: left;
    }
    
    .team-member {
        grid-template-columns: 1fr;
    }
    
    .team-member:nth-child(even) {
        direction: ltr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-logos {
        grid-column: 1;
    }
}
