/*
 * Central Florida Creative — Main Stylesheet
 * File: assets/css/main.css
 *
 * HOW TO EDIT THIS FILE:
 * ─────────────────────────────────────────────────────────────
 * COLORS:     Edit the CSS variables in the :root block (Section 1)
 * FONTS:      Edit --font-* variables in Section 1, then update
 *             the Google Fonts URL in functions.php (Section 2)
 * SPACING:    Edit --section-pad, --nav-h, --max-w in Section 1
 * COMPONENTS: Each component has a clearly-labelled section header
 * ─────────────────────────────────────────────────────────────
 */


/* ============================================================
   SECTION 1: CSS VARIABLES (DESIGN TOKENS)
   ★ PRIMARY EDIT ZONE — most changes happen here ★
   ============================================================ */
:root {
    /* --- Brand Colors --- */
    --orange:        #E8581A;   /* Primary brand orange */
    --orange-light:  #F47C42;   /* Hover states, lighter accents */
    --orange-dark:   #C0430E;   /* Darker variant for depth */
    --orange-glow:   rgba(232, 88, 26, 0.18);

    /* --- Neutrals --- */
    --black:         #0A0A0A;   /* Primary background */
    --near-black:    #111111;   /* Section alternate backgrounds */
    --charcoal:      #1C1C1C;   /* Card backgrounds */
    --silver-dark:   #3A3A3A;   /* Borders, dividers */
    --silver-mid:    #787878;   /* Secondary text, icons */
    --silver-light:  #B8B8B8;   /* Body text on dark */
    --silver-pale:   #E2E2E2;   /* Light accents */
    --white:         #FFFFFF;   /* Primary text, logo */
    --off-white:     #F7F5F2;   /* Warm white backgrounds */

    /* --- Typography --- */
    /* To change fonts: update names here AND update the Google Fonts URL in functions.php */
    --font-display:  'Bebas Neue', sans-serif;     /* Headlines */
    --font-body:     'DM Sans', sans-serif;         /* Body text, UI */
    --font-serif:    'DM Serif Display', serif;     /* Italic accents */

    /* --- Layout --- */
    --nav-h:         72px;      /* Navigation bar height */
    --section-pad:   clamp(4rem, 8vw, 7rem); /* Top/bottom padding on sections */
    --max-w:         1280px;    /* Maximum content width */
    --radius:        4px;       /* Small border radius */
    --radius-lg:     12px;      /* Large border radius (cards) */

    /* --- Animation --- */
    --transition:    0.28s cubic-bezier(0.4, 0, 0.2, 1);
}


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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--white);
    cursor: none; /* Custom cursor active — see JS */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 2px; }

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--orange);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius);
    font-weight: 700;
    z-index: 10000;
    transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* Screen reader only utility */
.screen-reader-text {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}


/* ============================================================
   SECTION 3: NOISE TEXTURE OVERLAY
   Remove this ::after block to disable the subtle grain effect
   ============================================================ */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.032;
    pointer-events: none;
    z-index: 9998;
}


/* ============================================================
   SECTION 4: CUSTOM CURSOR
   Disable by removing this block and setting body { cursor: auto; }
   ============================================================ */
#cursor-dot,
#cursor-ring {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}
#cursor-dot {
    width: 8px; height: 8px;
    background: var(--orange);
    top: 0; left: 0;
}
#cursor-ring {
    width: 36px; height: 36px;
    border: 1.5px solid var(--orange);
    top: 0; left: 0;
    transition: width 0.25s, height 0.25s, border-color 0.25s, background 0.25s, opacity 0.3s;
}
#cursor-ring.hovered {
    width: 56px; height: 56px;
    background: var(--orange-glow);
    border-color: var(--orange-light);
}
#cursor-ring.clicked {
    width: 28px; height: 28px;
    background: var(--orange-glow);
}
/* Hide cursor elements on touch devices */
@media (hover: none) {
    #cursor-dot, #cursor-ring { display: none; }
    body { cursor: auto; }
    body * { cursor: auto !important; }
}
body * { cursor: none !important; }


/* ============================================================
   SECTION 5: NAVIGATION
   ============================================================ */
#main-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
    transition: background var(--transition), border-color var(--transition);
}
#main-nav.scrolled {
    background: rgba(10, 10, 10, 0.92);
    border-bottom: 1px solid rgba(232, 88, 26, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-mark svg { width: 38px; height: 38px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text .l1 {
    font-family: var(--font-display);
    font-size: 18px;
    letter-spacing: 0.08em;
    color: var(--white);
}
.logo-text .l2 {
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.22em;
    color: var(--silver-light);
    text-transform: uppercase;
}

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-left: auto;
    list-style: none;
}
.nav-links a {
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--silver-light);
    transition: color var(--transition);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 1px;
    background: var(--orange);
    transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.current-menu-item { color: var(--white); }
.nav-links a:hover::after, .nav-links a.current-menu-item::after { width: 100%; }

/* CTA button in nav */
.nav-links .menu-item-cta a,
a.nav-cta {
    padding: 9px 22px !important;
    background: var(--orange);
    color: var(--white) !important;
    border-radius: var(--radius);
    font-weight: 700 !important;
    transition: background var(--transition), transform var(--transition) !important;
}
.nav-links .menu-item-cta a::after,
a.nav-cta::after { display: none !important; }
.nav-links .menu-item-cta a:hover,
a.nav-cta:hover {
    background: var(--orange-light) !important;
    transform: translateY(-1px) !important;
}

/* Mobile toggle button */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 4px;
    margin-left: auto;
}
.nav-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--white);
    border-radius: 1px;
    transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile breakpoint */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-h); left: 0; right: 0;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        gap: 0;
        padding: 1.5rem 0 2rem;
        border-bottom: 1px solid rgba(232, 88, 26, 0.2);
    }
    .nav-links.open { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a {
        display: block;
        padding: 1rem 2rem;
        font-size: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .nav-links .menu-item-cta a,
    a.nav-cta { margin: 1rem 2rem 0; display: block; text-align: center; }
}


/* ============================================================
   SECTION 6: SHARED SECTION STYLES & UTILITIES
   ============================================================ */
.cfc-section {
    padding: var(--section-pad) clamp(1.5rem, 4vw, 3rem);
    max-width: var(--max-w);
    margin: 0 auto;
}

.section-eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--orange);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.2rem;
}
.section-eyebrow::before {
    content: '';
    display: block;
    width: 28px; height: 1px;
    background: var(--orange);
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 0.95;
    letter-spacing: 0.02em;
    color: var(--white);
    margin-bottom: 1.5rem;
}
.section-heading em {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--orange);
}

.section-body {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    font-weight: 300;
    line-height: 1.8;
    color: var(--silver-light);
    max-width: 540px;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 32px;
    background: var(--orange);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius);
    border: none;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
    background: var(--orange-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(232, 88, 26, 0.35);
    color: var(--white);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: var(--silver-light);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.btn-ghost:hover {
    color: var(--white);
    border-color: rgba(232, 88, 26, 0.5);
    background: rgba(232, 88, 26, 0.06);
}

/* Keyframes */
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    to { opacity: 1; }
}
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes gridShift {
    0%   { background-position: 0 0; }
    100% { background-position: 80px 80px; }
}
@keyframes scrollLine {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50%       { transform: scaleY(0.5); opacity: 0.5; }
}
@keyframes orbFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-30px) scale(1.08); }
}
@keyframes lineGrow {
    from { transform: scaleX(0); transform-origin: left; }
    to   { transform: scaleX(1); transform-origin: left; }
}


/* ============================================================
   SECTION 7: HERO
   ============================================================ */
.cfc-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-h);
}

.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 60% 55% at 72% 45%, rgba(232, 88, 26, 0.14) 0%, transparent 65%),
        radial-gradient(ellipse 40% 40% at 20% 80%, rgba(200, 67, 14, 0.09) 0%, transparent 60%),
        var(--black);
    z-index: 0;
}
.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(232, 88, 26, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232, 88, 26, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: 0;
    animation: gridShift 18s linear infinite;
}
.hero-content {
    position: relative; z-index: 1;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 4vw, 3rem);
    width: 100%;
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 11px; font-weight: 500;
    letter-spacing: 0.28em; text-transform: uppercase;
    color: var(--orange); margin-bottom: 1.5rem;
    opacity: 0; transform: translateY(20px);
    animation: fadeUp 0.7s 0.2s forwards;
}
.hero-eyebrow::before {
    content: ''; display: block;
    width: 32px; height: 1px; background: var(--orange);
}
.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(4.5rem, 11vw, 10.5rem);
    line-height: 0.92; letter-spacing: 0.01em;
    color: var(--white); margin-bottom: 0.15em;
    opacity: 0; transform: translateY(30px);
    animation: fadeUp 0.75s 0.4s forwards;
}
.hero-headline span { color: var(--orange); display: inline-block; position: relative; }
.hero-headline span::after {
    content: ''; position: absolute;
    bottom: 4px; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--orange), transparent);
    animation: lineGrow 1.2s 1.1s both;
}
.hero-sub {
    font-family: var(--font-serif); font-style: italic;
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    color: var(--silver-light); max-width: 580px;
    line-height: 1.35; margin-bottom: 3rem;
    opacity: 0; transform: translateY(20px);
    animation: fadeUp 0.7s 0.65s forwards;
}
.hero-tagline {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem); font-weight: 300;
    color: var(--silver-mid); max-width: 460px;
    line-height: 1.7; margin-bottom: 2.5rem;
    opacity: 0; transform: translateY(20px);
    animation: fadeUp 0.7s 0.85s forwards;
}
.hero-actions {
    display: flex; align-items: center;
    gap: 1.5rem; flex-wrap: wrap;
    opacity: 0; transform: translateY(20px);
    animation: fadeUp 0.7s 1.05s forwards;
}
.hero-stats {
    position: absolute; bottom: 0; right: 0;
    display: flex;
    opacity: 0; animation: fadeIn 0.8s 1.3s forwards;
}
.hero-stat {
    padding: 1.25rem 2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
}
.hero-stat-num {
    font-family: var(--font-display); font-size: 2rem;
    letter-spacing: 0.04em; color: var(--orange); display: block;
}
.hero-stat-label {
    font-size: 10px; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--silver-mid);
}
.hero-scroll {
    position: absolute; bottom: 2.5rem;
    left: clamp(1.5rem, 4vw, 3rem);
    display: flex; align-items: center; gap: 10px;
    font-size: 11px; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--silver-mid);
    opacity: 0; animation: fadeIn 1s 1.5s forwards;
}
.hero-scroll-line {
    width: 1px; height: 44px;
    background: linear-gradient(to bottom, var(--orange), transparent);
    animation: scrollLine 2s 2s ease-in-out infinite;
}
@media (max-width: 640px) {
    .hero-stats { display: none; }
}


/* ============================================================
   SECTION 8: MARQUEE BAND
   ============================================================ */
.marquee-band {
    background: var(--orange);
    padding: 13px 0; overflow: hidden;
}
.marquee-track {
    display: flex; gap: 0;
    animation: marquee 22s linear infinite;
    white-space: nowrap;
}
.marquee-track span {
    font-family: var(--font-display); font-size: 15px;
    letter-spacing: 0.18em; color: var(--white);
    padding: 0 2.5rem; opacity: 0.9;
}
.marquee-track .sep { color: rgba(255, 255, 255, 0.35); padding: 0; }


/* ============================================================
   SECTION 9: SERVICE CARDS
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    overflow: hidden;
}
.service-card {
    background: var(--near-black);
    padding: clamp(1.75rem, 3vw, 2.5rem);
    position: relative; overflow: hidden;
    transition: background var(--transition);
    display: flex; flex-direction: column; gap: 1rem;
}
.service-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(232, 88, 26, 0.07) 0%, transparent 60%);
    opacity: 0; transition: opacity var(--transition);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover { background: rgba(232, 88, 26, 0.03); }
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .services-grid { grid-template-columns: 1fr; } }


/* ============================================================
   SECTION 10: TESTIMONIALS
   ============================================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem; margin-top: 3rem;
}
.testimonial-card {
    background: var(--black);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex; flex-direction: column; gap: 1.2rem;
    transition: border-color var(--transition), transform var(--transition);
}
.testimonial-card:hover {
    border-color: rgba(232, 88, 26, 0.25);
    transform: translateY(-4px);
}
@media (max-width: 860px) { .testimonials-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .testimonials-grid { grid-template-columns: 1fr; } }


/* ============================================================
   SECTION 11: CONTACT FORM
   ============================================================ */
.form-input, .form-textarea, .form-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 14px; color: var(--white);
    outline: none;
    transition: border-color var(--transition), background var(--transition);
    appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--silver-dark); }
.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: var(--orange);
    background: rgba(232, 88, 26, 0.04);
}
.form-textarea { min-height: 130px; resize: vertical; }


/* ============================================================
   SECTION 12: FOOTER
   ============================================================ */
#site-footer { background: var(--near-black); border-top: 1px solid rgba(255, 255, 255, 0.06); }
.footer-upper {
    max-width: var(--max-w); margin: 0 auto;
    padding: 4rem clamp(1.5rem, 4vw, 3rem) 3rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-links a {
    text-decoration: none; font-size: 13px;
    font-weight: 300; color: var(--silver-mid);
    transition: color var(--transition), padding-left var(--transition);
}
.footer-links a:hover { color: var(--orange-light); padding-left: 4px; }
.footer-lower {
    max-width: var(--max-w); margin: 0 auto;
    padding: 1.5rem clamp(1.5rem, 4vw, 3rem);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex; align-items: center;
    justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.footer-copy { font-size: 12px; font-weight: 300; color: var(--silver-dark); letter-spacing: 0.06em; }
.footer-copy a { color: var(--orange); text-decoration: none; }
@media (max-width: 900px) { .footer-upper { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) {
    .footer-upper { grid-template-columns: 1fr; gap: 2rem; }
    .footer-lower { flex-direction: column; text-align: center; }
}


/* ============================================================
   SECTION 13: ELEMENTOR OVERRIDES
   These ensure Elementor Pro does not conflict with theme styles.
   ============================================================ */
.elementor-section.elementor-section-full_width > .elementor-container {
    max-width: 100%;
}
.elementor-widget-wrap {
    font-family: var(--font-body);
}
/* Override Elementor heading colors to match brand */
.elementor-widget-heading .elementor-heading-title {
    font-family: var(--font-display);
    line-height: 0.95;
}
/* Ensure Elementor buttons use brand styles */
.elementor-button {
    font-family: var(--font-body) !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    border-radius: var(--radius) !important;
}


/* ============================================================
   SECTION 14: WORDPRESS CORE OVERRIDES
   Normalizes WordPress-injected classes.
   ============================================================ */
.wp-block-image { margin: 2rem 0; }
.wp-block-image img { border-radius: var(--radius); }
.alignwide { max-width: calc(var(--max-w) + 200px); margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100%; }

/* WordPress menu active state */
.nav-links .current-menu-item > a,
.nav-links .current-page-ancestor > a { color: var(--white); }
.nav-links .current-menu-item > a::after,
.nav-links .current-page-ancestor > a::after { width: 100%; }
