/* Font Definitions */
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/lato-v25-latin-ext-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/lato-v25-latin-ext-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Lusitana';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/lusitana-v14-latin-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Lusitana';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/lusitana-v14-latin-700.woff2') format('woff2');
}

:root {
    --font-primary: 'Lusitana', serif;
    --font-secondary: 'Lato', sans-serif;
    --color-text-main: #161616;
    --color-text-light: #fff;
    --color-bg-light: #f7f7f7;
    --color-accent: #8f6e6e;
    --nav-height: 80px;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text-main);
    line-height: 1.5;
    background-color: #fff;
    font-size: 18px;
    /* Increased from default 16px */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--color-text-main);
}


ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Sticky Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smoother bezier */
    height: auto;
    display: flex;
    flex-direction: column;
    /* Allow stacking top bar if inside, but we'll put it outside usually. Keeping auto. */
    align-items: center;
}

.site-header.scrolled {
    padding: 5px 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.header-inner {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

/* Logo & Icons Container */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 90px;
    width: auto;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled .logo img {
    height: 60px;
}

/* Contact Icons */
.contact-icons {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-left: 15px;
    border-left: 1px solid #e0e0e0;
    height: 40px;
}

.contact-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f0f0;
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-icons a svg {
    width: 18px;
    height: 18px;
}

/* Classic Icon Colors */
.contact-icons a[href^="mailto"] {
    color: #fff;
    background-color: #007bff;
    /* Classic Email Blue */
}

.contact-icons a[href^="tel"] {
    color: #fff;
    background-color: #28a745;
    /* Classic Phone Green */
}

.contact-icons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Remove Top Bar */

/* Mobile Nav Active State */
.desktop-nav.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out;
}

.desktop-nav.active ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.desktop-nav.active .dropdown-menu {
    position: static;
    box-shadow: none;
    padding-left: 20px;
    display: flex;
    /* Always show on mobile */
    flex-direction: column;
    opacity: 1;
    visibility: visible;
    transform: none;
    border-left: 2px solid #eee;
    background: #f9f9f9;
    /* Slight background to distinguish */
    margin-top: 10px;
}

/* Hide the 'More' toggle on mobile since items are expanded */
.desktop-nav.active .dropdown-toggle {
    display: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.desktop-nav ul {
    display: flex;
    gap: 20px;
    align-items: center;
}

.desktop-nav a {
    font-family: var(--font-primary);
    font-size: 16px;
    /* Slightly larger for serif readability */
    font-weight: 700;
    text-transform: none;
    /* User wants standard casing */
    letter-spacing: 0;
    color: var(--color-text-main);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    /* Slightly thicker for visual balance */
    padding: 6px 0;
    margin: 0 10px;
    transition: color 0.3s;
    display: inline-block;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    border-bottom: 1px solid #000;
    color: var(--color-text-main);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    padding: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    border-radius: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.2s ease;
    padding: 16px;
    /* Exact match from raw source .c1-4c... */
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Match raw source margin-top/bottom 8px */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 0;
    /* Raw source has radius 0 here */
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 4px 8px;
    /* Standardize item inner padding */
    text-transform: capitalize;
    border-bottom: none;
    /* Raw source doesn't show borders, just margins */
    font-size: 15px;
    color: #444;
    transition: all 0.2s;
    letter-spacing: normal;
}

.dropdown-menu a:hover {
    background: transparent;
    color: #000;
    padding-left: 12px;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.mobile-toggle {
    display: none;
    cursor: pointer;
}

/* Hero / Carousel */
.hero-section {
    position: relative;
    height: 560px;
    overflow: hidden;
    color: var(--color-text-light);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

/* Slide Images */
.slide-1 {
    background-image: url('../images/carousel_1.png');
}

.slide-2 {
    background-image: url('../images/carousel_2.webp');
}

.slide-3 {
    background-image: url('../images/carousel_3.jpg');
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: var(--font-primary);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.9);
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    display: block;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    margin-top: 0;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-family: var(--font-secondary);
    /* Use Lato for subtitle? Or primary? Screenshot looks like serif too. Let's use primary to be safe or inherit.*/
    font-family: var(--font-primary);
    /* Match title font per previous request "font same" */
}

/* Services Grid */
.products-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    text-align: center;
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-image-wrapper {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    margin-bottom: 20px;
}

.product-card h2 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-text-main);
    font-weight: 700;
    line-height: 1.3;
}

.btn-secondary {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid #dbdbdb;
    background: transparent;
    color: #161616;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2rem;
    }

    .site-header {
        padding: 0 10px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Carousel Dots Navigation */
.carousel-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
    padding: 0;
    margin: 4px 0;
    list-style: none;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid #f7f7f7;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
    margin: 4px 10px;
}

.carousel-dots .dot.active {
    background: currentColor;
    background: #f7f7f7;
}

.carousel-dots .dot:hover {
    background: rgba(247, 247, 247, 0.7);
}

/* Footer Social Links */
.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    padding-left: 0;
    padding-right: 0;
}

.social-links a {
    display: inline-flex;
    color: #8f6e6e;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #fff;
}

.social-links svg {
    width: 40px;
    height: 40px;
}