/* Base Styles using Variables */
body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-body);
    cursor: auto;
    /* Force default cursor */
}

/* Aggressive Cursor Reset */
html,
body,
* {
    cursor: auto !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.2;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Header */
.site-header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo span {
    color: var(--secondary-color);
}

/* Navigation */
.main-nav ul {
    display: flex;
    gap: var(--spacing-md);
}

.main-nav a {
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

/* Homepage Specific Override for Transparent Header */
.home-page .site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.home-page .site-header .logo {
    color: #fff;
}

.home-page .main-nav a {
    color: rgba(255, 255, 255, 0.8);
}

.home-page .main-nav a:hover,
.home-page .main-nav a.active {
    color: #fff;
}

.home-page .menu-toggle span {
    background-color: #fff;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    /* Full viewport height */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
}


.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.about-hero {
    min-height: 60vh;
    height: auto;
    padding: 100px 0;
    /* Add padding to prevent content hitting edges */
}

.about-image-wrapper {
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.certificate-img {
    max-width: 80%;
    /* Limit width inside hero */
    height: auto;
    margin-top: var(--spacing-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-mobile-image {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content h1 span {
    color: var(--secondary-color);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #0a6b6d;
    border-color: #0a6b6d;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light);
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--text-heading);
}

/* Footer */
.site-footer {
    background-color: var(--bg-footer);
    color: #aaa;
    padding: var(--spacing-md) 0;
    /* Reduced padding */
    margin-top: 0;
    /* Removed large margin */
}

.site-footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.footer-col h3 {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.copyright {
    text-align: center;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid #444;
}

/* Page Headers */
.page-header-section {
    background: linear-gradient(135deg, #162521 0%, #0F8B8D 100%);
    /* Darker, more premium gradient */
    color: var(--text-light);
    padding: var(--spacing-lg) 0;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    border-bottom: 4px solid var(--secondary-color);
    /* Add a gold accent line */
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-lg);
}

.product-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    text-decoration: none;
    color: var(--text-heading);
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-item:hover img {
    transform: scale(1.05);
}

.product-info {
    padding: var(--spacing-sm);
    text-align: center;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Mobile Contact Bar */
.mobile-contact-bar {
    display: none;
}

/* Dedicated Mobile View Styles */
.mobile-only-view {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: #fff;
    flex-direction: column;
}

.mobile-bg {
    flex: 1;
    overflow-y: auto;
    /* Allow scrolling if image is taller than screen */
    position: relative;
    background: #fff;
    display: block;
    /* Changed from flex to block to allow natural flow */
}

.mobile-bg img {
    width: 100%;
    height: auto;
    /* Maintain aspect ratio */
    display: block;
    object-fit: cover;
}

.mobile-contact-bar-fixed {
    position: absolute;
    /* Overlay on the image */
    bottom: 30px;
    /* Increased space from bottom */
    left: 0;
    width: 100%;
    height: auto;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    pointer-events: none;
    /* Let clicks pass through the bar container */
}

.mobile-contact-bar-fixed .phone-link {
    background: rgba(12, 107, 109, 0.95);
    /* Deep Rich Teal with opacity */
    padding: 12px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    /* Enable clicks on the button */
    backdrop-filter: blur(5px);
}

.mobile-contact-bar-fixed span {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
}

.mobile-contact-bar-fixed a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3rem;
    background: transparent;
    /* Remove individual background */
    padding: 0;
    border-radius: 0;
}

/* Responsive */
@media (max-width: 768px) {

    /* Hide standard site elements */
    .site-header,
    .hero,
    .site-footer,
    .mobile-contact-bar {
        display: none !important;
    }

    /* Show Mobile View */
    .mobile-only-view {
        display: flex;
    }
}