/* common variables and base reset used across the project */
:root {
    --primary: #692122;
    --secondary: #933938;

    --primary-bg: #fdf5ed;
    --secondary-bg: #692122;
    --light-bg: #fff;
    --dark-bg: #2b2b2b;

    --text: #692122;
    --light-text: white;

    --accent: #6b2a29;
    --input-bg: #f7efe9;
    --muted: #d8bfbf;
    --white: #fff;
    --text-dark: #2b2b2b;
    --brand-font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    margin: 0;
    font-family: var(--brand-font);
    background: var(--primary-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text);
    min-height: 100vh;
}
.main-container {
    min-height: 79vh;
}
/* primary button style to match brand (common) */
.btn-primary {
    background: var(--primary);
    /* border: 1px solid white; */
    font-weight: 700;
    border-radius: 12px;
    padding: 10px 14px;
    color: var(--white);
    box-shadow: 0 6px 18px rgba(107, 26, 26, 0.25);
    transition: transform .08s ease, box-shadow .12s ease, opacity .12s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--secondary);
    /* border: 1px solid white; */
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(107, 26, 26, 0.30);
    opacity: 0.98;
}

/* primary button style to match brand (common) */
.btn-dark {
    background: var(--secondary);
    border: none;
    font-weight: 700;
    border-radius: 12px;
    padding: 10px 14px;
    color: var(--white);
    box-shadow: 0 6px 18px rgba(107, 26, 26, 0.25);
    transition: transform .08s ease, box-shadow .12s ease, opacity .12s ease;
}

.btn-dark:hover,
.btn-dark:focus {
    background: var(--light-bg);
    /* border: none; */
    color: var(--text-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(107, 26, 26, 0.30);
    opacity: 0.98;
}

/* Top site navigation (match project theme / phone header look) */
.site-nav {
    background: var(--secondary);
    color: var(--light-text);
    padding: 10px 0;
    box-shadow: 0 6px 18px rgba(107,26,26,0.08);
    margin-bottom: 16px;
    position: relative; /* Needed for z-index context */
    z-index: 1050;      /* Ensure nav is above other page content */
}

/* nav layout: left home, centered logo, right hamburger */
.site-nav .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between; /* left / center / right */
    gap: 12px;
    padding: 0 12px;
}

/* center brand keep centered while left/right have fixed width */
.site-nav .nav-action { flex: 0 0 48px; }
.site-nav .nav-brand { flex: 1 1 auto; display:flex; justify-content:center; align-items:center; }
.site-nav .nav-logo { height: 56px; display:block; object-fit:contain; }

/* ensure hamburger is right-aligned and clickable */
.nav-hamburger {
    flex: 0 0 48px;
    position: relative; /* Ensure it's not overlapped */
    z-index: 1201;      /* Above nav, but below open menu */
}

/* inner layout */
.site-nav .nav-inner {
    gap: 8px;
    padding: 0 10px;
}

/* left/right action buttons (home/menu) */
.site-nav .nav-action {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    border: none;
    text-decoration: none;
    transition: transform .08s ease, background .12s ease;
}
.site-nav .nav-action i { font-size: 1.05rem; }

/* center brand */
.site-nav .nav-brand {
    flex: 1 1 auto;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.site-nav .nav-logo {
    height: 60px;
    display: block;
}

.sitelogo {
    width: 200px;
}


/* hover/focus states */
.site-nav .nav-action:hover,
.site-nav .nav-action:focus {
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
    outline: none;
    border-radius: 9px;
}

/* tighter layout on very small screens */
@media (max-width: 380px) {
    .site-nav .nav-action { width: 36px; height: 36px; min-width: 36px; border-radius: 8px; }
    .site-nav .nav-logo { height: 40px; }
    .site-nav { padding: 8px 0; border-radius: 12px; margin-bottom: 12px; }
}

/* when used inside phone-frame (remove outer container spacing) */
.phone-frame .site-nav { margin: 0 0 10px 0; border-radius: 12px; }

footer{
    background: var(--light-bg);
    padding: 10px 0px;
    color: var(--secondary);
    font-weight: bold;
}

/* Mobile hamburger button (minimal, matches theme) */
.nav-hamburger {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    width: 36px;
    height: 32px;
    padding: 4px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid transparent;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.nav-hamburger:focus { outline: 3px solid rgba(147,57,56,0.12); }
.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--light-text);
    border-radius: 2px;
}

/* Mobile sliding panel */
.mobile-menu {
    position: fixed;
    top: 14px;
    right: 14px;
    width: 280px;
    max-width: calc(100% - 32px);
    background: var(--light-bg);
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 16px 44px rgba(0,0,0,0.14);
    border: 1px solid rgba(43,43,43,0.06);
    transform: translateY(-8px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: transform 220ms ease, opacity 220ms ease;
    z-index: 1200;
}

/* open state */
.mobile-menu.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* header inside menu */
.mobile-menu-head {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:8px;
    padding-bottom:8px;
    border-bottom:1px solid rgba(43,43,43,0.04);
    margin-bottom:8px;
}
.menu-title { font-weight:700; color:var(--secondary); font-size:0.95rem; }
.menu-close {
    background: transparent;
    border: 0;
    font-size: 20px;
    line-height:1;
    cursor: pointer;
}

/* nav items list */
.mobile-nav-list {
    list-style:none;
    margin:0;
    padding:0;
    display:flex;
    flex-direction:column;
    gap:8px;
}
.mobile-nav-link {
    display:flex;
    align-items:center;
    gap:10px;
    padding:8px 10px;
    border-radius:8px;
    color:var(--text);
    text-decoration:none;
    font-weight:600;
    background: transparent;
    border:1px solid transparent;
}
.mobile-nav-link:hover,
.mobile-nav-link:focus {
    background: var(--input-bg);
    border-color: rgba(43,43,43,0.04);
    outline: none;
}

/* active item style (matches reference) */
.mobile-nav-link.active {
    background: var(--secondary);
    color: var(--light-text);
    box-shadow: 0 6px 14px rgba(147,57,56,0.08);
}

/* ensure mobile accessibility focus */
.mobile-menu [tabindex] { outline-offset: 3px; }

.footer-inner {
    padding: 12px 0;
}

.developer-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
}

.developer-link:hover {
    color: var(--primary);
    border-bottom-color: currentColor;
}

@media (max-width: 576px) {
    .footer-inner {
        justify-content: center !important;
    }
}