/*
Theme Name: Classy Law
Theme URI: 
Author: Catherine Black
Description: A luxury WordPress theme for high-end law firms.
Version: 1.0
*/

/* =========================
   ROOT VARIABLES
========================= */
:root {
    --primary: #204c75;
    --secondary: rgb(16, 14, 75);
    --gold: #c8a24c;
    --text-light: #f4f4f4;
    --text-dark: #1a1a1a;
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Cormorant Garamond', serif;
    background: var(--primary);
    color: var(--text-light);
    line-height: 1.7;
}

/* Subtle Background Texture */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
    background-image:
        radial-gradient(rgba(255,255,255,0.3) 1px, transparent 1px);
    background-size: 3px 3px;
}

body > * {
    position: relative;
    z-index: 1;
}

.container {
    width: 90%;
    margin: auto;
}

/* =========================
   HEADER (Mobile First)
========================= */

header {
    background: var(--primary);
    padding: 25px 0;
    border-bottom: 1px solid rgba(200,162,76,0.2);
    text-align: center;
    position: relative;
}

header h1 {
    font-size: 22px;
    letter-spacing: 2px;
    font-weight: 400;
    margin: 0;
    text-transform: uppercase;
}

header p {
    color: var(--gold);
    font-size: 12px;
    letter-spacing: 2px;
    margin: 5px 0 15px 0;
}

/* =========================
   NAVIGATION (Stacked)
========================= */

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav li {
    margin: 10px 0;
}

nav a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
}

/* Hover underline */
nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 1px;
    background: var(--gold);
    transition: 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* =========================
   LAYOUT (Single Column)
========================= */

main {
    margin-top: 50px;
}

.content {
    width: 100%;
}

/* =========================
   TYPOGRAPHY
========================= */

article {
    margin-bottom: 50px;
    margin: 3%;
}

article h1 {
    font-size: 30px;
    font-weight: 400;
    letter-spacing: 1px;
}

article h2 {
    font-size: 22px;
    font-weight: 400;
}

article a {
    color: var(--gold);
    text-decoration: none;
}

article a:hover {
    opacity: 0.8;
}

/* =========================
   BUTTONS
========================= */

.button,
.wp-block-button__link {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 10px 22px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
    transition: 0.3s ease;
}

.button:hover,
.wp-block-button__link:hover {
    background: var(--gold);
    color: var(--primary);
}

/* =========================
   FOOTER
========================= */

footer {
    background: var(--secondary);
    border-top: 1px solid rgba(200,162,76,0.2);
    margin-top: 80px;
    padding: 30px 0;
    text-align: center;
    font-size: 12px;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.6);
}

/* =========================
   DESKTOP ENHANCEMENTS
========================= */

@media (min-width: 900px) {

    .container {
        max-width: var(--max-width);
    }

    header {
        text-align: left;
    }

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

    nav ul {
        display: flex;
        gap: 40px;
    }

    nav li {
        margin: 0;
    }

    main {
        margin-top: 80px;
    }

    article h1 {
        font-size: 42px;
    }

    article h2 {
        font-size: 28px;
    }

}
/* =========================
   HEADER LAYOUT
========================= */

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

/* =========================
   HAMBURGER MENU
========================= */

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: block;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--gold);
    margin: 6px 0;
    transition: 0.3s ease;
}

/* Hide nav by default (mobile) */
.main-nav {
    position: static;
    right: 0;
    background: var(--secondary);
    width: 100%;
    padding: 20px 0;
    display: none;
    text-align: center;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav li {
    margin: 15px 0;
}

.main-nav a {
    font-size: 14px;
    letter-spacing: 2px;
}

/* Active menu state */
.main-nav.active {
    display: block;
}
/* Animated Hamburger to X */
.menu-toggle .bar {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--gold);
    margin: 6px 0;
    transition: all 0.4s ease;
    transform-origin: center;
}

.menu-toggle.active .top {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .middle {
    opacity: 0;
}

.menu-toggle.active .bottom {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =========================
   HERO SECTION
========================= */

.hero {
    padding: 120px 20px;
    text-align: center;
    background: linear-gradient(
        180deg,
        #0b1c2d 0%,
        #081624 100%
    );
}

.hero h1 {
    font-size: 34px;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero p {
    color: var(--gold);
    letter-spacing: 3px;
    margin-bottom: 30px;
}

/* =========================
   DESKTOP ENHANCEMENTS
========================= */

@media (min-width: 900px) {


    .menu-toggle {
        display: none;
    }

    .main-nav {
        position: static;
        display: block;
        background: none;
        width: auto;
        padding: 0;
    }

    .main-nav ul {
        display: flex;
        gap: 40px;
        align-items: center;
    }

    .main-nav li {
        margin: 0;
    }

    .hero {
        padding: 180px 20px;
    }

    .hero h1 {
        font-size: 56px;
    }
}
/* =========================
   CONTACT FORM
========================= */

.contact {
    padding: 80px 20px;
    background: var(--primary);
    color: var(--text-light);
    text-align: center;
}

.contact h2 {
    font-size: 36px;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.contact p {
    color: var(--gold);
    letter-spacing: 1.5px;
    margin-bottom: 40px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px 20px;
    border: 1px solid var(--gold);
    background: var(--secondary);
    color: var(--text-light);
    font-size: 14px;
    letter-spacing: 1px;
    border-radius: 3px;
    transition: 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(200,162,76,0.3);
}

.contact-form button {
    align-self: center;
}

.form-success {
    margin-top: 20px;
    color: var(--gold);
    font-weight: bold;
}

.form-error {
    margin-top: 20px;
    color: #ff6b6b;
    font-weight: bold;
}
