/* P.O.M. Motorsports - styles.css  v=3*/
:root{
    --bg: #0b0d10;
    --panel: #121621;
    --panel2: #0f131b;
    --text: #e8edf5;
    --muted: #a9b4c4;
    --accent: #ff4d1f;
    --accent2:#ff7a1a;
    --line: rgba(255,255,255,0.10);
    --shadow: 0 10px 30px rgba(0,0,0,0.45);
    --radius: 18px;
    --max: 1100px;
    --focus: 0 0 0 3px rgba(255,77,31,0.35);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
    margin:0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
    background:
            radial-gradient(1200px 600px at 20% -10%, rgba(255,77,31,0.18), transparent 60%),
            radial-gradient(900px 500px at 90% 0%, rgba(255,122,26,0.12), transparent 55%),
            linear-gradient(180deg, #07090c, var(--bg));
    color:var(--text);
    line-height:1.55;
}

a{ color:inherit; text-decoration:none; }
a:hover{ color:var(--text); }
img{ max-width:100%; display:block; }

.container{
    width: min(92vw, var(--max));
    margin: 0 auto;
}

/* Header */
.site-header{
    position: sticky;
    top:0;
    z-index:50;
    backdrop-filter: blur(10px);
    background: rgba(11,13,16,0.72);
    border-bottom: 1px solid var(--line);
}

.header-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding: 14px 0;
    gap: 16px;
}

.brand{
    display:flex;
    align-items:center;
    gap: 12px;
    min-width: 240px;
}

.brand-logo{
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #ffffff;                  /* matches your logo background */
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 10px 25px rgba(0,0,0,0.45);
    overflow: hidden;
    display: grid;
    place-items: center;
}

.brand-logo img{
    width: 100%;
    height: 100%;
    object-fit: contain;                  /* prevents cropping for logos */
    padding: 6px;                         /* adds breathing room */
}

.brand-title{
    display:flex;
    flex-direction:column;
    gap:2px;
}

.brand-title strong{
    font-size: 15px;
    letter-spacing: 0.6px;
}

.brand-title span{
    font-size: 12px;
    color: var(--muted);
}

/* Nav */
.nav{
    display:flex;
    align-items:center;
    gap: 18px;
}

.nav a{
    font-size: 14px;
    color: var(--muted);
    padding: 10px 10px;
    border-radius: 12px;
    transition: all 140ms ease;
}

.nav a:hover{
    background: rgba(255,255,255,0.06);
    color: var(--text);
}

.nav a.active{
    color: var(--text);
    background: linear-gradient(135deg, rgba(255,77,31,0.18), rgba(255,122,26,0.08));
    border: 1px solid rgba(255,77,31,0.25);
}

/* Hamburger */
.menu-btn{
    display:none;
    align-items:center;
    gap:10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    cursor:pointer;
    transition: transform 120ms ease, background 120ms ease;
}

.menu-btn:hover{ background: rgba(255,255,255,0.07); }
.menu-btn:active{ transform: translateY(1px); }
.menu-icon{
    width: 18px;
    height: 14px;
    position: relative;
}
.menu-icon span{
    position:absolute;
    left:0;
    right:0;
    height:2px;
    background: var(--text);
    border-radius: 999px;
    transition: transform 160ms ease, opacity 160ms ease, top 160ms ease;
}
.menu-icon span:nth-child(1){ top:0; }
.menu-icon span:nth-child(2){ top:6px; }
.menu-icon span:nth-child(3){ top:12px; }

.menu-btn[aria-expanded="true"] .menu-icon span:nth-child(1){ top:6px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon span:nth-child(2){ opacity:0; }
.menu-btn[aria-expanded="true"] .menu-icon span:nth-child(3){ top:6px; transform: rotate(-45deg); }

/* Mobile nav panel */
.mobile-panel{
    display:none;
    border-top: 1px solid var(--line);
}
.mobile-panel.show {
    display:block;
    /* display:block !important;
    background:red !important;
    min-height:300px !important; */

}
.mobile-panel .nav{
    flex-direction:column;
    align-items:stretch;
    padding: 10px 0 14px 0;
    gap: 6px;
}
.mobile-panel .nav a{
    padding: 12px 12px;
    border-radius: 14px;
}

/* Hero */
.hero{
    padding: 44px 0 18px 0;
}
.hero-grid{
    display:grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 22px;
    align-items: stretch;
}
.hero-card{
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(18,22,33,0.78), rgba(15,19,27,0.72));
    box-shadow: var(--shadow);
    padding: 24px;
    overflow:hidden;
    position:relative;
}
.hero-card:before{
    content:"";
    position:absolute;
    inset:-2px;
    background:
            radial-gradient(600px 220px at 10% 0%, rgba(255,77,31,0.22), transparent 60%),
            radial-gradient(440px 200px at 80% 20%, rgba(255,122,26,0.18), transparent 55%);
    pointer-events:none;
    opacity:0.85;
}
.hero-card > *{ position:relative; }

.kicker{
    display:inline-flex;
    align-items:center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,77,31,0.25);
    background: rgba(255,77,31,0.12);
    color: #ffd2c6;
    font-size: 12px;
}

h1{
    font-size: clamp(28px, 4vw, 44px);
    margin: 12px 0 10px 0;
    line-height: 1.15;
    letter-spacing: -0.4px;
}
.lead{
    color: var(--muted);
    font-size: 15.5px;
    margin: 0 0 18px 0;
}

.cta-row{
    display:flex;
    flex-wrap:wrap;
    gap: 10px;
    margin-top: 14px;
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.06);
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    cursor:pointer;
    transition: transform 120ms ease, background 120ms ease, border 120ms ease;
}

.btn:hover{
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,255,255,0.16);
}
.btn:active{ transform: translateY(1px); }
.btn.primary{
    border-color: rgba(255,77,31,0.35);
    background: linear-gradient(135deg, rgba(255,77,31,0.95), rgba(255,122,26,0.85));
    color: #0b0d10;
}
.btn.primary:hover{
    filter: brightness(1.03);
}
.btn:focus, a:focus, button:focus, input:focus, textarea:focus{
    outline:none;
    box-shadow: var(--focus);
}

/* Info card (hours / quick facts) */
.quick{
    display:grid;
    gap: 12px;
    padding: 22px;
}
.quick h2{
    font-size: 16px;
    margin: 0 0 6px 0;
}
.quick .muted{ color: var(--muted); font-size: 13px; }
.list{
    display:grid;
    gap: 8px;
    margin: 10px 0 0 0;
}
.list div{
    display:flex;
    justify-content:space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.04);
}
.list div span{ color: var(--muted); }

/* Sections */
.section{
    padding: 18px 0 44px 0;
}
.section h2{
    margin: 0 0 10px 0;
    font-size: 20px;
}
.section p{ color: var(--muted); margin: 0 0 16px 0; }

.grid{
    display:grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
}

.card{
    grid-column: span 6;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(18,22,33,0.7);
    box-shadow: var(--shadow);
    padding: 18px;
}
.card h3{
    margin: 0 0 6px 0;
    font-size: 16px;
}
.card p{
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.card ul{
    margin: 10px 0 0 18px;
    color: var(--muted);
    font-size: 14px;
}

.badge-row{
    display:flex;
    flex-wrap:wrap;
    gap: 8px;
    margin-top: 12px;
}
.badge{
    font-size: 12px;
    color: #ffd2c6;
    border: 1px solid rgba(255,77,31,0.25);
    background: rgba(255,77,31,0.10);
    padding: 6px 10px;
    border-radius: 999px;
}

/* Forms */
.form{
    display:grid;
    gap: 12px;
}
.field{
    display:grid;
    gap: 6px;
}
label{
    color: var(--muted);
    font-size: 13px;
}
input, textarea{
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    font-size: 14px;
}
textarea{ min-height: 140px; resize: vertical; }

.split{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Footer */
.footer{
    border-top: 1px solid var(--line);
    padding: 18px 0 26px 0;
    color: var(--muted);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 880px){
    .hero-grid{ grid-template-columns: 1fr; }
    .card{ grid-column: span 12; }
}
@media (max-width: 760px){

    /* Hide only desktop nav */
    .header-inner > .nav{
        display:none;
    }

    .menu-btn{
        display:inline-flex;
    }

    .mobile-panel.show{
        display:block;
    }

    .split{
        grid-template-columns: 1fr;
    }
}