/* TMC Partners Layout Styling - Overrides */
:root {
    scroll-behavior: smooth;
    /* Legacy variables for gallery compatibility */
    --primary-hover: #dba024;
    --text-main: #333333;
    --text-muted: #6b7280;
    --bg-main: #ffffff;
    --bg-card: #ffffff;
    --border-color: #e5e7eb;
    --border-radius: 8px;

    /* TMC Branding */
    --primary-color: #0c2340;
    /* Navy Blue */
    --header-bg: #0c2340;
    --footer-bg: #0c2340;
    --tmc-gold: #c48b29;
    /* Gold */
    --tmc-gold-hover: #b07c24;
    --tmc-navy-hover: #08162b;
    --tmc-bg-light: #f5f8fa;
    --font-main: 'Inter', sans-serif;
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

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

/* Header */
.site-header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
}

.logo h1 span {
    font-weight: 300;
    font-size: 22px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-nav a {
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.3s;
    color: white;
}

.main-nav a:hover,
.main-nav a.active {
    opacity: 0.8;
}

/* Dropdown Menu Styles */
.main-nav li {
    position: relative;
    padding: 10px 0;
}

.main-nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: -10px;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    z-index: 1000;
    padding: 10px 0;
    border-radius: 4px;
    flex-direction: column;
    gap: 0;
}

.main-nav li:hover .dropdown-menu {
    display: flex;
}

.main-nav .dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: var(--text-main);
    font-weight: 500;
    opacity: 1;
}

.main-nav .dropdown-menu a i {
    margin-right: 12px;
    color: var(--tmc-gold);
    width: 20px;
    text-align: center;
}

.main-nav .dropdown-menu a:hover {
    background-color: var(--tmc-bg-light);
    color: var(--primary-color);
    opacity: 1;
}

/* Buttons */
.btn {
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    display: inline-block;
}

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

.btn-primary:hover {
    background-color: var(--tmc-navy-hover);
}

.btn-accent {
    background-color: var(--tmc-gold);
    color: white;
}

.btn-accent:hover {
    background-color: var(--tmc-gold-hover);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('../Equipment/supply_logistics_bg.png') center/cover;
    height: 550px;
    display: flex;
    align-items: center;
    color: white;
}

.hero-content {
    max-width: 700px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.25;
    font-weight: 700;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 550px;
}

.btn-group {
    display: flex;
    gap: 15px;
}

/* General Sections */
.section-padding {
    padding: 70px 0;
}

.bg-light {
    background-color: var(--tmc-bg-light);
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
}

.section-title-wrapper.about {
    margin-bottom: 25px;
    justify-content: flex-start;
}

.section-title-wrapper::before,
.section-title-wrapper::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #d1d5db;
    margin: 0 20px;
}

.section-title-wrapper.about::before {
    display: none;
}

.section-title-wrapper.about::after {
    margin-left: 30px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
}

/* Features/Services Grid (4 columns) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.feature-item i {
    font-size: 42px;
    color: var(--tmc-gold);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.4;
    max-width: 150px;
    margin: 0 auto;
}

.center-action {
    text-align: center;
    margin-top: 50px;
}

.get-in-touch {
    text-align: center;
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 25px 0 20px;
    font-size: 12px;
}

.footer-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-nav {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-nav a:hover {
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: 20px;
    font-size: 16px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.main-header,
.main-footer.old {
    display: none;
}

/* ------------------------------------- */
/* Contact Page Specific Styles          */
/* ------------------------------------- */
.contact-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../Equipment/supply_logistics_bg.png') center/cover;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.contact-banner h1 {
    font-size: 42px;
    font-weight: 700;
}

.contact-page-wrapper {
    background: linear-gradient(to bottom, #ffffff 60%, rgba(200, 200, 200, 0.15) 100%);
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.05);
}

.contact-column-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 700;
    border-bottom: 2px solid var(--tmc-bg-light);
    padding-bottom: 15px;
}

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

.contact-form .form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

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

.contact-form textarea.form-input {
    min-height: 120px;
    resize: vertical;
}

.contact-form .btn-submit {
    width: 100%;
    text-align: center;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    font-size: 16px;
    border-radius: 4px;
}

.contact-info {
    font-size: 15px;
    color: var(--text-main);
}

.contact-info h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-info p {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.contact-info p i {
    color: var(--tmc-gold);
    margin-right: 10px;
    margin-top: 4px;
    width: 16px;
}

.map-placeholder {
    margin-top: 25px;
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-together {
    text-align: center;
    padding: 60px 0;
    background-color: white;
    border-top: 1px solid var(--border-color);
}

.work-together h2 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
}

.work-together h2::before,
.work-together h2::after {
    content: "";
    display: inline-block;
    width: 80px;
    height: 1px;
    background: #d1d5db;
    vertical-align: middle;
    margin: 0 20px;
}

.work-together p {
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal Styles for Request Quote Pop-up */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: white;
    width: 100%;
    max-width: 550px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 3px solid var(--tmc-bg-light);
}

.modal-header h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
}

.modal-body {
    padding: 30px;
}

.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-input {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s;
    background-color: #fff;
    color: var(--text-main);
}

.modal-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.modal-input::placeholder {
    color: #9ca3af;
}

textarea.modal-input {
    resize: vertical;
}

.btn-submit-full.modal-submit {
    width: 100%;
    text-align: center;
    padding: 16px;
    background: var(--primary-color);
    color: white;
    font-size: 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
}

.btn-submit-full.modal-submit:hover {
    background-color: var(--tmc-navy-hover);
}

/* ------------------------------------- */
/* Admin Dashboard Table Styles          */
/* ------------------------------------- */
.table-responsive {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.admin-table th {
    background-color: var(--tmc-bg-light);
    color: var(--primary-color);
    font-weight: 600;
}

.admin-table tbody tr:hover {
    background-color: #fcfaf5;
}

.admin-table td strong {
    color: var(--primary-color);
}

/* Premium Certification Section Styles */
.cert-card-premium {
    background: white;
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.cert-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(12, 35, 64, 0.1);
    border-color: var(--tmc-gold);
}

.cert-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(196, 139, 41, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.cert-card-premium:hover .cert-icon-box {
    background: var(--tmc-gold);
}

.cert-icon-box i {
    font-size: 28px;
    color: var(--tmc-gold);
    transition: all 0.3s ease;
}

.cert-card-premium:hover .cert-icon-box i {
    color: white;
}

.cert-info h3 {
    font-size: 19px;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 700;
}

.cert-info p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.6;
}

.view-btn {
    font-size: 14px;
    font-weight: 700;
    color: var(--tmc-gold);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.cert-card-premium::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--tmc-gold);
    transition: height 0.3s ease;
}

.cert-card-premium:hover::after {
    height: 100%;
}

/* Premium Tooltip Styling */
.feature-item {
    position: relative;
    transition: all 0.3s ease;
}

.feature-item::before {
    content: attr(data-tip);
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    pointer-events: none;
}

.feature-item::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: var(--primary-color);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    pointer-events: none;
}

.feature-item:hover::before {
    opacity: 1;
    visibility: visible;
    top: -55px;
}

.feature-item:hover::after {
    opacity: 1;
    visibility: visible;
    top: -15px;
}
