/*====================
  GLOBAL & BASE STYLES
  ====================*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #f5f2ed;
    color: #0d1b2a;
    line-height: 1.6;
}

h1, h2, h3 {
    margin: 0 0 15px;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    position: relative;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 3px;
    background: #c7a756;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

section {
    padding: 80px 5%;
    text-align: center;
}

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

/*====================
  HEADER
  ====================*/

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: #0d1b2a;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.main-header .logo img {
    height: 50px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-nav li a {
    color: #fff;
    font-weight: 500;
    position: relative;
}

.main-nav li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: #c7a756;
    transition: width 0.4s ease;
}

.main-nav li a:hover:after {
    width: 100%;
    left: 0;
    background: #c7a756;
}

.main-nav .cta-button {
    background: #c7a756;
    color: #fff;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.main-nav .cta-button:hover {
    background: #a98742;
}

.main-nav .cta-button:after {
    display: none !important;
}


/*====================
  HOME PAGE
  ====================*/

/* Hero Section */
.hero-section {
    background: #f5f2ed;
    padding: 80px 5%;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    text-align: left;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
}

.hero-image-placeholder {
    flex: 1;
    min-width: 450px;
    height: 500px;
    border-radius: 10px;
    overflow: hidden; /* IMPORTANT — prevents spilling */
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f2ed; /* or white, optional */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* SVG scales proportionally */
}

.cta-button.primary {
    display: inline-block;
    background: #c7a756;
    color: #fff;
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.cta-button.primary:hover {
    background: #a98742;
}

/* Trust Section (Logo Carousel & Factoids) */
.trust-section {
    background: #fff;
    padding: 60px 5%;
}

.trust-section .factoids {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.trust-section .factoid {
    text-align: center;
    padding: 20px;
    border-left: 3px solid #c7a756;
}

.trust-section .factoid h3 {
    font-size: 2rem;
    color: #0d1b2a;
    margin-bottom: 5px;
}

.trust-section .factoid p {
    color: #555;
    margin: 0;
}

/* Services/Expertise Section */
.services-overview-section, .capabilities-section {
    background: #f5f2ed;
}

.services-grid, .capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-item, .capability-item {
    background: #fff;
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover, .capability-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-item img, .capability-item img {
    height: 80px;
    margin-bottom: 20px;
}

.service-item h3, .capability-item h3 {
    color: #c7a756;
}

.secondary-cta {
    display: inline-block;
    margin-top: 40px;
    padding: 12px 30px;
    border: 2px solid #0d1b2a;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.secondary-cta:hover {
    background: #0d1b2a;
    color: #fff;
}

/* Collections Preview Section */
.collections-preview-section {
    background: #fff;
}

.collections-preview-section .collections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.collections-preview-section .collections-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.collections-preview-section .collections-grid img:hover {
    transform: scale(1.05);
}

/*====================
  ABOUT PAGE
  ====================*/

.page-intro {
    padding-bottom: 40px;
}

.team-section .personnel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.personnel-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.personnel-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #c7a756;
    margin-bottom: 15px;
}

/*====================
  COLLECTIONS PAGE
  ====================*/

.collections-section {
    background: #fff;
}

.collections-section .category-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.collections-section .category-nav a {
    font-weight: 600;
    padding: 8px 15px;
    border: 1px solid #c7a756;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.collections-section .category-nav a:hover {
    background: #c7a756;
    color: #fff;
}

.collection-category {
    margin-bottom: 60px;
}

.collection-category h2:after {
    background: none;
}

.collection-category h2 {
    color: #0d1b2a;
    margin-bottom: 20px;
}

.collection-category .style-filter-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.collection-category .style-filter-nav a {
    font-size: 0.9rem;
    padding: 5px 10px;
    background: #e4e2de;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.collection-category .style-filter-nav:hover {
    background: #c7a756;
    color: #fff;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.collection-grid img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.collection-grid img:hover {
    transform: translateY(-5px);
}

/*====================
  CONTACT PAGE
  ====================*/

.contact-intro {
    background: #fff;
    padding: 80px 5%;
    text-align: center;
}

.contact-intro h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #0d1b2a;
}

.contact-intro p {
    max-width: 700px;
    margin: 0 auto 50px auto;
    font-size: 1.1rem;
    color: #555;
}

.contact-info-section {
    background: #f5f2ed;
    padding: 60px 5%;
}

.contact-locations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.location-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.location-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.location-card address {
    font-style: normal;
    margin-bottom: 15px;
}

.location-card p {
    margin: 5px 0;
}

.location-card h2 {
    color: #c7a756;
    margin-bottom: 10px;
}

.location-card .map-placeholder {
    margin-top: 20px;
}

.contact-form-section {
    background: #fff;
    padding: 60px 5%;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box; /* Ensures padding and border are included in the element's total width and height */
}

.contact-form button {
    background: #0d1b2a;
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: #c7a756;
}

/*====================
  FOOTER
  ====================*/
.location-info h4 {
    display: inline-block;
    margin-right: 5px;
}

.location-info a img {
    height: 16px; /* Reduced the size */
    width: 16px; /* Reduced the size */
    vertical-align: middle;
}

.location-info a:hover {
    color: #c7a756;
}

.location-info svg {
    fill: currentColor;
    width: 5px;
    height: 5px;
}

.main-footer {
    background: #0d1b2a;
    color: #fff;
    padding: 40px 5%;
    text-align: center;
}

.main-footer .footer-info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.main-footer .location-info {
    text-align: left;
}

.main-footer .location-info h4 {
    color: #c7a756;
    margin-bottom: 10px;
}

.main-footer .social-links {
    margin-bottom: 20px;
}

.main-footer .social-links a {
    color: #fff;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.main-footer .social-links a:hover {
    color: #c7a756;
}

/*====================
  RESPONSIVE DESIGN
  ====================*/

@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        text-align: center;
    }
    .main-nav ul {
        margin-top: 15px;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.7rem;
    }
    section {
        padding: 50px 5%;
    }
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-image-placeholder {
        height: 300px;
        min-width: auto;
        width: 100%;
        margin-top: 30px;
    }
    .collections-preview-section .collections-grid {
        grid-template-columns: 1fr;
    }
    .contact-locations {
        grid-template-columns: 1fr;
    }
}

/*====================
  FLIP CARD EFFECT
  ====================*/

.capability-item {
    background: transparent;
    perspective: 1000px;
    height: 350px;
}

.capability-item .card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.capability-item.is-flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.card-front {
    color: #0d1b2a;
    text-align: center;
}

.card-front h3 {
    margin-top: 15px;
}

.card-back {
    transform: rotateY(180deg);
}

.card-back img {
    height: 150px;
    width: auto;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 5px;
}

.card-back p {
    font-size: 0.9rem;
    color: #555;
    text-align: center;
}

/* Updated hover effect to apply to the non-flipped state */
.capability-item:hover:not(.is-flipped) .card-inner {
    transform: translateY(-10px);
}

/* ALL STYLES MOVED TO styles.css */

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    margin: 0;
    background-color: #fcfcfc;
}

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

/* Page & Section Spacing */
.content-page {
    padding-top: 50px;
}

.page-intro {
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
}

.content-section {
    padding: 60px 0;
    margin-bottom: 40px;
}

.bg-light-gray {
    background-color: #f5f5f5;
}

/* Headings & Typography */
h1, h2, h3 {
    font-weight: 600;
    color: #111;
    text-transform: capitalize;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    position: relative;
}

h2::after {
    content: '';
    width: 60px;
    height: 3px;
    background-color: #c7a756;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 1.25rem;
    margin-top: 0;
}

.section-description {
    font-style: italic;
    color: #777;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Stats Section */
.stats-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap; 
}

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

.stat-item h3 {
    font-size: 2.5rem;
    color: #c7a756;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 1rem;
    color: #555;
    margin: 0;
}

/* Manufacturing Process Section */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}

.process-card {
    padding: 30px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    min-height: 180px;
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.process-card svg {
    width: 60px;
    height: 60px;
    color: #c7a756;
}

.process-card h3 {
    font-size: 1rem;
    margin-top: 15px;
    font-weight: 500;
}

/* Fabrics & Certifications Lists */
.fabric-list, .certification-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.fabric-list li, .certification-list li {
    background-color: #f9f9f9;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #eee;
    color: #555;
    text-align: center;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
    user-select: none;
}

.fabric-list li:hover {
    background-color: #e9e9e9;
    color: #111;
    cursor: default;
}

/* Specific styles for clickable certification items */
.certification-list li {
    cursor: pointer;
    background-color: #e6e9ed;
    color: #0d1b2a;
    /* Ensure all list items start as inline-block for the flex container */
    display: inline-block; 
}

.certification-list li:hover {
    background-color: #c7a756;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(199, 167, 86, 0.4);
}

.content-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
}

.fabric-types, .treatments {
    flex: 1;
    min-width: 300px;
}

.fabric-types h3, .treatments h3 {
    text-align: center;
    margin-bottom: 20px;
}

/* -------------------------------------------------------------------
| General Modal Styling (for process steps)
------------------------------------------------------------------- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 40px; 
    border-radius: 10px;
    width: 90%;
    max-width: 900px; 
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-button:hover,
.close-button:focus {
    color: #333;
}

.modal-content h3 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.modal-content p {
    text-align: center;
    color: #555;
    margin-bottom: 20px;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.image-gallery img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* -------------------------------------------------------------------
| PDF Modal Overrides (Fix for sizing)
------------------------------------------------------------------- */

.close-btn { 
    color: #aaa;
    align-self: flex-end;
    font-size: 36px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s;
    margin-bottom: 10px; 
}

.close-btn:hover,
.close-btn:focus {
    color: #0d1b2a;
}

#pdfModal .modal-content {
    /* Overrides general modal-content for PDF viewing */
    max-width: 1100px; 
    height: 90vh; 
    margin: 5vh auto;
    padding: 20px; 
    display: flex;
    flex-direction: column; 
}

#pdf-viewer {
    flex-grow: 1; 
    border: 1px solid #ddd;
    border-radius: 6px;
    min-height: 400px; 
}

.pdf-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
    background-color: #f5f5f5;
    border-radius: 6px;
    text-align: center;
    padding: 40px;
}

.pdf-fallback p {
    color: #666;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.pdf-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #c7a756;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s, transform 0.2s;
    margin-top: 15px;
}

.pdf-download-btn:hover {
    background-color: #b5963e;
    transform: translateY(-2px);
}

.pdf-download-btn svg {
    flex-shrink: 0;
}

/* -------------------------------------------------------------------
| ESG SUBMENU FIXES 
------------------------------------------------------------------- */

/* Style the top-level expandable item to look like a normal certification chip */
.certification-list .has-submenu {
    /* Retain chip styling */
    background-color: #e6e9ed;
    color: #0d1b2a;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
    text-align: center;
    /* Crucial: It needs to be display: block within the li to hold the submenu */
    display: block; 
    /* Ensures the submenu is positioned correctly */
    position: relative;
    user-select: none;
}

/* Add an indicator to the ESG chip that it's expandable */
.certification-list .has-submenu::after {
    content: '▼';
    font-size: 0.8em;
    margin-left: 8px;
    transition: transform 0.2s;
    vertical-align: middle;
}

.certification-list .has-submenu.open::after {
    content: '▲';
}

/* Style the submenu container */
.submenu {
    list-style: none; /* Removed the default disc bullet */
    margin-top: 10px;
    margin-left: 0; 
    padding: 10px; /* Add padding for visual spacing */
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: none; /* Hidden by default */
    text-align: left; 
    position: absolute; /* Allows it to expand without pushing other chips */
    top: 100%; /* Position below the main li */
    left: 50%;
    transform: translateX(-50%);
    min-width: 250px;
    z-index: 10;
}

/* Style the submenu titles (Policies, Production Units) */
.submenu-title {
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: 700; 
    color: #c7a756; 
    list-style: none;
    font-size: 0.95rem;
    padding: 0 5px;
    cursor: default;
    user-select: none;
    text-decoration: none; /* Removed underline for cleaner look */
}

/* Style the actual clickable PDF links within the submenu */
.submenu li:not(.submenu-title) {
    /* Reset all chip styles for clean text links */
    background: none;
    border: none;
    padding: 5px 10px;
    margin: 5px 0;
    font-size: 0.9rem;
    font-weight: 400;
    color: #333;
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s;
    text-align: left; 
    display: list-item; /* Ensures it acts like a normal list item */
}

.submenu li:not(.submenu-title):hover {
    color: #c7a756; 
    background-color: #eee;
    transform: none; 
    box-shadow: none;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .modal-content {
        margin: 20px auto;
        width: 95%;
        padding: 20px;
    }
    #pdfModal .modal-content {
        height: 95vh;
        margin: 2.5vh auto;
    }
    .stats-grid {
        flex-direction: column;
        gap: 20px;
    }

    /* Adjust submenu positioning for mobile to keep it contained */
    .submenu {
        position: relative; /* Change to relative on mobile */
        left: 0;
        transform: none;
        width: 100%;
        box-sizing: border-box;
    }
}