/*
Theme Name: Core Dental Milling Centre
Theme URI: https://coredentallab.com
Author: Lee
Description: Custom WordPress theme for Core Dental Milling Centre - Brisbane dental laboratory
Version: 2.0.0
Text Domain: core-dental
*/

/* ========================================
   CSS Variables / Root
======================================== */
:root {
    /* Primary Green - Logo Colors */
    --primary-green: #6B8E23;        /* 올리브 그린 */
    --primary-green-light: #8CB369;  /* 밝은 그린 */
    --primary-green-dark: #556B2F;   /* 어두운 그린 */
    --accent-green: #7CB342;         /* 악센트 그린 */
    
    /* Neutral Colors */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #495057;
    --charcoal: #333333;
    --black: #000000;
    
    /* Olive Theme Colors */
    --olive: #6B7B59;
    --olive-light: #7d8e6a;
    --olive-dark: #5a6a4a;
    
    /* Fonts */
    --font-primary: 'Playfair Display', Georgia, serif;
    --font-secondary: 'Open Sans', Arial, sans-serif;
    
    /* Layout */
    --header-height: 80px;
    --container-width: 1400px;
    --section-padding: 80px 0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--charcoal);
    background-color: var(--white);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
}

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

/* ========================================
   Header Styles
======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: var(--header-height);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

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

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

.site-logo .logo-image {
    height: 60px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 30px;
}

.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-menu li {
    list-style: none;
}

.nav-menu li a {
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 400;
    color: var(--charcoal);
    padding: 10px 0;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-menu li a:hover,
.nav-menu li a.active,
.nav-menu li.current-menu-item a,
.nav-menu li.current_page_item a {
    color: var(--primary-green);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.cart-icon {
    position: relative;
    font-size: 18px;
    color: var(--primary-green);
    display: flex;
    align-items: center;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary-green);
    color: var(--white);
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.btn-login {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: none;
    color: var(--primary-green);
    padding: 8px 0;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-login i {
    font-size: 16px;
}

.btn-login:hover {
    color: var(--primary-green-dark);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--charcoal);
    transition: all 0.3s ease;
}

/* ========================================
   Hero Section
======================================== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    margin-top: var(--header-height);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
}

.hero-content {
    position: absolute;
    bottom: 15%;
    right: 10%;
    text-align: right;
    color: var(--white);
    max-width: 600px;
}

.hero-content h1 {
    font-family: var(--font-primary);
    font-size: 64px;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero-content .subtitle {
    font-family: var(--font-primary);
    font-size: 24px;
    font-style: italic;
    margin-bottom: 30px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
}

.btn-primary {
    display: inline-block;
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}

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

/* ========================================
   About Section (Who We Are)
======================================== */
.about-section {
    padding: var(--section-padding);
    background: var(--white);
}

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

.about-content h2 {
    font-size: 48px;
    color: var(--charcoal);
    margin-bottom: 10px;
}

.about-content h3 {
    font-size: 20px;
    color: var(--dark-gray);
    margin-bottom: 30px;
}

.about-content p {
    color: var(--dark-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--charcoal);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-green);
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 50%;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

/* ========================================
   CAD/CAM Banner Section
======================================== */
.cad-cam-banner {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('assets/images/cad-cam-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.cad-cam-banner h2 {
    font-size: 36px;
    font-family: var(--font-secondary);
    font-weight: 300;
    letter-spacing: 2px;
}

/* ========================================
   Values Section (3 Column Icons)
======================================== */
.values-section {
    padding: var(--section-padding);
    background: var(--olive);
}

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

.value-item {
    text-align: center;
    color: var(--white);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.value-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.value-item h3 {
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.value-item p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.9;
}

/* ========================================
   Features Section (5 Column Cards)
======================================== */
.features-section {
    background: var(--olive);
    padding: 0 0 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.feature-card {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-5px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-card h4 {
    font-size: 16px;
    font-family: var(--font-primary);
    font-style: italic;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 13px;
    opacity: 0.9;
    line-height: 1.6;
}

/* ========================================
   Footer Styles
======================================== */
.site-footer {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 50%, var(--charcoal) 50%);
    padding: 60px 0 30px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.footer-left {
    background: var(--white);
    padding: 40px;
    border-radius: 0 0 100px 0;
    position: relative;
}

.footer-logo {
    margin-bottom: 30px;
}

.footer-logo img {
    height: 80px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--charcoal);
    font-size: 14px;
}

.footer-contact i {
    color: var(--primary-green);
    width: 20px;
}

.footer-right {
    color: var(--white);
    padding: 40px;
}

.footer-right h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.sitemap-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sitemap-links a {
    color: var(--white);
    opacity: 0.8;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.sitemap-links a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    font-size: 12px;
}

/* ========================================
   Shop / Products Page
======================================== */
.page-header {
    position: relative;
    height: 300px;
    margin-top: var(--header-height);
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.page-header-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.page-header-overlay h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.page-header-overlay p {
    font-size: 16px;
    max-width: 600px;
}

/* Products Grid */
.products-section {
    padding: var(--section-padding);
    background: var(--light-gray);
}

.products-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.sort-dropdown {
    padding: 10px 20px;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    background: var(--white);
    font-size: 14px;
}

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

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    padding-top: 100%;
    background: var(--light-gray);
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 14px;
    font-family: var(--font-secondary);
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-info .price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-green);
}

/* ========================================
   Inquiry Modal
======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

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

.inquiry-modal {
    background: var(--white);
    border-radius: 15px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    font-size: 24px;
    color: var(--charcoal);
}

.modal-close {
    width: 30px;
    height: 30px;
    border: none;
    background: var(--light-gray);
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: var(--primary-green);
    color: var(--white);
}

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

.inquiry-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--charcoal);
}

.inquiry-form input,
.inquiry-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

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

.inquiry-form textarea {
    height: 120px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background: var(--primary-green-dark);
}

/* ========================================
   Chat Button
======================================== */
.chat-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 999;
    transition: transform 0.3s ease;
}

.chat-button:hover {
    transform: scale(1.1);
}

.chat-button i {
    font-size: 24px;
    color: var(--white);
}

/* ========================================
   Responsive Styles
======================================== */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .main-navigation.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-actions {
        display: none;
    }
    
    .about-inner {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 50px 0;
    }
    
    .hero-content {
        right: 5%;
        left: 5%;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content .subtitle {
        font-size: 18px;
    }
    
    .about-content h2 {
        font-size: 36px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .page-header {
        height: 200px;
    }
    
    .page-header-overlay h1 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-info h3 {
        font-size: 13px;
    }
    
    .inquiry-modal {
        padding: 25px;
    }
}

/* ========================================
   Additional Page Styles
======================================== */

/* Service Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Workflow Steps */
.workflow-step {
    position: relative;
}

.workflow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -15px;
    width: 30px;
    height: 2px;
    background: #ddd;
}

/* Team Member Cards */
.team-member {
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

/* Info Cards */
.info-card {
    transition: all 0.3s ease;
}

.info-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Form Focus States */
.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #6B8E23;
    box-shadow: 0 0 0 3px rgba(107, 142, 35, 0.1);
}

/* Button Hover States */
.btn-submit:hover {
    background: #556B2F !important;
}

/* CTA Section Buttons */
.cta-section .btn-primary:hover {
    background: transparent !important;
    color: #fff !important;
    border-color: #fff !important;
}

/* Page Header Responsive */
@media (max-width: 992px) {
    .services-grid,
    .service-category > .container > div {
        grid-template-columns: 1fr !important;
    }
    
    .service-category .service-image {
        order: -1;
    }
    
    .materials-grid,
    .services-list {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .workflow-steps {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .workflow-step::after {
        display: none;
    }
    
    .team-grid {
        grid-template-columns: 1fr !important;
    }
    
    .delivery-info > .container > div {
        grid-template-columns: 1fr !important;
    }
    
    .booking-form-wrapper {
        margin-top: 40px;
    }
    
    .contact-content > .container > div {
        grid-template-columns: 1fr !important;
    }
    
    .contact-form-wrapper {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .materials-grid,
    .workflow-steps,
    .services-list {
        grid-template-columns: 1fr !important;
    }
    
    .service-areas > .container > div {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .booking-form > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

/* Active Menu Item */
.nav-menu li a.active,
.nav-menu li.current-menu-item a,
.nav-menu li.current_page_item a {
    color: #6B8E23;
}

.nav-menu li a.active::after,
.nav-menu li.current-menu-item a::after,
.nav-menu li.current_page_item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #6B8E23;
}

/* Header Scroll State */
.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.site-header.hidden {
    transform: translateY(-100%);
}

.site-header {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Modal Open State */
body.modal-open {
    overflow: hidden;
}

/* Menu Open State */
body.menu-open {
    overflow: hidden;
}

/* Loading State */
.btn-submit:disabled,
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

