/*
Theme Name: Area Modern Home
Author: Forcefield Web Development
Author URI: https://forcefieldnc.com
Version: 1.0
Description: Custom theme for Area Modern Home (Greensboro & Durham, NC) — Younger Furniture catalog for local discovery. Built on Forcefield Stratum.
*/

/* ── Fonts (self-hosted) ── */
@font-face { font-family:'Libre Franklin'; src:url('fonts/LibreFranklin-400.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Libre Franklin'; src:url('fonts/LibreFranklin-500.woff2') format('woff2'); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:'Libre Franklin'; src:url('fonts/LibreFranklin-600.woff2') format('woff2'); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:'Libre Franklin'; src:url('fonts/LibreFranklin-700.woff2') format('woff2'); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:'Archivo'; src:url('fonts/Archivo-600.woff2') format('woff2'); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:'Archivo'; src:url('fonts/Archivo-700.woff2') format('woff2'); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:'Archivo'; src:url('fonts/Archivo-800.woff2') format('woff2'); font-weight:800; font-style:normal; font-display:swap; }

/* ── Brand tokens ── */
:root {
    --amh-orange: #e68b32;
    --amh-ink: #111111;
    --amh-rule: #e6e3dd;
    --font-body: 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-head: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; }

/* ── Base ── */
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.01em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p + p { margin-top: 1em; }

/* ── Container ── */
.ff-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Buttons ── */
.ff-btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.ff-btn-primary {
    background: #333;
    color: #fff;
}

.ff-btn-primary:hover {
    background: #111;
}

.ff-btn-outline {
    background: transparent;
    border: 2px solid #333;
    color: #333;
}

.ff-btn-outline:hover {
    background: #333;
    color: #fff;
}

/* ── Skip Link ── */
.ff-skip-link {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal;
}
.ff-skip-link:focus {
    clip: auto;
    display: block;
    height: auto;
    width: auto;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100000;
    padding: 15px 23px;
    background: #fff;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 0 2px 2px rgba(0,0,0,.6);
}

/* ── Accessibility ── */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal;
}

/*@font-face {
    font-family: 'YourFont';
    src: url('fonts/yourfont.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}*/

/* ── Header & Nav ── */
#main-nav {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #fff;
    border-bottom: 1px solid var(--amh-rule);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 44px;
    height: 92px;
    transition: height 0.28s ease;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    padding: 18px 0;                 /* breathing room above/below the wordmark */
    color: var(--amh-ink);           /* drives the wordmark's currentColor fills */
    transition: color 0.3s ease;
}
.site-logo svg {
    width: 158px;
    height: auto;
    display: block;
    transition: width 0.28s ease;
}

/* Condensed state once scrolled past the threshold */
#main-nav.is-scrolled .header-inner { height: 62px; }
#main-nav.is-scrolled .site-logo    { padding: 10px 0; }
#main-nav.is-scrolled .site-logo svg { width: 128px; }

/* Hamburger */
#hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10000;
}
.bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--amh-ink);
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}
.bar:nth-child(2) { background: var(--amh-orange); }   /* brand accent bar */
#hamburger-btn.is-open .bar { background: var(--amh-orange); }
#hamburger-btn.is-open .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
#hamburger-btn.is-open .bar:nth-child(2) { opacity: 0; }
#hamburger-btn.is-open .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* When the menu is open, header goes transparent over the dark overlay
   and the logo flips to white (orange accent stays via its fixed fill). */
body.menu-open #main-nav { background: transparent; border-color: transparent; }
body.menu-open .site-logo { color: #fff; }

/* Full-screen menu */
#fullscreen-menu {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: var(--amh-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#fullscreen-menu.is-open,
.menu-open #fullscreen-menu { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; }

.fullscreen-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}
.fullscreen-nav-list li { margin: 0.75rem 0; }
.fullscreen-nav-list a {
    font-family: var(--font-head);
    font-size: clamp(1.5rem, 3.2vw, 2.4rem);
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}
.fullscreen-nav-list a:hover,
.fullscreen-nav-list .current-menu-item > a { color: var(--amh-orange); }

/* ── Responsive ── */
@media (max-width: 1200px) {
}

@media (max-width: 768px) {
    .header-inner { padding: 0 22px; height: 72px; }
    .site-logo svg { width: 132px; }
    #main-nav.is-scrolled .header-inner { height: 56px; }
    #main-nav.is-scrolled .site-logo svg { width: 112px; }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.35rem; }
}

/* ============================================================
   Footer — dark brown band
   ============================================================ */
#footer {
    background: #2a2420;
    color: rgba(255,255,255,0.72);
    font-size: 0.92rem;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1.6fr;
    gap: 48px;
    padding-top: 64px;
    padding-bottom: 48px;
}
.footer-logo { display: inline-block; color: #fff; }
.footer-logo svg { width: 170px; height: auto; display: block; }
.footer-tag { margin: 18px 0 22px; max-width: 32ch; line-height: 1.55; }

.footer-social { display: flex; gap: 12px; }
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 50%;
    color: #fff;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover { background: var(--amh-orange); border-color: var(--amh-orange); transform: translateY(-1px); }
.footer-social svg { width: 18px; height: 18px; }

.footer-locations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-content: start;
}
.footer-loc h3 {
    font-family: var(--font-head);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--amh-orange);
    margin-bottom: 12px;
}
.footer-loc address {
    font-style: normal;
    line-height: 1.75;
    color: rgba(255,255,255,0.72);
}
.footer-loc a { color: inherit; text-decoration: none; }
.footer-loc a:hover { color: #fff; }

.footer-bar {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 20px 0;
}
.footer-bar p { font-size: 0.85rem; color: rgba(255,255,255,0.5); }

.ff-credit {
	display: block;
	text-align: right;
	font-size: 9px;
	color: rgba(255,255,255,0.25);
	text-decoration: none;
	letter-spacing: .5px;
	width: 100%;
	max-width: 1300px;
	margin: 0 auto;
	padding: 0 20px 14px;
}

@media (max-width: 768px) {
    .footer-inner { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; padding-bottom: 36px; }
}
@media (max-width: 480px) {
    .footer-locations { grid-template-columns: 1fr; }
}
