/*
Theme Name: Cognito Base Theme
Theme URI: https://cognito.guru/
Author: Cognito Guru
Author URI: https://cognito.guru/
Description: Authoritative structural chassis for all restaurant and local business websites.
Version: 0.1.2
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;700;800;900&display=swap');

:root {
    --cg-primary: #006D77;
    --cg-secondary: #83C5BE;
    --cg-accent: #E29578;
    --cg-background: #FAF7F2;
    --cg-surface: #FFFFFF;
    --cg-text-primary: #2D3142;
    --cg-text-secondary: #5C677D;

    --cg-heading-font: 'Outfit', sans-serif;
    --cg-body-font: 'Inter', sans-serif;
}

/* --- THE TYPOGRAPHY POLICE (No Serifs Allowed) --- */
html,
body,
p,
a,
li,
span,
div,
input,
button,
textarea,
section,
article {
    font-family: 'Inter', sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.next3-logo-text,
.n3-hero-title,
.n3-section-title,
.next3-logo-area span {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700;
}

/* Specific Highlight Fixes */
.text-mist,
span.text-mist,
.n3-hero-title span {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800;
}

.next3-menu a,
.next3-cta-btn,
.n3-btn {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600;
}

/* --- Base Layout & Sections --- */
body {
    margin: 0;
    background: #fff;
    color: var(--cg-text-primary);
    overflow-x: hidden;
}

.n3-section {
    padding: 8rem 2rem;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.n3-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* --- Header & Navigation --- */
.header-next3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 0;
}

/* Admin Bar Spacing Fix */
.admin-bar .header-next3 {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .header-next3 {
        top: 46px;
    }
}

.next3-header-wrapper {
    padding: 2rem;
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.next3-header-card {
    width: 100%;
    max-width: 1240px;
    background: #fff;
    border-radius: 100px;
    padding: 0.8rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.next3-logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.next3-logo-icon {
    background: var(--cg-primary);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.next3-logo-icon svg {
    width: 22px !important;
    height: 22px !important;
    fill: #fff !important;
}

.next3-logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--cg-primary);
    letter-spacing: -0.01em;
}

.next3-menu {
    display: flex;
    gap: 1.8rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.next3-menu a {
    text-decoration: none;
    color: var(--cg-text-secondary);
    transition: 0.2s;
}

.next3-menu a:hover {
    color: var(--cg-primary);
}

.next3-cta-btn {
    background: var(--cg-primary);
    color: #fff !important;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
}

/* --- Hero Section --- */
.n3-hero {
    height: 100vh;
    min-height: 850px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #fff;
    overflow: hidden;
}

.n3-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.n3-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 2;
}

.n3-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1000px;
    padding: 2rem;
}

.n3-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.6rem 1.6rem;
    border-radius: 50px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
}

.n3-hero-title {
    font-size: clamp(3.5rem, 9vw, 6rem);
    line-height: 1;
    margin-bottom: 1.5rem;
}

.n3-hero-desc {
    font-size: 1.3rem;
    margin: 0 auto 3rem;
    max-width: 700px;
    opacity: 0.95;
    line-height: 1.7;
}

.n3-btn-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.n3-btn {
    padding: 1.2rem 3.2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
}

.n3-btn-primary {
    background: var(--cg-primary);
    color: #fff !important;
}

.n3-btn-outline {
    border: 2px solid #fff;
    color: #fff !important;
}

.n3-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* --- Grids & Layout --- */
.n3-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.8rem;
}

.n3-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.n3-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.n3-card:hover {
    transform: translateY(-12px);
}

.n3-card-img {
    height: 280px;
    width: 100%;
    object-fit: cover;
}

.n3-card-body {
    padding: 3rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.n3-eyebrow {
    color: var(--cg-secondary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    margin-bottom: 1rem;
    display: block;
}

.n3-feature {
    text-align: center;
}

.n3-feature-icon {
    width: 80px;
    height: 80px;
    background: #E8F7F6;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

/* --- FOOTER (Full Bleed) --- */
.site-footer {
    background-color: var(--cg-background) !important;
    width: 100% !important;
    margin: 0 !important;
}

.footer-next3 {
    background-color: var(--cg-background) !important;
    padding: 0 !important;
}

.next3-footer-wrapper {
    background-color: var(--cg-background) !important;
    padding: 10rem 2rem 5rem;
    width: 100%;
    box-sizing: border-box;
}

.next3-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 5rem;
}

.next3-footer-brand p {
    font-size: 1.1rem;
    color: #5C677D;
    margin: 2rem 0;
    line-height: 1.8;
}

.next3-socials {
    display: flex;
    gap: 1rem;
}

.next3-socials span {
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cg-primary);
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
}

.next3-footer-col h4 {
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2.5rem;
    color: var(--cg-text-primary);
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 1rem;
}

.footer-menu a {
    text-decoration: none;
    color: #5C677D;
    transition: color 0.2s;
    font-size: 1rem;
}

.footer-menu a:hover {
    color: var(--cg-primary);
}

.next3-footer-bottom {
    max-width: 1200px;
    margin: 8rem auto 0;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #A0AEC0;
}

/* --- Misc Highlights --- */
.image-stack {
    position: relative;
    height: 550px;
}

.image-stack img:nth-child(1) {
    width: 85%;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.image-stack img:nth-child(2) {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 68%;
    border-radius: 24px;
    border: 12px solid var(--cg-background);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.text-ocean {
    color: var(--cg-primary) !important;
}

.text-slate {
    color: var(--cg-text-secondary) !important;
}

.text-mist {
    color: var(--cg-secondary) !important;
}

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

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .next3-header-wrapper {
        padding: 1.5rem;
    }

    .next3-header-card {
        padding: 0.8rem 1.5rem;
    }

    .next3-menu {
        gap: 1.5rem;
    }

    .next3-footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 1.8rem;
    }
}

@media (max-width: 768px) {
    .next3-menu {
        display: none;
    }

    .n3-grid-2 {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    .next3-footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .next3-socials {
        justify-content: center;
    }

    .next3-footer-bottom {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        align-items: center;
    }
}

/* ================================================================ 
   NEXT3 ACADEMY DROPDOWN REPAIR (CRITICAL FIX)
================================================================ */

/* HIDE sub-menus by default */
.next3-menu ul.sub-menu, 
.next3-menu li ul {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background: #ffffff !important;
    min-width: 280px !important;
    margin: 0 !important;
    padding: 15px 0 !important;
    box-shadow: 0 15px 45px rgba(0,0,0,0.18) !important;
    border-radius: 12px !important;
    z-index: 99999 !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    list-style: none !important;
    text-align: left !important;
}

/* SHOW sub-menu only on parent hover */
.next3-menu li:hover > ul {
    display: block !important;
    animation: n3SubFadeIn 0.2s ease-out forwards !important;
}

@keyframes n3SubFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sub-menu Item Styling */
.next3-menu ul.sub-menu li,
.next3-menu li ul li {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.next3-menu ul.sub-menu li a,
.next3-menu li ul li a {
    display: block !important;
    padding: 12px 25px !important;
    color: #334155 !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    white-space: normal !important;
}

.next3-menu ul.sub-menu li a:hover,
.next3-menu li ul li a:hover {
    background: #f1f5f9 !important;
    color: var(--cg-primary) !important;
    padding-left: 30px !important;
}

/* Fix for the home icon vertical alignment */
.next3-menu > li > a svg {
    display: block !important;
    margin: 0 auto !important;
}

/* Ensure Parent Items have hover area and correct relative positioning */
.next3-menu > li {
    position: relative !important;
}
