/* ===================================
   INDUSTRIAL ELEGANCE DESIGN SYSTEM
   Copper Manufacturer Website
   =================================== */

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

:root {
    --copper: #B87333;
    --bronze: #CD7F32;
    --gold: #D4AF37;
    --dark: #1a1a1a;
    --light: #f5f5f5;
    --text: #2c2c2c;
    --border: #e0e0e0;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 50px rgba(184, 115, 51, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.6;
}

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

/* ===================================
   NAVIGATION
   =================================== */

.navbar {
    background: #2a2f36;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--copper);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--copper);
}

.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.7rem;
    margin-left: 0.5rem;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #2f3640;
    list-style: none;
    min-width: 200px;
    border-top: 3px solid var(--copper);
    box-shadow: var(--shadow);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background: var(--copper);
    padding-left: 2rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 0.4rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    background: linear-gradient(135deg, var(--dark) 0%, #2a2a2a 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(184, 115, 51, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin: 1rem 0;
    line-height: 1.2;
    font-weight: 800;
}

.hero-title .highlight {
    color: var(--copper);
    display: block;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #ccc;
    max-width: 700px;
    margin: 1.5rem auto;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--copper);
    color: white;
}

.btn-primary:hover {
    background: var(--bronze);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(184, 115, 51, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--copper);
    border-color: white;
}

/* ===================================
   STATS SECTION
   =================================== */

.stats-section {
    padding: 80px 0;
    background: var(--light);
}

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

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--copper);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--copper), var(--bronze));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--copper);
    font-weight: 800;
    margin: 0.5rem 0;
}

.stat-label {
    color: #666;
    font-size: 0.95rem;
}

/* ===================================
   SECTION HEADERS
   =================================== */

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    background: rgba(184, 115, 51, 0.1);
    color: var(--copper);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--dark);
    margin: 1rem 0;
}

.section-header p {
    color: #666;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 1rem auto;
}

/* ===================================
   LAUNCHES SECTION
   =================================== */

.launches-section {
    padding: 80px 0;
    background: white;
}

.launches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.launch-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.launch-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
}

.launch-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--light);
}

.launch-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.launch-card:hover .launch-image img {
    transform: scale(1.05);
}

.launch-content {
    padding: 2rem;
}

.launch-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.launch-content p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.launch-features {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.feature-tag {
    display: inline-block;
    background: rgba(184, 115, 51, 0.1);
    color: var(--copper);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.launch-link {
    display: inline-block;
    color: var(--copper);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.launch-link:hover {
    color: var(--bronze);
    transform: translateX(5px);
}

/* ===================================
   STORY SECTION
   =================================== */

.story-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--dark) 0%, #2a2a2a 100%);
    color: white;
    text-align: center;
}

.story-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.story-content p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.8;
    color: #ddd;
}

/* ===================================
   PRODUCTS SECTION
   =================================== */

.products-section {
    padding: 80px 0;
    background: var(--light);
}

.product-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-button {
    background: white;
    border: 2px solid var(--border);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--text);
    touch-action: manipulation;
}

.tab-button:hover {
    border-color: var(--copper);
    color: var(--copper);
}

.tab-button.active {
    background: var(--copper);
    color: white;
    border-color: var(--copper);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.product-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--copper);
}

.product-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: 800;
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s ease;
}

.product-icon.copper {
    background: linear-gradient(135deg, #B87333, #8B5A2B);
}

.product-icon.brass {
    background: linear-gradient(135deg, #CD7F32, #9B6B2F);
}

.product-icon.cupronickel {
    background: linear-gradient(135deg, #7FDBCA, #5CBFB8);
}

.product-icon.bimetallic {
    background: linear-gradient(135deg, #D4AF37, #AA8C2C);
}

.product-icon.spiral {
    background: linear-gradient(135deg, #B87333, #CD7F32);
}

.product-icon.swirl {
    background: linear-gradient(135deg, #8B5A2B, #6B4423);
}

.product-card:hover .product-icon {
    transform: scale(1.1) rotate(5deg);
}

.product-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.product-card p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.product-specs {
    margin: 1rem 0;
}

.product-specs span {
    display: inline-block;
    background: rgba(184, 115, 51, 0.1);
    color: var(--copper);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.product-link {
    display: inline-block;
    color: var(--copper);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.product-link:hover {
    color: var(--bronze);
    transform: translateX(5px);
}

/* ===================================
   FEATURES SECTION
   =================================== */

.features-section {
    padding: 80px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--light);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.feature-card:hover {
    background: white;
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--copper);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--copper), var(--bronze));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(-10deg);
}

.feature-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
}

/* ===================================
   CONTACT SECTION
   =================================== */

.contact-section {
    padding: 80px 0;
    background: var(--light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-form h3,
.contact-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--copper);
    box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.1);
}

.info-item {
    margin-bottom: 2rem;
}

.info-item h4 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.info-item p {
    color: #666;
}

.info-item a {
    color: var(--copper);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: var(--bronze);
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: var(--dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--copper);
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
}

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

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--copper);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: #999;
}

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

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark);
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown-menu {
        position: static;
        display: none;
        min-width: 100%;
        width: 100%;
        border-top: 0;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.04);
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown:hover .dropdown-menu {
        display: none;
    }

    .dropdown.open:hover .dropdown-menu {
        display: block;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .product-tabs {
        flex-direction: column;
    }

    .tab-button {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-section .container {
        flex-direction: column !important;
        gap: 1.5rem !important;
        align-items: stretch !important;
    }

    .footer-section .container > div {
        width: 100% !important;
        min-width: 0 !important;
    }

    .footer-section .container > div[style*="justify-content:flex-end"] {
        justify-content: center !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        align-items: center !important;
    }

    .footer-section .container > div[style*="justify-content:flex-end"] > div {
        text-align: center !important;
    }

    /* Stronger mobile footer layout to avoid cramped quick links */
    .footer-section .container > div:last-child {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2rem !important;
        width: 100% !important;
    }

    .footer-section .container > div:last-child > div {
        width: 100% !important;
        max-width: 320px;
        text-align: center !important;
    }

    .footer-section .container > div:last-child ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        margin: 0;
        padding: 0;
    }

    .footer-section .container > div:last-child a {
        margin-bottom: 0 !important;
    }
}

/* Some mobile browsers render wider CSS viewport; keep footer fixes up to tablet width */
@media (max-width: 900px) {
    .nav-menu .dropdown {
        width: 100%;
    }

    .nav-menu .dropdown-menu {
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        width: 100% !important;
        min-width: 100% !important;
        display: none;
        box-shadow: none !important;
    }

    .nav-menu .dropdown.open .dropdown-menu {
        display: block !important;
    }

    .nav-menu .dropdown:hover .dropdown-menu {
        display: none !important;
    }

    .nav-menu .dropdown.open:hover .dropdown-menu {
        display: block !important;
    }

    .footer-section > .container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1.75rem !important;
        text-align: center !important;
    }

    .footer-section > .container > div:first-child {
        width: 100% !important;
        min-width: 0 !important;
        justify-content: center !important;
        text-align: left !important;
    }

    .footer-section > .container > div:last-child {
        width: 100% !important;
        min-width: 0 !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        justify-items: center !important;
    }

    .footer-section > .container > div:last-child > div {
        width: 100% !important;
        max-width: 320px !important;
        text-align: center !important;
    }

    .footer-section > .container > div:last-child ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.65rem !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .footer-section > .container > div:last-child li {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .launches-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Hard override for opened mobile menu state (prevents dropdown overlap on all devices) */
.nav-menu.active .dropdown {
    width: 100% !important;
}

.nav-menu.active .dropdown > .dropdown-menu {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: 100% !important;
    min-width: 100% !important;
    display: none !important;
    box-shadow: none !important;
    border-top: 0 !important;
    background: rgba(255, 255, 255, 0.04) !important;
}

.nav-menu.active .dropdown.open > .dropdown-menu {
    display: block !important;
}

.nav-menu.active .dropdown:hover > .dropdown-menu {
    display: none !important;
}

.nav-menu.active .dropdown.open:hover > .dropdown-menu {
    display: block !important;
}

/* Hard override for cramped footer quicklinks on mobile/tablet */
@media (max-width: 1100px) {
    .footer-section > .container > div:last-child {
        display: grid !important;
        grid-template-columns: 1fr !important;
        justify-items: center !important;
        gap: 1.75rem !important;
    }

    .footer-section > .container > div:last-child > div {
        width: 100% !important;
        max-width: 360px !important;
        text-align: center !important;
    }

    .footer-section > .container > div:last-child ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.7rem !important;
        line-height: 1.4 !important;
    }
}
