/* --- CSS Variables for Theming --- */
:root {
    --bg-color: #303033;
    --text-color: #f0f0f0;
    --header-text-color: #bbb7af;
    --accent-color: #5b9bd5;
    --surface-color: #444;
    --button-bg: #555;
    --button-text: #fff;
}

html.light-mode, body.light-mode {
    --bg-color: #f4f4f4;
    --text-color: #333;
    --header-text-color: #555;
    --accent-color: #0d6efd;
    --surface-color: #ddd;
    --button-bg: #e0e0e0;
    --button-text: #000;
}

/* --- Prevent horizontal scroll --- */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* --- Global Styles & Fonts --- */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    font-size: 16px;
    transition: background-color 0.3s, color 0.3s;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--header-text-color);
    font-weight: 700;
    margin-bottom: 0.5em;
}

p {
    line-height: 1.6;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: #000;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.site-header .logo-container {
    display: flex;
    align-items: center;
}

.site-header .logo-container img {
    height: 70px;
    margin-right: 15px;
}

.site-header .logo-container .logo-text {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-weight: bold;
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav a {
    color: #fff;
    margin-left: 25px;
    font-size: 0.9em;
    text-transform: uppercase;
    font-family: 'Playfair Display', serif;
    font-weight: bold;
}

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown .dropdown-content {
    display: none;
    position: absolute;
    background-color: #000;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 10;
    padding: 12px 0;
}

.nav-dropdown .dropdown-content a {
    color: white;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    margin: 0;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

/* --- Theme Toggle --- */
.theme-toggle {
    background: transparent;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    margin-left: 25px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.theme-toggle .material-symbols-outlined {
    font-variation-settings: 'FILL' 1;
}

/* --- Hamburger Menu --- */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.hamburger-menu span {
    display: block;
    height: 4px;
    width: 28px;
    margin: 4px auto;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Hero Section (with Parallax) --- */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('hero_header.png');
    height: 50vh;
    min-height: 300px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero .title-box {
    border: 6px solid #fff;
    padding: 25px 60px;
}

.hero h1 {
    font-size: 4.5em;
    color: #fff;
    margin: 0;
}

/* --- General Content Styles --- */
.text-section {
    padding-top: 40px;
    padding-bottom: 40px;
}

.button {
    display: inline-block;
    background-color: var(--button-bg);
    color: var(--button-text);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    margin: 10px;
    border: 1px solid var(--surface-color);
    transition: background-color 0.3s, color 0.3s;
}

.button:hover {
    background-color: var(--header-text-color);
    color: #000;
}

/* --- Homepage Specific --- */
.tagline .logo {
    max-width: 100px;
    margin-bottom: 20px;
}
.tagline .main-tagline {
    font-family: 'Playfair Display', serif;
    font-size: 1.5em;
    color: var(--header-text-color);
    max-width: 600px;
    margin: 10px auto;
}
.tagline .secondary-tagline {
    font-size: 0.9em;
    color: #9e9a92;
    font-weight: bold;
    max-width: 600px;
    margin: 10px auto;
}
.tagline .licensed-text {
    font-size: 0.8em;
    color: #888;
    font-style: italic;
    font-weight: normal;
    max-width: 600px;
    margin: 5px auto 10px auto;
}

.services .service-item {
    padding: 30px;
    margin-top: 30px;
    border: 1px solid var(--surface-color);
    border-radius: 5px;
}

.services ul {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 500px;
    margin: 20px auto;
}

.services li {
    padding: 8px 0;
    border-bottom: 1px solid var(--surface-color);
}

.services li:last-child {
    border-bottom: none;
}

/* --- Embed and Form Styling --- */
.embed-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 500px;
    margin: 30px auto;
    border: 1px solid var(--surface-color);
    background: #111;
}

.google-form-container {
    width: 100%;
    margin-top: 30px;
}

.google-form-container iframe {
    width: 100%;
    border: none;
    min-height: 800px;
}

/* --- FAQ & Examples Page --- */
.faq-item, .example-item {
    text-align: left;
    max-width: 800px;
    margin: 40px auto;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--surface-color);
}
.faq-item:last-of-type, .example-item:last-of-type {
    border-bottom: none;
}

.faq-item h2, .faq-item h3, .example-item h3 {
    text-align: center;
}
.example-item h4 {
    text-align: center;
    color: #999;
    font-style: italic;
    font-family: 'Open Sans', sans-serif;
}

.faq-columns {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin: 40px 0;
}

.faq-columns .column {
    flex: 1;
    text-align: center;
}

.faq-columns .embed-container {
    height: 300px;
}

.example-photo {
    max-width: 800px;
    width: 100%;
    display: block;
    margin: 20px auto;
    border: 1px solid var(--surface-color);
}

/* --- Contact Page --- */
.contact-boxes {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 40px 0;
}

/* --- Footer --- */
.site-footer {
    border-top: 1px solid var(--surface-color);
    padding: 20px;
    text-align: center;
    font-size: 0.9em;
    color: #888;
}

/* --- Mobile Responsive Design --- */
@media (max-width: 900px) {
    .site-header {
        padding: 15px 20px;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }
    
    .site-header .logo-container {
        margin-right: auto;
    }
    
    .site-header .logo-container img {
        height: 50px;
        margin-right: 10px;
    }
    
    .hamburger-menu {
        display: flex;
        position: fixed;
        top: 20px;
        right: 30px;
        background-color: #000;
        border-radius: 50%;
        padding: 8px;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
    }
    
    .hamburger-menu span {
        position: relative;
        display: block;
        height: 3px;
        width: 24px;
        margin: 3px 0;
        background: #fff;
        border-radius: 2px;
        transition: 0.3s;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 250px;
        background: #181818;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 20px 20px 20px;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
        box-shadow: -2px 0 8px rgba(0,0,0,0.3);
        overflow-y: auto;
        display: flex !important;
    }
    
    .main-nav.open {
        transform: translateX(0);
    }
    
    .main-nav a,
    .main-nav .nav-dropdown,
    .main-nav .theme-toggle {
        width: 100%;
        margin: 10px 0;
        text-align: left;
    }
    
    .nav-dropdown .dropdown-content {
        display: block !important;
        position: static;
        background: none;
        box-shadow: none;
        padding-left: 20px;
        margin-top: 10px;
    }
    
    .nav-dropdown .dropdown-content a {
        font-size: 0.9em;
        padding: 8px 0;
    }
    
    .theme-toggle {
        margin-left: 0;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5em;
    }
    
    .hero .title-box {
        padding: 20px 25px;
    }
    
    .faq-columns, .contact-boxes {
        flex-direction: column;
        align-items: center;
    }
}

/* --- Ensure desktop nav works properly --- */
@media (min-width: 901px) {
    .hamburger-menu {
        display: none !important;
    }
    
    .main-nav {
        display: flex !important;
        position: static;
        height: auto;
        width: auto;
        background: none;
        box-shadow: none;
        transform: none;
        padding: 0;
        flex-direction: row;
        overflow: visible;
    }
    
    .nav-dropdown .dropdown-content {
        display: none;
        position: absolute;
    }
    
    .nav-dropdown:hover .dropdown-content {
        display: block;
    }
}