/* style.css */

:root {
    --primary-color: #153146; /* Global Fineline Deep Blue */
    --accent-color: #ef4a29;  /* Global Fineline Orange */
    --secondary-color: #bac9d6; /* Global Fineline Light Gray/Blue */
    --text-color: #404040;
    --light-gray: #f4f4f4;
    --white: #ffffff;
    --max-width: 1200px;
    --font-main: "Noto Sans TC", sans-serif;
    --font-display: "Wix Madefor Display", sans-serif;
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Common Layout */
main {
    padding-top: 80px;
}

main > section:first-of-type {
    padding-top: 40px;
}

/* Header & Nav */
header.global-header {
    background: var(--primary-color);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

header.global-header.scrolled {
    background: var(--primary-color);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: all 0.4s ease;
}

.main-logo {
    height: 40px;
    width: auto;
    transition: all 0.4s ease;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links li a {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--secondary-color);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--accent-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s ease;
}

/* Hero Section (Swiper) */
#hero.swiper {
    width: 100%;
    height: 80vh;
    margin-top: -80px;
    padding-top: 0 !important;
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

#hero p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    font-weight: 300;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

.btn {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 15px 40px;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(239, 74, 41, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background: #d13a1e;
    transform: translateY(-2px);
    color: var(--white);
}

.swiper-button-next, .swiper-button-prev {
    color: var(--white);
}

.swiper-pagination-bullet-active {
    background: var(--white);
}

/* About Us Section */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    margin-bottom: 10px;
}

.section-header p {
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 1px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
    font-size: 1.1rem;
}

.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.stats li {
    display: flex;
    flex-direction: column;
}

.stats li strong {
    font-size: 2.5rem;
    color: var(--accent-color);
    font-family: var(--font-display);
    line-height: 1;
}

.stats li span {
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    margin-top: 5px;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(21, 49, 70, 0.15);
}

.parent-company {
    background: linear-gradient(rgba(244, 244, 244, 0.9), rgba(244, 244, 244, 0.9)), url('../images/fastprint_branch.png') center/cover no-repeat;
    padding: 80px 60px;
    border-radius: 20px;
    margin-bottom: 80px;
}

.parent-company h3 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.parent-company > p {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
    color: #444;
    font-weight: 500;
}

.base-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.base-card {
    background: rgba(255, 255, 255, 0.85);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: 0.3s;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.5);
}

.base-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    background: var(--white);
}

.base-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.base-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
}

.partners-section {
    padding: 60px 0;
    text-align: center;
}

.partners-section h3 {
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.partners-image {
    width: 100%;
    height: auto;
    max-width: 1000px;
    display: block;
    margin: 0 auto;
}

/* Common Section Styling */
section {
    padding: 100px 0;
}

section h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
}

section h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 20px auto 0;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px 0;
}

.footer-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    align-items: end;
    gap: 40px;
}

.footer-logo {
    height: 50px;
    width: auto;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 0.95rem;
    opacity: 0.8;
}

.footer-contact-list i {
    width: 20px;
    color: var(--accent-color);
    margin-top: 5px;
}

.footer-copyright-column {
    text-align: right;
}

footer p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.products-grid {
    grid-template-columns: repeat(4, 1fr);
}

.products-grid .product-card {
    max-width: 280px;
    margin: 0 auto;
}

.card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    border: 1px solid #eee;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.card h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

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

#services {
    background: var(--light-gray);
}

.services-bottom-image {
    width: 100%;
    margin-top: 60px;
    text-align: center;
}

.services-bottom-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: block;
    margin: 0 auto;
}

/* Services & Products */
.card-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.product-card {
    text-align: left;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.product-carousel {
    width: 100%;
    height: 300px;
    background: #f0f0f0;
}

.product-carousel .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-info {
    padding: 30px;
}

.product-info h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    display: inline-block;
}

.product-description p {
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 1rem;
}

.product-description strong {
    color: var(--primary-color);
}

.product-specs {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.product-specs h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-specs ul {
    list-style: none;
    padding: 0;
}

.product-specs li {
    font-size: 1.1rem;
    color: #444;
    font-weight: 600;
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.product-specs li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.product-specs li strong {
    color: var(--primary-color);
    font-weight: 800;
}

/* News & Tech Page Layout */
.news-section {
    padding: 100px 0;
}

.news-content-row {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.news-content-row:nth-child(even) {
    flex-direction: row-reverse;
}

.news-text {
    flex: 1;
}

.news-text h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.news-text p {
    margin-bottom: 15px;
    color: #555;
}

.news-text ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #666;
}

.news-text ul li {
    margin-bottom: 10px;
}

.news-image {
    flex: 1;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.news-image .swiper, .news-image .image-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: #f0f0f0;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Fineline Branded Tables */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 40px;
}

.fineline-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
}

.fineline-table th {
    background: var(--primary-color);
    color: var(--white);
    text-align: left;
    padding: 15px 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.fineline-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    color: #555;
    font-size: 0.85rem;
    line-height: 1.5;
}

.fineline-table tr:last-child td {
    border-bottom: none;
}

.fineline-table tr:nth-child(even) {
    background: #fbfbfb;
}

.fineline-table tr:hover {
    background: #f1f5f9;
}

.table-img-cell {
    padding: 10px !important;
    vertical-align: middle;
    text-align: center;
    background: #fff !important;
    width: 100px;
}

.table-img-cell img {
    max-width: 80px;
    height: auto;
    display: block;
    margin: 5px auto;
    border: 1px solid #eee;
    border-radius: 4px;
}

/* News & Tech Section (Old) */
#news {
    background: var(--white);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.tech-item {
    background: var(--light-gray);
    padding: 40px;
    border-radius: 12px;
    border-left: 5px solid var(--primary-color);
}

.tech-info h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.tech-info p {
    font-size: 0.95rem;
    color: #666;
}

.dfm-rules {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px;
    border-radius: 20px;
    text-align: center;
}

.dfm-rules h3 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--white);
}

.dfm-rules h3::after {
    background: var(--white);
}

.dfm-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.dfm-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.dfm-card:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dfm-card h4 {
    margin-bottom: 15px;
    color: var(--accent-color);
}

.dfm-card p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Contact Us */
#contact {
    background: var(--light-gray);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: var(--white);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

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

.contact-form-container {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form input, .contact-form textarea {
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    background: #fdfdfd;
    font-family: inherit;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .footer-content-grid {
        grid-template-columns: 1fr;
        align-items: center;
        text-align: center;
        gap: 50px;
    }

    .footer-copyright-column {
        text-align: center;
    }

    .footer-contact-list li {
        justify-content: center;
    }

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

    .tech-grid, .dfm-container {
        grid-template-columns: 1fr;
    }

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

    .nav-links {
        position: fixed;
        right: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.4s ease;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        padding: 40px 0;
        z-index: 999;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-links li a {
        color: var(--secondary-color);
        font-size: 1.1rem;
    }

    .menu-toggle {
        display: flex;
    }

    #hero h1 {
        font-size: 2.5rem;
    }
}
@media (max-width: 768px) {
    .news-content-row, .news-content-row:nth-child(even) {
        flex-direction: column;
        gap: 30px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .parent-company, .partners-section {
        padding: 40px 20px;
    }

    .form-group {
        grid-template-columns: 1fr;
    }

    #hero h1 {
        font-size: 2.2rem;
    }

    #hero p {
        font-size: 1.1rem;
    }

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

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

    .products-grid .product-card {
        max-width: 100%;
    }
    
    section {
        padding: 70px 0;
    }
}
