/*
Theme Name: Timber and Hue
Theme URI: https://timberandhue.com
Author: Your Name
Author URI: https://timberandhue.com
Description: Custom theme for Timber and Hue
Version: 1.0.0
License: GPL v2 or later
Text Domain: timberandhue
*/

/* Import CSS Variables */
@import url('css/variables.css');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-primary);
    line-height: var(--line-height-base);
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    font-weight: var(--font-weight-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-text-heading);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }
h5 { font-size: var(--font-size-md); }
h6 { font-size: var(--font-size-base); }

p {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-normal);
    margin-bottom: var(--spacing-md);
}

input, textarea, select, button {
    font-family: var(--font-family-primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    font-family: var(--font-family-primary);
    text-decoration: none;
    border-radius: var(--radius-2xl);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-1px);
}

/* Header Styles */
.site-header {
    background-color: var(--color-bg-primary);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: var(--z-index-fixed);
}

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

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
}

.logo-text {
    font-size: 22px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.3px;
}

.logo-subtext {
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: #6b7280;
    margin-left: -6px;
}

/* Navigation */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 40px;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 32px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: #4b5563;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
    padding: 5px 0;
    position: relative;
}

.main-navigation a:hover {
    color: #1a1a1a;
}

.main-navigation .menu-item:last-child a {
    color: #4b5563;
    font-weight: 600;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 4px 0;
    transition: 0.3s;
}

/* Header Contact */
.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1a1a1a;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    margin-right: 20px;
}

.header-phone svg {
    width: 18px;
    height: 18px;
}

.header-phone:hover {
    color: #4b5563;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: var(--spacing-5xl) 0;
    text-align: center;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    z-index: 1;
    animation: slowZoom 20s ease-in-out infinite alternate;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

@keyframes slowZoom {
    0% {
        transform: scale(1) translateY(0);
    }
    100% {
        transform: scale(1.1) translateY(-20px);
    }
}

.hero-title {
    font-size: var(--font-size-5xl);
    margin-bottom: var(--spacing-lg);
    color: var(--color-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: var(--font-weight-bold);
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-white);
    margin-bottom: var(--spacing-2xl);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    font-weight: var(--font-weight-normal);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Hero Video Container */
.hero-video-container {
    max-width: 800px;
    margin: var(--spacing-2xl) auto;
    padding: 0 var(--spacing-lg);
}

.hero-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    background: #000;
}

.hero-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Owner Introduction Styles */
.owner-introduction-container {
    max-width: 800px;
    margin: var(--spacing-2xl) auto;
    padding: 0 var(--spacing-lg);
}

.owner-introduction-wrapper {
    background: rgba(0, 34, 68, 0.95); /* Navy background with transparency */
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    gap: var(--spacing-xl);
    align-items: flex-start;
}

.owner-photo {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.owner-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.owner-content {
    flex: 1;
}

.owner-name {
    font-size: var(--font-size-2xl);
    color: #ffffff;
    margin-bottom: var(--spacing-xs);
    font-weight: var(--font-weight-bold);
}

.owner-title {
    font-size: var(--font-size-lg);
    color: #ffffff;
    margin-bottom: var(--spacing-lg);
    font-weight: var(--font-weight-medium);
    opacity: 0.95;
}

.owner-message {
    color: #ffffff;
    line-height: var(--line-height-relaxed);
}

.owner-message p {
    font-size: var(--font-size-base);
    margin: 0;
}

/* Services Section */
.services-section {
    padding: var(--spacing-5xl) 0;
    background-color: var(--color-bg-secondary);
}

.section-title {
    font-size: var(--font-size-3xl);
    text-align: center;
    margin-bottom: var(--spacing-3xl);
    color: var(--color-text-heading);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--color-bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.service-content p {
    color: #666;
    margin-bottom: 20px;
}

.service-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
}

.service-link:hover {
    text-decoration: underline;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 18px;
    margin-top: 10px;
    margin-bottom: 50px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Approach Section */
.approach-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.approach-item {
    text-align: center;
}

.approach-number {
    font-size: 48px;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 20px;
}

.approach-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.approach-item p {
    color: #666;
}

/* Reviews Section */
.reviews-section {
    padding: var(--spacing-5xl) 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.review-card {
    background: var(--color-bg-secondary);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.review-stars {
    color: #ffc107;
    font-size: 20px;
    margin-bottom: var(--spacing-lg);
}

.review-text {
    font-style: italic;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-lg);
    line-height: var(--line-height-relaxed);
}

.review-author {
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-heading);
    margin-bottom: var(--spacing-xs);
}

.review-date {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.reviews-footer {
    text-align: center;
    margin-top: var(--spacing-2xl);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.faq-item {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
}

.faq-question {
    font-size: 20px;
    margin-bottom: 15px;
}

.faq-answer {
    color: #666;
    line-height: 1.8;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #002244 0%, #3ea9b8 100%);
    text-align: center;
    color: #fff;
}

.cta-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: #fff;
}

.cta-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background-color: #fff;
    color: #0066cc;
    border-color: #fff;
}

.cta-section .btn-primary:hover {
    background-color: #f8f9fa;
}

.cta-section .btn-secondary {
    color: #fff;
    border-color: #fff;
}

.cta-section .btn-secondary:hover {
    background-color: #fff;
    color: #0066cc;
}

/* Main Content */
.site-main {
    padding: 0;
}

/* Footer */
.site-footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #0066cc;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #999;
}

.footer-bottom a {
    color: #999;
    margin: 0 10px;
}

.footer-bottom a:hover {
    color: #0066cc;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #0066cc;
}

.footer-section ul li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section svg {
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }
    
    .main-navigation {
        display: none;
        width: 100%;
        order: 3;
        margin: 20px 0 0 0;
    }
    
    .main-navigation.toggled {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .header-contact {
        order: 2;
    }
    
    .header-phone span {
        display: none;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-video-container {
        margin: var(--spacing-xl) auto;
        padding: 0 var(--spacing-md);
    }
    
    /* Mobile styles for owner introduction */
    .owner-introduction-container {
        margin: var(--spacing-xl) auto;
        padding: 0 var(--spacing-md);
    }
    
    .owner-introduction-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: var(--spacing-lg);
        gap: var(--spacing-lg);
    }
    
    .owner-photo {
        width: 150px;
        height: 150px;
    }
    
    .owner-name {
        font-size: var(--font-size-xl);
    }
    
    .owner-title {
        font-size: var(--font-size-base);
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .services-grid,
    .gallery-grid,
    .approach-grid,
    .reviews-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}