/* CSS Custom Properties for Theming */
:root {
    /* Dark mode (default) */
    --bg-primary: #0f0f0f;
    --bg-secondary: #161616;
    --bg-tertiary: #1a1a1a;
    --bg-hover: #1e1e1e;
    --border-color: #2a2520;
    --border-accent: #3a3020;
    --text-primary: #e8e4dc;
    --text-secondary: #c9c4b8;
    --text-muted: #a8a49c;
    --text-faint: #888;
    --text-footer: #666;
    --gold: #d4a853;
    --gold-light: #f5d78e;
    --gold-dark: #a67c3d;
    --silver: #888;
    --silver-light: #aaa;
    --platinum: #7a9bb8;
}

[data-theme="light"] {
    --bg-primary: #f8f6f2;
    --bg-secondary: #ffffff;
    --bg-tertiary: #fdfcfa;
    --bg-hover: #f0ede6;
    --border-color: #d8d4cc;
    --border-accent: #c9a853;
    --text-primary: #1a1a1a;
    --text-secondary: #333;
    --text-muted: #555;
    --text-faint: #777;
    --text-footer: #888;
    --gold: #a67c3d;
    --gold-light: #c9a853;
    --gold-dark: #8b6914;
    --silver: #6b6b6b;
    --silver-light: #888;
    --platinum: #4a6d8a;
}

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

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'EB Garamond', 'Georgia', 'Times New Roman', serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header */
header {
    background-color: var(--bg-tertiary);
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] header {
    background-color: #1a1a1a;
    border-bottom-color: #2a2520;
}

.header-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo img {
    max-height: 80px;
    width: auto;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    color: var(--gold);
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    transition: color 0.3s ease, transform 0.3s ease;
}

[data-theme="light"] .theme-toggle {
    color: #d4a853;
}

.theme-toggle:hover {
    color: var(--gold-light);
    transform: scale(1.1);
}

[data-theme="light"] .theme-toggle:hover {
    color: #f5d78e;
}

/* Navigation */
nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2.5rem;
}

nav a {
    color: var(--gold);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 4px;
    white-space: nowrap;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
}

[data-theme="light"] nav a {
    color: #d4a853;
}

[data-theme="light"] nav a::after {
    background: linear-gradient(90deg, transparent, #d4a853 50%, transparent);
}

nav a:hover,
nav a.active {
    color: var(--gold-light);
}

[data-theme="light"] nav a:hover,
[data-theme="light"] nav a.active {
    color: #f5d78e;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--gold);
    transition: all 0.3s ease;
    position: relative;
}

.hamburger span::before,
.hamburger span::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--gold);
    transition: all 0.3s ease;
    left: 0;
}

.hamburger span::before {
    top: -7px;
}

.hamburger span::after {
    top: 7px;
}

/* Hamburger active state - X shape */
.hamburger.active span {
    background-color: transparent;
}

.hamburger.active span::before {
    top: 0;
    transform: rotate(45deg);
}

.hamburger.active span::after {
    top: 0;
    transform: rotate(-45deg);
}

[data-theme="light"] .hamburger span,
[data-theme="light"] .hamburger span::before,
[data-theme="light"] .hamburger span::after {
    background-color: #d4a853;
}

[data-theme="light"] .hamburger.active span {
    background-color: transparent;
}

/* Main Content */
main {
    max-width: 1500px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(10, 10, 10, 0.85), rgba(10, 10, 10, 0.85)),
                url('../images/hero-bg.png');
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 5rem 3rem;
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

[data-theme="light"] .hero {
    background: linear-gradient(rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.9)),
                url('../images/hero-bg.png');
    border-color: var(--gold);
}

.hero-logo {
    max-height: 150px;
    width: auto;
}

.hero-text {
    text-align: left;
}

.hero h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #d4a853;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.35rem;
    max-width: 700px;
    margin: 0;
    color: #c9c4b8;
}

/* Section Styles */
section {
    background: var(--bg-secondary);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

section h2 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    letter-spacing: 2px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

section h3 {
    font-family: 'Cinzel', serif;
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 500;
    margin: 1.5rem 0 0.5rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

section p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

section ul {
    margin-bottom: 1rem;
    padding-left: 1.25em;
    color: var(--text-muted);
}

section ul li {
    margin-bottom: 0.5rem;
}

section a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}

section a:hover {
    border-bottom-color: var(--gold);
}

/* Service Cards */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--bg-tertiary);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--gold);
    overflow-wrap: break-word;
    word-wrap: break-word;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.service-card:hover {
    background: var(--bg-hover);
    border-top-color: var(--gold-light);
}

.service-card h3 {
    margin-top: 0;
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.service-card p {
    color: var(--text-muted);
}

.service-card ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    color: var(--text-muted);
}

.service-card li {
    margin-bottom: 0.3rem;
}

.service-card li::marker {
    color: var(--gold);
}

/* Package Tiers */
.package-icon {
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.package-silver {
    border-top: 3px solid var(--silver);
}

.package-silver h3 {
    color: var(--silver-light);
}

.package-silver .package-icon {
    fill: var(--silver);
}

.package-gold {
    border-top: 3px solid var(--gold);
}

.package-gold h3 {
    color: var(--gold);
}

.package-gold .package-icon {
    fill: var(--gold);
}

.package-platinum {
    border-top: 3px solid var(--platinum);
}

.package-platinum h3 {
    color: var(--platinum);
}

.package-platinum .package-icon {
    fill: var(--platinum);
}

.addon-icon {
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    margin-right: 0.5rem;
    fill: var(--gold);
}

/* Area List */
.area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.area-card {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.area-card:hover {
    background: var(--bg-hover);
}

.area-card h3 {
    font-family: 'Cinzel', serif;
    margin: 0 0 0.5rem;
    color: var(--gold);
    font-weight: 500;
    letter-spacing: 1px;
}

.area-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-faint);
}

/* Call to Action */
.cta {
    background: linear-gradient(rgba(10, 10, 10, 0.85), rgba(10, 10, 10, 0.85)),
                url('../images/hero-bg.png');
    color: #fff;
    text-align: center;
    padding: 3rem;
    border: 1px solid var(--border-accent);
    transition: border-color 0.3s ease;
}

[data-theme="light"] .cta {
    background: linear-gradient(rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.9)),
                url('../images/hero-bg.png');
    border-color: var(--gold);
}

.cta h2 {
    font-family: 'Cinzel', serif;
    color: #d4a853;
    border-bottom: none;
    letter-spacing: 2px;
}

.cta p {
    margin-bottom: 0;
    color: #c9c4b8;
}

.cta a {
    color: #f5d78e;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.cta a:hover {
    border-bottom-color: #f5d78e;
}

/* Footer */
footer {
    background: var(--bg-tertiary);
    color: var(--text-footer);
    text-align: center;
    padding: 2.5rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] footer {
    background-color: #1a1a1a;
    border-top-color: #2a2520;
    color: #888;
}

footer p {
    margin: 0.25rem 0;
}

footer a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

[data-theme="light"] footer a {
    color: #d4a853;
}

footer a:hover {
    color: var(--gold-light);
}

[data-theme="light"] footer a:hover {
    color: #f5d78e;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: nowrap;
        padding: 0 1rem;
    }

    .hamburger {
        display: flex;
    }

    nav {
        position: relative;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--bg-tertiary);
        border: 1px solid var(--border-color);
        padding: 1rem;
        flex-direction: column;
        gap: 0;
        min-width: 200px;
        z-index: 1000;
    }

    [data-theme="light"] nav ul {
        background: #1a1a1a;
        border-color: #2a2520;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        border-bottom: 1px solid var(--border-color);
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    [data-theme="light"] nav ul li {
        border-bottom-color: #2a2520;
    }

    [data-theme="light"] nav ul li:last-child {
        border-bottom: none;
    }

    nav a {
        display: block;
        padding: 0.75rem 0;
        font-size: 0.8rem;
        letter-spacing: 2px;
    }

    main {
        padding: 1.5rem 1rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 1.5rem;
        gap: 1.5rem;
    }

    .hero-text {
        text-align: center;
    }

    .hero-logo {
        max-height: 100px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    section {
        padding: 1.5rem 1rem;
    }

    section h2 {
        font-size: 1.3rem;
    }

    section h3 {
        font-size: 1.05rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .area-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    footer {
        padding: 1.5rem 1rem;
    }

    .cta {
        padding: 2rem 1rem;
    }
}

/* Expandable Area Cards */
.area-card.expandable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.area-card.expandable:hover {
    background: var(--bg-hover);
}

.area-card.expandable h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 0.5rem;
}

.expand-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gold);
    line-height: 1;
}

.county-summary {
    margin: 0;
    color: var(--text-footer);
    font-size: 0.9rem;
    word-break: break-word;
}

.expanded-content {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    text-align: left;
    overflow-x: auto;
}

.area-card.expanded .expanded-content {
    display: block;
}

.area-card.expanded .county-summary {
    display: none;
}

.county-section {
    margin-bottom: 1rem;
}

.county-section h4 {
    font-family: 'Cinzel', serif;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0 0 0.5rem;
    font-weight: 500;
}

.town-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.town-list li {
    padding: 0.2rem 0;
    font-size: 0.9rem;
    color: var(--text-faint);
}

.town-list .distance {
    color: var(--text-footer);
    font-size: 0.8rem;
}

/* Contact Form */
.contact-form {
    max-width: 700px;
    margin: 1.5rem auto 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-family: 'EB Garamond', serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--bg-primary);
    border: none;
    padding: 1rem 2rem;
    font-size: 0.95rem;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

[data-theme="light"] .submit-btn {
    color: #fff;
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form Validation */
.form-message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    font-family: 'EB Garamond', serif;
    font-size: 1rem;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid #4caf50;
    color: #4caf50;
}

.form-message.error {
    background: rgba(244, 67, 54, 0.15);
    border: 1px solid #f44336;
    color: #f44336;
}

.form-group .error-text {
    display: block;
    color: #f44336;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    font-family: 'EB Garamond', serif;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #f44336;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .submit-btn {
        width: 100%;
    }
}

/* Report Links */
.report-links {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
}

.report-links li a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--bg-tertiary);
    color: var(--gold);
    text-decoration: none;
    border: 1px solid var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.report-links li a:hover {
    background: var(--gold);
    color: var(--bg-primary);
}

[data-theme="light"] .report-links li a:hover {
    color: #fff;
}

@media (max-width: 480px) {
    .report-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .report-links li a {
        display: block;
        text-align: center;
    }
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    width: 100vw;
    max-width: 1000px;
    height: 85vh;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .modal-header {
    background: #1a1a1a;
}

.modal-header h3 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
}

[data-theme="light"] .modal-header h3 {
    color: #d4a853;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-faint);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--gold);
}

.modal-body {
    flex: 1;
    overflow: hidden;
}

.modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        height: 90vh;
    }

    .modal-header {
        padding: 0.75rem 1rem;
    }

    .modal-header h3 {
        font-size: 1rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .logo img {
        max-height: 60px;
    }

    nav ul {
        gap: 0.5rem;
    }

    nav a {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    .hero h1 {
        font-size: 1.3rem;
    }

    section h2 {
        font-size: 1.1rem;
    }

    .service-card h3 {
        font-size: 1rem;
    }

    .package-icon,
    .addon-icon {
        width: 1.2em;
        height: 1.2em;
    }

    .theme-toggle {
        font-size: 1.3rem;
    }
}

/* Password Gate */
#password-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f0f0f;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.gate-content {
    background: #161616;
    padding: 3rem;
    border: 1px solid #2a2520;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.gate-content h2 {
    font-family: 'Cinzel', serif;
    color: #d4a853;
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0 0 1rem;
    letter-spacing: 2px;
}

.gate-content p {
    color: #a8a49c;
    margin: 0 0 1.5rem;
}

#gate-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#gate-password {
    padding: 0.75rem;
    border: 1px solid #2a2520;
    background: #1a1a1a;
    color: #e8e4dc;
    font-family: 'EB Garamond', serif;
    font-size: 1rem;
    text-align: center;
}

#gate-password:focus {
    outline: none;
    border-color: #d4a853;
}

#gate-form button {
    background: linear-gradient(135deg, #d4a853 0%, #a67c3d 100%);
    color: #0f0f0f;
    border: none;
    padding: 0.75rem 2rem;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#gate-form button:hover {
    background: linear-gradient(135deg, #f5d78e 0%, #d4a853 100%);
}

.gate-error {
    color: #c44;
    margin: 0;
    min-height: 1.5em;
}
