/* Base Styles & Variables */
:root {
    --primary-blue: #1c2759;
    --accent-blue: #0096ff;
    --accent-orange: #d94814;
    --text-main: #333333;
    --text-light: #666666;
    --text-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #333333;
    --border-color: #e5e5e5;
    --container-width: 1200px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.container-sm {
    max-width: 900px;
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: 80px 0;
}

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

/* Typography */
h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-white);
}

h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.section-title {
    margin-bottom: 50px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.white-text h2,
.white-text p {
    color: var(--text-white);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-white {
    background-color: var(--text-white);
    color: var(--text-main);
}

.btn-white:hover {
    background-color: #f0f0f0;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: #12193b;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 30px 0 150px;
    background-image: url('https://img.freepik.com/free-photo/close-up-image-lot-coils-with-threads-sewing-workshop_613910-19021.jpg?semt=ais_hybrid&w=740&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 700px;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(28, 39, 89, 0.8) 0%, rgba(28, 39, 89, 0.4) 100%);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--text-white);
    padding: 10px 25px;
    border-radius: 50px;
    margin-bottom: 100px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    /* Add position relative for mobile menu */
}

.logo {
    display: flex;
    align-items: center;
}

.brand-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-main);
}

.hero-content {
    max-width: 600px;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Stats Overlay */
.stats-wrapper {
    position: relative;
    margin-top: -120px;
    z-index: 20;
}

.stats-card {
    background-color: #212c6a;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

/* Left portion formatting */
.stats-left {
    flex: 1.1;
    background-color: #3b457a;
    /* Lighter blue inner box */
    padding: 50px 40px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 10px;
}

.stat-main-text {
    color: var(--text-white);
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 20px;
}

.stat-sub-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Right portion 2x2 grid */
.stats-right {
    flex: 1.5;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 30px;
    padding: 55px 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    color: var(--text-white);
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 5px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* Core Capabilities */
.capabilities {
    padding-top: 100px;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.capability-card {
    background-color: #f7f8fa;
    /* Light grey box */
    padding: 50px 30px 40px;
    /* More top padding to prevent badge overlap */
    border-radius: 8px;
    position: relative;
    border: none;
    margin-top: 35px;
    /* Allow space for overflowing top badge */
}

/* White ring covering the card edge */
.card-number-wrapper {
    position: absolute;
    top: -26px;
    /* -26px pulls it 26px up. Total height is 52px. So it sits perfectly on the edge */
    left: 40px;
    width: 52px;
    height: 52px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 50%;
    border: 1px solid #212c6a;
    /* Thin blue outer ring */
}

.card-number {
    width: 44px;
    /* The inner filled circle */
    height: 44px;
    background-color: #212c6a;
    /* Dark blue fill */
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
}

.card-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    /* Soft white looping path on the grey card */
    background-image: url('data:image/svg+xml;utf8,<svg width="150" height="150" viewBox="0 0 150 150" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M 15 150 C 15 100, 100 80, 130 100 C 150 120, 80 150, 50 120 C 20 90, 100 0, 150 0" stroke="%23ffffff" stroke-width="6" stroke-linecap="round" fill="none"/></svg>');
    background-size: 150px;
    background-repeat: no-repeat;
    background-position: right -20px top 50%;
    opacity: 0.8;
    z-index: 0;
    overflow: hidden;
}

.card-content {
    position: relative;
    z-index: 1;
    margin-top: 15px;
}

.card-content h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.card-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Our Process */
.process {
    background-color: var(--bg-dark);
}

.process-timeline {
    position: relative;
    margin-top: 60px;
}

.timeline-line {
    position: absolute;
    top: 40px;
    left: 5%;
    right: 5%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.2);
    z-index: 1;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.process-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-circle-wrapper {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.base-circle {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.process-step:hover .base-circle {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.process-step h4 {
    color: var(--text-white);
    margin-bottom: 10px;
    font-size: 1rem;
}

.process-step p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Operational Standards */
.bg-light {
    background-color: var(--bg-light);
}

.standards-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
}

.standards-image {
    flex: 1;
}

.standards-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: block;
}

.standards-list {
    flex: 1;
    text-align: left;
}

.standard-item {
    margin-bottom: 30px;
}

.standard-item:last-child {
    margin-bottom: 0;
}

.standard-item h4 {
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.standard-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Export Enquiries Form */
.enquiry-form {
    margin-top: 40px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.align-start {
    align-items: flex-start;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    flex: 100%;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background-color: #212852;
    color: var(--text-white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-brand-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    /* Optional: makes logo white if needed against dark footer */
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-col h4 {
    color: var(--text-white);
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a,
.footer-col address {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-style: normal;
}

.footer-col ul li a:hover {
    color: var(--text-white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bottom-links {
    display: flex;
    gap: 20px;
}

.bottom-links a,
.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.bottom-links a:hover {
    color: var(--text-white);
}

/* Responsive */
@media (max-width: 992px) {
    .stats-card {
        flex-direction: column;
    }

    .stats-left {
        border-radius: 12px 12px 0 0;
        margin-bottom: 0;
        text-align: center;
        margin: 10px 10px 0 10px;
    }

    .stats-right {
        text-align: center;
    }

    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 40px 20px;
    }

    .process-step {
        flex: unset;
    }

    .timeline-line {
        display: none;
    }

    .standards-content {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .navbar {
        margin-bottom: 50px;
        border-radius: 8px;
        /* Remove completely rounded corners on mobile if menu is wide */
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Full screen popup menu for mobile */
    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: var(--primary-blue);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 90;
        /* high z-index, but below hamburger if possible */
        gap: 30px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .navbar {
        position: relative;
        /* ensure context for z-index */
        z-index: 100;
        /* keep navbar/hamburger above the overlay */
    }

    /* Change link color to white for contrast against primary blue */
    .nav-links a {
        color: var(--text-white);
        font-size: 1.5rem;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }

    /* Keep hamburger visible & adjust color if needed when overlay active */
    .hamburger {
        z-index: 101;
    }

    .hamburger.active .bar {
        background-color: var(--text-white);
    }

    /* Prevent background scrolling when menu is open */
    body.no-scroll {
        overflow: hidden;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-step {
        flex: unset;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .empty-group {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }

    /* About page mobile padding fixes */
    .hero-about-box {
        padding: 40px 20px;
    }

    .journey-container {
        flex-direction: column;
        gap: 20px;
    }

    .journey-lines {
        display: none;
        /* Hide timeline line on very small screens */
    }

    .leadership-grid {
        grid-template-columns: 1fr;
    }

    /* Services page grid fix */
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .process-steps {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 0 10px;
    }

    .stats-right {
        grid-template-columns: 1fr;
    }
}

/* --- Services Page Styles --- */
.hero-services {
    min-height: 450px;
    background-image: url('https://crescenttp.com/files/denim.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-bottom: 0;
}

/* --- About Page Styles --- */
.hero-about {
    min-height: 450px;
    background-image: url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    padding-bottom: 0;
}

.hero-about-box {
    background-color: #313331;
    color: var(--text-white);
    padding: 60px 80px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.hero-about-box h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-about-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    line-height: 1.6;
}

.pt-0 {
    padding-top: 0 !important;
}

.journey-container {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 20px;
}

.journey-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    max-width: 250px;
}

.journey-line {
    height: 1px;
    background-color: #bbbbbb;
    width: 100%;
    position: relative;
}

.journey-line::after {
    content: "";
    position: absolute;
    right: 0;
    top: -4px;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid #bbbbbb;
}

.journey-content {
    flex: 2;
}

.journey-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.leadership-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px auto 0;
}

.leader-card {
    background-color: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.leader-image-placeholder {
    height: 250px;
    background-color: #ededed;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.leader-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.leader-card:hover .leader-image-placeholder img {
    transform: scale(1.05);
}

.leader-info {
    padding: 35px;
    background-color: #f7f8f9;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.leader-info h3 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: var(--text-main);
    text-transform: uppercase;
}

.leader-title {
    color: var(--primary-blue);
    font-size: 0.85rem;
    margin-bottom: 25px;
    font-weight: 500;
}

.leader-quote {
    font-size: 0.95rem;
    color: var(--text-main);
    position: relative;
    line-height: 1.6;
}

.philosophy-container {
    display: flex;
    gap: 60px;
    margin-top: 40px;
    align-items: center;
}

.philosophy-image {
    flex: 1;
}

.philosophy-image img {
    width: 100%;
    border-radius: 8px;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.philosophy-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.philosophy-item h4 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.philosophy-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

@media (max-width: 768px) {

    .journey-container,
    .philosophy-container,
    .leadership-grid {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .hero-about-box {
        padding: 40px 30px;
    }
}

/* --- Services Page Styles --- */
.hero-services {
    min-height: 480px;
    background-image: url('https://crescenttp.com/files/denim.jpg');
    padding-bottom: 0;
}

.service-section {
    padding-bottom: 40px;
}

.service-header {
    margin-bottom: 35px;
}

.service-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 30px;
}

.service-card {
    background-color: var(--bg-light);
    border-radius: 12px;
    padding: 25px 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.service-card:hover {
    background-color: var(--text-white);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    border-color: var(--border-color);
}

.service-card::after {
    content: "";
    position: absolute;
    top: -20px;
    right: 20px;
    width: 60px;
    height: 100px;
    background-image: url('data:image/svg+xml;utf8,<svg width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="%23e5e5e5" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2v20M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"></path></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.3;
    pointer-events: none;
}

.service-icon-wrap {
    width: 50px;
    height: 50px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(28, 39, 89, 0.2);
}

.service-icon-wrap svg {
    width: 20px;
    height: 20px;
}

.service-details {
    flex: 1;
}

.service-details h4 {
    color: var(--primary-blue);
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.service-details p {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}