/*
Theme Name: Wavelength
Theme URI: https://wavelength.com
Author: Wavelength
Author URI: https://wavelength.com
Description: Custom theme for Wavelength website
Version: 1.0
*/

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

/* Google Fonts - Anek Tamil for headlines, Red Hat Text for body copy */
/* Loaded via header.php */

body {
    font-family: 'Red Hat Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Use Anek Tamil for all headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Anek Tamil', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

h1 {
    font-weight: 700;
}

h2 {
    font-weight: 600;
}

h3, h4, h5, h6 {
    font-weight: 600;
}

/* Apply Red Hat Text to all body text elements */
p, a, span, div,
input, textarea, button,
.nav-menu,
.page-content,
.content-section,
.blog-post {
    font-family: 'Red Hat Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Company name in header */
.company-name {
    font-family: 'Anek Tamil', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

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

/* Header Styles */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Mobile: Header scrolls with page to show more content */
@media (max-width: 768px) {
    .site-header {
        position: relative;
    }
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 50px;
    width: auto;
}

/* Custom Logo Size */
.custom-logo {
    height: auto;
    width: auto;
    max-height: 80px;
    max-width: 300px; /* Increased for logo with text */
}

.company-name {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

/* Hamburger Menu Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
}

.menu-toggle-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 100%;
    height: 100%;
}

.menu-toggle-icon span {
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.main-navigation a:hover {
    color: #0073aa;
}

/* Homepage Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 250px !important;
    height: 250px !important; /* Reduced from 500px to half height */
    max-height: 250px !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: center;
    font-family: 'Anek Tamil', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin-bottom: 0;
    padding: 0 20px;
}

.hero-content h1 {
    margin-bottom: 10px !important;
    /* Desktop size set via inline style in index.php - 48px */
}

.hero-content p {
    margin-bottom: 0 !important;
    /* Desktop size set via inline style in index.php - 24px */
}

/* Spacer */
.spacer {
    height: 10px !important; /* Reduced from 60px to create less gap */
}

/* Content Section */
.content-section {
    padding: 20px 0 60px 0 !important; /* Reduced top padding from 60px to 20px */
}

.text-block {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.text-block h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.text-block p {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
}

/* Page Content */
.page-content {
    padding: 60px 0;
    min-height: 400px;
}

.page-content h1 {
    font-size: 42px;
    margin-bottom: 30px;
    color: #2c3e50;
}

.page-content h2 {
    font-size: 32px;
    margin: 30px 0 20px;
    color: #2c3e50;
}

.page-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #666;
}

/* Blog Styles */
.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-post {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.blog-post h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.blog-post .post-date {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
}

.blog-post .excerpt {
    color: #666;
    line-height: 1.6;
}

/* Footer */
.site-footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.copyright {
    font-size: 14px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #0073aa;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 15px;
        flex-wrap: nowrap !important;
    }
    
    /* Show hamburger menu on mobile - positioned left of logo */
    .menu-toggle {
        display: flex !important;
        flex-shrink: 0 !important; /* Prevent hamburger from shrinking */
        width: 30px;
        height: 30px;
    }
    
    /* Ensure logo container stays inline and can shrink */
    .logo-container {
        display: flex !important;
        align-items: center !important;
        flex: 1 1 auto;
        min-width: 0; /* Allow logo to shrink */
        max-width: calc(100% - 60px) !important; /* Leave room for hamburger + gap */
    }
    
    /* Make logo 50% larger on mobile - 150px * 1.5 = 225px */
    .custom-logo,
    .custom-logo-link img {
        max-width: 225px !important;
        max-height: 60px !important;
        width: auto !important;
        height: auto !important;
    }
    
    /* Hide navigation by default on mobile - remove from flex flow */
    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding: 0;
        width: 100%;
        order: 999; /* Push to end of flex order, but it's absolute so won't affect layout */
    }
    
    /* Show navigation when menu is open */
    .main-navigation.menu-open {
        max-height: 500px;
        padding: 20px 0;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
        width: 100%;
    }
    
    .main-navigation li {
        width: 100%;
    }
    
    .main-navigation a {
        display: block;
        padding: 12px 0;
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .main-navigation a:last-child {
        border-bottom: none;
    }
    
    .hero-section {
        min-height: 150px !important;
        height: 150px !important; /* Reduced from 300px to half height */
        max-height: 150px !important;
    }
    
    /* Reduce hero text size on mobile */
    .hero-content h1 {
        font-size: 28px !important;
        margin-bottom: 8px !important;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 16px !important;
        line-height: 1.3;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .blog-posts {
        grid-template-columns: 1fr;
    }
}

/* Desktop: Ensure hero text sizes are maintained */
@media (min-width: 769px) {
    .hero-content h1 {
        font-size: 48px !important;
        margin-bottom: 10px !important;
    }
    
    .hero-content p {
        font-size: 24px !important;
        margin-bottom: 0 !important;
    }
}

