/*
Theme Name: Griffon Gunsmithing
Theme URI: https://griffongunsmithing.com
Author: Griffon Gunsmithing
Description: Custom dark theme for Griffon Gunsmithing with WooCommerce support. Professional master gunsmithing, in-store transfers only.
Version: 1.3.3
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: griffon
*/

:root {
    --bg: #0a0a0a;
    --surface: #141414;
    --surface-light: #1f1f1f;
    --gold: #c9a227;
    --gold-light: #e8d48b;
    --text: #e8e8e8;
    --muted: #999;
    --border: #333;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

.site-header {
    background: #111;
    border-bottom: 2px solid var(--gold);
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo img { height: 60px; width: auto; }
.header-phone {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--gold);
    white-space: nowrap;
}
.header-phone a { color: inherit; }
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}
nav a { color: var(--text); font-weight: 500; }
nav a:hover { color: var(--gold); }

.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem;
}
.hero h1 { font-size: 2.4rem; margin: 0 0 0.5rem; color: #fff; }
.hero-excerpt p { font-size: 1.2rem; color: var(--gold-light); margin: 0 0 1.5rem; }
.hero-excerpt .wp-block-buttons { justify-content: center; margin-top: 0.5rem; }
.btn {
    background: var(--gold);
    color: #000;
    padding: 0.7rem 1.6rem;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
}
.btn:hover { background: var(--gold-light); }

/* WordPress block buttons */
.wp-block-button__link,
.wp-element-button {
    background: var(--gold);
    color: #000;
    padding: 0.7rem 1.6rem;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}
.wp-block-button__link:hover,
.wp-element-button:hover {
    background: var(--gold-light);
    color: #000;
}
.wp-block-button.is-style-outline .wp-block-button__link {
    background: #333;
    color: #fff;
    border: none;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: #444;
    color: #fff;
}
.hero-excerpt .wp-block-buttons,
.hero .wp-block-buttons {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
    margin-top: 0.5rem;
}
.hero-excerpt .wp-block-button,
.hero .wp-block-button {
    margin: 0 !important;
    width: auto !important;
}
@media (max-width: 600px) {
    .hero-excerpt .wp-block-buttons,
    .hero .wp-block-buttons {
        flex-direction: column !important;
        align-items: center;
    }
    .hero-excerpt .wp-block-button,
    .hero .wp-block-button {
        width: 100% !important;
        max-width: 280px;
    }
    .hero-excerpt .wp-block-button__link,
    .hero .wp-block-button__link {
        width: 100%;
        text-align: center;
    }
}

/* WordPress columns as service cards */
.wp-block-columns {
    margin-top: 1.5rem;
}
.wp-block-column {
    background: var(--surface);
    padding: 1.2rem;
    border-left: 4px solid var(--gold);
    border-radius: 4px;
    margin-bottom: 1rem;
}
.wp-block-column h3 {
    margin: 0 0 0.5rem;
    color: var(--gold-light);
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
article {
    padding: 2rem 0;
}
section { padding: 3rem 0; max-width: none; margin: 0; }
h2 { color: var(--gold); border-bottom: 1px solid var(--border); padding-bottom: 0.4rem; margin-top: 0; }
.services-grid, .cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}
.card {
    background: var(--surface);
    padding: 1.2rem;
    border-left: 4px solid var(--gold);
    border-radius: 4px;
}
.card h3 { margin: 0 0 0.5rem; color: var(--gold-light); }

.hours table { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 0.5rem; text-align: left; border-bottom: 1px solid var(--border); }
.hours th { color: var(--gold); }

.note {
    background: var(--surface-light);
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    font-size: 0.95rem;
}

footer {
    background: #111;
    border-top: 1px solid var(--gold);
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 700px) {
    .site-header { flex-direction: column; gap: 0.5rem; text-align: center; }
    .logo img { height: 50px; }
    nav ul { justify-content: center; }
    .hero h1 { font-size: 1.8rem; }
    main { padding: 0 1rem; }
}

/* Contact form */
.contact-form label {
    display: block;
    margin: 1rem 0 0.3rem;
    color: var(--gold-light);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="date"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    max-width: 500px;
    padding: 0.6rem;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 4px;
}
.contact-form button { margin-top: 1rem; }

