/*
Theme Name: Liuzzi-Fedun Studios
Theme URI: https://liuzzifedunstudios.com
Author: Liuzzi-Fedun Studios
Description: A dark, responsive theme for Liuzzi-Fedun Studios — video, audio, and computer services on Long Island. Rebuilt from the original 2018 static site. On activation it creates all pages and the navigation menu automatically.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: liuzzi-fedun-studios
*/

/* ---------- Design tokens ---------- */
:root {
	--lf-bg:        #0a0a0a;
	--lf-surface:   #161616;
	--lf-surface-2: #1f1f1f;
	--lf-border:    #2c2c2c;
	--lf-text:      #f4f4f4;
	--lf-muted:     #b7b7b7;
	--lf-accent:    #c8a24a;   /* warm gold, pulled from the logo */
	--lf-accent-2:  #e6c877;
	--lf-maxw:      1120px;
	--lf-radius:    14px;
	--lf-shadow:    0 18px 50px rgba(0,0,0,.55);
	--lf-font:      "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--lf-bg);
	color: var(--lf-text);
	font-family: var(--lf-font);
	font-size: 18px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lf-accent-2); text-decoration: none; }
a:hover, a:focus { color: var(--lf-text); text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }

.lf-container { width: 100%; max-width: var(--lf-maxw); margin: 0 auto; padding: 0 24px; }
.screen-reader-text {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; }
.skip-link:focus {
	left: 12px; top: 12px; background: var(--lf-accent); color: #000;
	padding: 10px 16px; border-radius: 8px;
}

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(10,10,10,.82);
	backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--lf-border);
}
.site-header__inner {
	display: flex; align-items: center; gap: 20px;
	min-height: 84px; padding-top: 10px; padding-bottom: 10px;
}
.site-brand { display: flex; align-items: center; gap: 16px; margin-right: auto; }
.site-brand img { width: 52px; height: auto; }
.site-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.site-brand__title {
	font-size: 1.12rem; font-weight: 800; letter-spacing: .02em;
	text-transform: uppercase; color: var(--lf-text);
}
.site-brand__tag { font-size: .72rem; color: var(--lf-muted); letter-spacing: .18em; text-transform: uppercase; }

/* ---------- Nav ---------- */
.nav-toggle {
	display: none; background: none; border: 1px solid var(--lf-border);
	color: var(--lf-text); border-radius: 10px; padding: 10px 12px; cursor: pointer;
}
.nav-toggle__bar { display: block; width: 20px; height: 2px; background: currentColor; }
.nav-toggle__bar + .nav-toggle__bar { margin-top: 5px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
	display: block; padding: 10px 14px; color: var(--lf-text);
	font-size: .95rem; font-weight: 600; border-radius: 9px; white-space: nowrap;
}
.main-nav a:hover, .main-nav a:focus,
.main-nav .current-menu-item > a,
.main-nav .current-menu-parent > a { background: var(--lf-surface-2); color: var(--lf-accent-2); text-decoration: none; }

.main-nav li { position: relative; }
.main-nav .menu-item-has-children > a::after { content: " \25be"; color: var(--lf-muted); }

/* Dropdowns */
.main-nav .sub-menu {
	position: absolute; top: calc(100% + 6px); left: 0; min-width: 210px;
	background: var(--lf-surface); border: 1px solid var(--lf-border);
	border-radius: 12px; box-shadow: var(--lf-shadow); padding: 8px;
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu,
.main-nav .sub-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .sub-menu a { font-weight: 500; }

/* ---------- Hero (front page) ---------- */
.hero {
	position: relative; min-height: 62vh; display: flex; align-items: center;
	background-image: linear-gradient(rgba(6,6,6,.55), rgba(6,6,6,.82)), var(--lf-hero, none);
	background-size: cover; background-position: center; text-align: center;
	padding: 88px 0; border-bottom: 1px solid var(--lf-border);
}
.hero__inner { max-width: 760px; margin: 0 auto; }
.hero h1 {
	font-size: clamp(2.1rem, 6vw, 3.6rem); text-transform: uppercase;
	letter-spacing: .01em; margin-bottom: .35em;
}
.hero p { font-size: clamp(1.05rem, 2.4vw, 1.35rem); color: #ececec; margin: 0 auto 1.4em; max-width: 620px; }
.hero .lf-eyebrow { color: var(--lf-accent-2); }

.lf-eyebrow {
	display: inline-block; letter-spacing: .22em; text-transform: uppercase;
	font-size: .78rem; font-weight: 700; color: var(--lf-accent);
	margin-bottom: 1rem;
}

/* ---------- Buttons ---------- */
.lf-btn {
	display: inline-block; padding: 14px 26px; border-radius: 999px;
	background: var(--lf-accent); color: #111 !important; font-weight: 700;
	letter-spacing: .02em; transition: transform .15s ease, background .15s ease;
}
.lf-btn:hover, .lf-btn:focus { background: var(--lf-accent-2); text-decoration: none; transform: translateY(-2px); }
.lf-btn--ghost { background: transparent; color: var(--lf-text) !important; border: 1px solid var(--lf-border); }
.lf-btn--ghost:hover { border-color: var(--lf-accent); }

/* ---------- Sections / content ---------- */
.section { padding: 72px 0; }
.section--alt { background: var(--lf-surface); border-block: 1px solid var(--lf-border); }

.page-hero { padding: 64px 0 8px; text-align: center; }
.page-hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); text-transform: uppercase; }
.page-hero .lf-eyebrow { margin-bottom: .6rem; }

.page-content { padding: 24px 0 80px; }
.prose { max-width: 760px; margin: 0 auto; }
.prose p { color: #e7e7e7; margin: 0 0 1.2em; }
.prose ul { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin: .4em 0; color: #e7e7e7; }
.prose .lead { font-size: 1.2rem; color: #fff; }
.prose h2 { margin-top: 1.6em; color: var(--lf-accent-2); }

/* Cards / grid */
.lf-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.lf-card {
	background: var(--lf-surface); border: 1px solid var(--lf-border);
	border-radius: var(--lf-radius); padding: 28px; transition: transform .18s ease, border-color .18s ease;
}
.lf-card:hover { transform: translateY(-4px); border-color: var(--lf-accent); }
.lf-card h3 { color: var(--lf-accent-2); margin-bottom: .35em; }
.lf-card p { color: var(--lf-muted); margin: 0; }
.lf-card a.lf-card__link { color: inherit; }

/* Quotes */
.quotes { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 860px; margin: 0 auto; }
.quote {
	background: var(--lf-surface-2); border-left: 3px solid var(--lf-accent);
	border-radius: 10px; padding: 22px 24px; font-style: italic; color: #efece0; font-size: 1.1rem;
}

/* Video embeds keep aspect ratio */
.lf-embed { position: relative; padding-top: 56.25%; max-width: 720px; margin: 0 auto 1.4em;
	border-radius: 12px; overflow: hidden; border: 1px solid var(--lf-border); }
.lf-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Contact */
.contact-grid { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; max-width: 900px; margin: 0 auto; align-items: start; }
.contact-info p { margin: 0 0 .5em; }
.contact-info .label { color: var(--lf-accent); text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 700; display: block; margin-top: 1.2em; }

/* WordPress form / block fallbacks */
.wp-block-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.aligncenter { margin-inline: auto; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--lf-border); background: #070707; padding: 40px 0; color: var(--lf-muted); }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--lf-muted); }
.site-footer a:hover { color: var(--lf-accent-2); }
.site-footer__nav { display: flex; gap: 18px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.main-nav {
		position: absolute; top: 100%; left: 0; right: 0;
		background: var(--lf-bg); border-bottom: 1px solid var(--lf-border);
		max-height: 0; overflow: hidden; transition: max-height .28s ease;
	}
	.main-nav.is-open { max-height: 80vh; overflow-y: auto; }
	.main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 20px; }
	.main-nav a { padding: 12px 8px; }
	.main-nav .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; background: transparent; padding: 0 0 0 14px; min-width: 0;
	}
	.main-nav .menu-item-has-children > a::after { content: ""; }
	.contact-grid { grid-template-columns: 1fr; }
}
