/* ═══════════════════════════════════════════════════════════════
   C3 PRODUCTIONS — main.css
   All custom styles for the Digital Cinematheque theme.
   Tailwind handles utilities; this file handles everything else.
═══════════════════════════════════════════════════════════════ */


/* ─── CUSTOM FONTS ──────────────────────────────────────────── */
@font-face {
    font-family: 'Benedict';
    src: url('../fonts/Benedict.woff2') format('woff2'),
         url('../fonts/Benedict Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Oswald';
    src: url('../fonts/Oswald-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Oswald';
    src: url('../fonts/Oswald-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Oswald';
    src: url('../fonts/Oswald-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Oswald';
    src: url('../fonts/Oswald-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Oswald';
    src: url('../fonts/Oswald-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Oswald';
    src: url('../fonts/Oswald-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* ─── RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #131313;
    color: #e5e2e1;
    font-family: 'Noto Serif', serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ─── MATERIAL SYMBOLS (ICONS) ──────────────────────────────── */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
    line-height: 1;
}


/* ─── NAVIGATION ────────────────────────────────────────────── */
.glass-nav {
    background: rgba(19, 19, 19, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Services dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(19, 19, 19, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(96, 62, 57, 0.3);
    min-width: 230px;
    z-index: 100;
    padding: 12px 0 8px;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.dropdown-menu.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #a3a3a3;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    color: #ffffff;
    background: rgba(255, 180, 168, 0.08);
}

.dropdown-menu .divider {
    height: 1px;
    background: rgba(96, 62, 57, 0.3);
    margin: 4px 0;
}

.dropdown-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-trigger .arrow {
    transition: transform 0.2s ease;
    font-size: 14px !important;
}

.dropdown.open .arrow {
    transform: rotate(180deg);
}


/* ─── MARQUEE / TICKER BANNER ───────────────────────────────── */
.animate-marquee {
    display: flex;
    width: 200%;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* ─── TYPOGRAPHY HELPERS ────────────────────────────────────── */
.font-headline { font-family: 'Space Grotesk', sans-serif; }
.font-body     { font-family: 'Noto Serif', serif; }
.font-label    { font-family: 'Inter', sans-serif; }


/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 20px 26px;
    background: linear-gradient(45deg, #ffb4a8, #ff7d68);
    color: #410000;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.btn-primary:hover  { opacity: 0.9; }
.btn-primary:active { transform: scale(0.97); }


/* ─── IMAGE CARDS ───────────────────────────────────────────── */

/* Zoom-lens hover effect */
.img-card {
    overflow: hidden;
    border-radius: 0.25rem;
}

.img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.img-card:hover img {
    transform: scale(1.05);
}

.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.25rem;
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.portfolio-card:hover img {
    transform: scale(1.1);
}


/* ─── SERVICE GRID CARDS ────────────────────────────────────── */
.service-card {
    padding: 4rem;
    background: #131313;
    transition: background 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
    cursor: pointer;
}

.service-card:hover {
    background: #1c1b1b;
}

.service-card .icon {
    font-size: 3rem;
    color: #ffb4a8;
    margin-bottom: 2.5rem;
    display: block;
    transition: transform 0.3s ease;
}

.service-card:hover .icon {
    transform: scale(1.1);
}

/* ─── FLUID CARD TITLES ──────────────────────────────────────
   Card titles auto-scale to fit their own column width, so long
   single words ("Construction", "Photography") never overflow at
   any window size. Container-query based; falls back to the
   Tailwind text-size class on browsers without container queries. */
.c3-fit-grid > *,
.c3-fit-grid-sm > * { container-type: inline-size; }
.c3-fit-grid h3 { font-size: clamp(1.375rem, 13.5cqi, 3rem); line-height: 1.05; }
.c3-fit-grid-sm h3 { font-size: clamp(1rem, 12cqi, 1.875rem); line-height: 1.1; }


/* ─── CONTACT FORM ──────────────────────────────────────────── */
.form-field {
    position: relative;
    margin-bottom: 3rem;
}

.form-field label {
    display: block;
    font-family: 'Noto Serif', serif;
    font-style: italic;
    color: rgba(235, 187, 180, 0.7);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(96, 62, 57, 0.35);
    padding: 1rem 0;
    color: #e5e2e1;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    outline: none;
    transition: border-color 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-bottom-color: #ffb4a8;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: rgba(229, 226, 225, 0.6);
}

.form-field select option {
    background: #1c1b1b;
    color: #e5e2e1;
}

.form-field textarea {
    resize: none;
}


/* ─── TESTIMONIALS ──────────────────────────────────────────── */
.testimonial-divider {
    width: 48px;
    height: 1px;
    background: #ffb4a8;
    margin: 0 auto 1rem;
}


/* ─── BLOG / JOURNAL ────────────────────────────────────────── */
.article-card {
    display: flex;
    flex-direction: column;
}

.article-card .read-line {
    width: 32px;
    height: 1px;
    background: #ff5540;
    margin-right: 8px;
    flex-shrink: 0;
}

/* ─── WORDPRESS ADMIN BAR FIX ───────────────────────────────── */
/* Pushes the fixed nav down when the WP admin bar is visible */
.admin-bar .glass-nav {
    top: 32px;
}

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


/* ─── MOBILE MENU ───────────────────────────────────────────── */
#mobile-menu a {
    transition: color 0.2s ease;
}

#mobile-menu a:hover {
    color: #ffb4a8;
}


/* ─── ACCESSIBILITY ─────────────────────────────────────────── */
:focus-visible {
    outline: 2px solid #ffb4a8;
    outline-offset: 3px;
}

/* Skip to content link for screen readers */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: #ffb4a8;
    color: #410000;
    padding: 0.5rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 9999;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 1rem;
}


/* ─── WORDPRESS ALIGNMENT CLASSES ───────────────────────────── */
.alignleft  { float: left;  margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left:  1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }


/* ─── SINGLE POST CONTENT TYPOGRAPHY ───────────────────────── */
.entry-content {
    font-family: 'Noto Serif', serif;
    font-size: 1.125rem;
    line-height: 1.85;
    color: #c8c5c4;
    max-width: 72ch;
}

.entry-content p    { margin-bottom: 1.75rem; }
.entry-content h2   { font-family: 'Space Grotesk', sans-serif; font-size: 2rem;    font-weight: 700; letter-spacing: -0.03em; text-transform: uppercase; color: #e5e2e1; margin: 3rem 0 1.25rem; }
.entry-content h3   { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem;  font-weight: 700; letter-spacing: -0.02em; color: #e5e2e1; margin: 2.5rem 0 1rem; }
.entry-content h4   { font-family: 'Space Grotesk', sans-serif; font-size: 1.125rem;font-weight: 700; color: #e5e2e1; margin: 2rem 0 0.75rem; }
.entry-content ul,
.entry-content ol   { margin: 0 0 1.75rem 1.5rem; }
.entry-content li   { margin-bottom: 0.5rem; }
.entry-content blockquote {
    border-left: 2px solid #ffb4a8;
    margin: 2.5rem 0;
    padding: 0.5rem 0 0.5rem 2rem;
    font-style: italic;
    font-size: 1.25rem;
    color: #ebbbb4;
}
.entry-content a    { color: #ffb4a8; text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: #ffffff; }
.entry-content img  { border-radius: 0.25rem; margin: 2rem 0; }
.entry-content hr   { border: none; border-top: 1px solid rgba(96, 62, 57, 0.3); margin: 3rem 0; }
.entry-content code {
    font-family: monospace;
    background: #1c1b1b;
    padding: 0.15em 0.4em;
    border-radius: 2px;
    font-size: 0.9em;
    color: #ebbbb4;
}
.entry-content pre  { background: #1c1b1b; padding: 1.5rem; border-radius: 0.25rem; overflow-x: auto; margin-bottom: 1.75rem; }
.entry-content pre code { background: none; padding: 0; }
