/* ==========================================================================
   DAKO-TRADE Clone - Main Stylesheet
   ========================================================================== */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 13px;
    line-height: 20px;
    color: #777;
    background: #f2f2f2 url('../img/bg/subtle.png') repeat;
}

a {
    color: #ff3333;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #cc0000;
}

img {
    max-width: 100%;
    height: auto;
    border: 0;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    color: #444;
    font-weight: normal;
    margin-bottom: 10px;
}

h1 { font-size: 22px; line-height: 28px; }
h2 { font-size: 18px; line-height: 24px; }
h3 { font-size: 16px; line-height: 22px; }
h4 { font-size: 14px; line-height: 20px; }
h5 { font-size: 13px; line-height: 20px; text-transform: uppercase; letter-spacing: 1px; }
h6 { font-size: 12px; line-height: 18px; }

p {
    margin-bottom: 15px;
}

strong {
    font-weight: bold;
}

/* Layout */
.wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 15px;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ==========================================================================
   Header
   ========================================================================== */

#header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

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

#logo a {
    display: block;
}

#logo img {
    max-height: 50px;
    width: auto;
}

/* Navigation */
#nav ul.menu {
    display: flex;
    align-items: center;
}

#nav ul.menu > li {
    position: relative;
    margin-left: 5px;
}

#nav ul.menu > li > a {
    display: block;
    padding: 10px 15px;
    color: #888;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

#nav ul.menu > li > a:hover,
#nav ul.menu > li.current-menu-item > a {
    color: #ff3333;
}

/* Dropdown */
#nav ul.menu > li > ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #eee;
    min-width: 320px;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#nav ul.menu > li:hover > ul.sub-menu {
    display: block;
}

#nav ul.sub-menu li a {
    display: block;
    padding: 10px 15px;
    color: #777;
    font-size: 12px;
    border-bottom: 1px solid #f4f4f4;
    transition: all 0.2s;
}

#nav ul.sub-menu li:last-child a {
    border-bottom: none;
}

#nav ul.sub-menu li a:hover {
    color: #ff3333;
    background: #fafafa;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: #888;
    padding: 10px;
}

/* ==========================================================================
   Main Content
   ========================================================================== */

#main {
    padding: 30px 0;
}

.content-area {
    background: #fff;
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid #f0f0f0;
}

.page-title {
    font-size: 22px;
    color: #444;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

/* ==========================================================================
   FlexSlider Overrides
   ========================================================================== */

.flexslider {
    margin: 0 0 30px 0;
    background: #fff;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.flexslider .slides li {
    position: relative;
}

.flexslider .slide-caption {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 10px 15px;
    font-size: 13px;
    line-height: 18px;
    text-align: right;
}

.flexslider .slide-caption strong {
    display: block;
    font-size: 14px;
}

.flexslider .slides img {
    display: block;
    width: 100%;
    height: auto;
}

/* ==========================================================================
   Grid System
   ========================================================================== */

.row {
    margin: 0 -15px;
}

.row::after {
    content: "";
    display: table;
    clear: both;
}

.one-half,
.one-third,
.one-fourth {
    float: left;
    padding: 0 15px;
    margin-bottom: 20px;
}

.one-half { width: 50%; }
.one-third { width: 33.333%; }
.one-fourth { width: 25%; }

/* ==========================================================================
   Portfolio Cards
   ========================================================================== */

.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.portfolio-item {
    width: 25%;
    padding: 0 10px;
    margin-bottom: 20px;
}

.portfolio-item a {
    display: block;
    background: #fff;
    border: 1px solid #f0f0f0;
    text-align: center;
    transition: all 0.3s;
    overflow: hidden;
}

.portfolio-item a:hover {
    border-color: #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.portfolio-item img {
    display: block;
    width: 100%;
    height: auto;
}

.portfolio-item .portfolio-title {
    padding: 12px 10px;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 16px;
}

.portfolio-item a:hover .portfolio-title {
    color: #ff3333;
}

.portfolio-desc {
    text-align: center;
    font-size: 11px;
    color: #999;
    margin-top: -10px;
    margin-bottom: 10px;
    padding: 0 5px;
    line-height: 16px;
}

/* ==========================================================================
   Page Title Banner (red)
   ========================================================================== */

.page-banner {
    background: #ff3333;
    padding: 20px 0;
    margin-bottom: 20px;
}

.page-banner h1 {
    color: #fff;
    font-size: 22px;
    margin: 0;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 11px;
    color: #999;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.breadcrumb a {
    color: #999;
}

.breadcrumb a:hover {
    color: #ff3333;
}

/* ==========================================================================
   Reference sections
   ========================================================================== */

.reference-section {
    padding: 25px 0;
    border-bottom: 1px solid #eee;
}

.reference-section:last-child {
    border-bottom: none;
}

.reference-section h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
}

.reference-row {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.reference-logo {
    flex: 0 0 200px;
    text-align: center;
}

.reference-logo img {
    max-width: 180px;
    border: 1px solid #eee;
    padding: 10px;
}

.reference-list {
    flex: 1;
}

.reference-list ul {
    list-style: none;
}

.reference-list ul li {
    padding: 4px 0;
    font-size: 13px;
    color: #777;
}

.reference-list ul li strong {
    color: #444;
}

/* ==========================================================================
   Collapsible Sections
   ========================================================================== */

.collapsible {
    margin-bottom: 10px;
    border: 1px solid #f0f0f0;
    background: #fff;
}

.collapsible-header {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
}

.collapsible-header:hover {
    background: #fafafa;
}

.collapsible-header h3 {
    margin: 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.collapsible-header h3 img {
    max-height: 30px;
    width: auto;
}

.collapsible-header .fa {
    color: #bbb;
    transition: transform 0.3s;
}

.collapsible-header.active .fa {
    transform: rotate(180deg);
}

.collapsible-content {
    display: none;
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
}

.collapsible-content ul {
    list-style: none;
}

.collapsible-content ul li {
    padding: 5px 0;
    border-bottom: 1px solid #f8f8f8;
    color: #777;
}

.collapsible-content ul li:last-child {
    border-bottom: none;
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px;
}

.gallery-item {
    width: 16.666%;
    padding: 5px;
}

.gallery-item a {
    display: block;
    border: 1px solid #f0f0f0;
    transition: opacity 0.2s;
}

.gallery-item a:hover {
    opacity: 0.8;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
}

/* ==========================================================================
   Contact Page
   ========================================================================== */

.contact-form {
    max-width: 100%;
}

.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    color: #444;
    font-size: 13px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 13px;
    color: #777;
    background: #fff;
    transition: border-color 0.2s;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: #ff3333;
    outline: none;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form .btn-submit {
    display: inline-block;
    padding: 10px 25px;
    background: #ff3333;
    color: #fff;
    border: none;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-form .btn-submit:hover {
    background: #cc0000;
}

.contact-form .form-success {
    display: none;
    padding: 15px;
    background: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
    margin-top: 15px;
}

/* Contact Info */
.contact-info h5 {
    margin-bottom: 5px;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info a {
    color: #777;
}

.contact-info a:hover {
    color: #ff3333;
}

/* Map */
.map-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    filter: saturate(0.3) brightness(1.1);
}

/* ==========================================================================
   About Page - Company Info Table
   ========================================================================== */

.company-info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.company-info-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.company-info-table td {
    padding: 8px 12px;
    font-size: 13px;
    color: #777;
    vertical-align: top;
}

.company-info-table td:first-child {
    font-weight: bold;
    color: #444;
    width: 200px;
}

/* ==========================================================================
   Product Sections
   ========================================================================== */

.product-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.product-section:last-child {
    border-bottom: none;
}

.product-section h3 {
    margin-bottom: 15px;
}

.product-section ul {
    margin-bottom: 15px;
}

.product-section ul li {
    padding: 3px 0;
    padding-left: 15px;
    position: relative;
}

.product-section ul li::before {
    content: "–";
    position: absolute;
    left: 0;
}

.pdf-download {
    display: inline-block;
    padding: 8px 15px;
    background: #f5f5f5;
    border: 1px solid #eee;
    color: #777;
    font-size: 12px;
    margin-bottom: 15px;
    transition: all 0.2s;
}

.pdf-download:hover {
    background: #ff3333;
    color: #fff;
    border-color: #ff3333;
}

.pdf-download .fa {
    margin-right: 5px;
    color: #ff3333;
}

.pdf-download:hover .fa {
    color: #fff;
}

/* Application icons grid */
.applications-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.application-item {
    text-align: center;
    width: 120px;
}

.application-item a {
    display: block;
    color: #777;
    font-size: 11px;
}

.application-item a:hover {
    color: #ff3333;
}

.application-item img {
    display: block;
    margin: 0 auto 8px;
    max-width: 80px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

#footer {
    background: #222;
    color: #999;
    padding: 30px 0;
    font-size: 12px;
    line-height: 20px;
}

#footer .wrapper {
    display: flex;
    justify-content: space-between;
}

#footer h5 {
    color: #ccc;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

#footer a {
    color: #999;
}

#footer a:hover {
    color: #ff3333;
}

.footer-address,
.footer-contact {
    flex: 1;
}

#subfooter {
    background: #1a1a1a;
    color: #666;
    padding: 15px 0;
    font-size: 11px;
    text-align: center;
}

/* ==========================================================================
   Welcome text
   ========================================================================== */

.welcome-text {
    text-align: center;
    padding: 20px 0 30px;
    font-size: 14px;
    color: #888;
    line-height: 24px;
}

/* Partner description below cards */
.partner-descriptions {
    margin-top: 10px;
}

.partner-descriptions .desc-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    font-size: 12px;
}

.partner-descriptions .desc-item .dot {
    color: #ff3333;
    margin-right: 8px;
    font-weight: bold;
}

/* External link */
.external-link {
    display: inline-block;
    margin: 10px 0;
    font-size: 12px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    #nav ul.menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border: 1px solid #eee;
        z-index: 1000;
    }

    #nav ul.menu.active {
        display: flex;
    }

    #nav ul.menu > li {
        margin-left: 0;
    }

    #nav ul.menu > li > a {
        padding: 12px 15px;
        border-bottom: 1px solid #f4f4f4;
    }

    #nav ul.menu > li > ul.sub-menu {
        position: static;
        box-shadow: none;
        border: none;
        min-width: auto;
    }

    #nav ul.sub-menu li a {
        padding-left: 30px;
    }

    #header .wrapper {
        position: relative;
    }

    .portfolio-item {
        width: 50%;
    }

    .one-half,
    .one-third,
    .one-fourth {
        width: 100%;
    }

    #footer .wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .gallery-item {
        width: 33.333%;
    }

    .content-area {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .portfolio-item {
        width: 100%;
    }
}
