/*
Theme Name: Fylo
Theme URI: https://www.fylo.life
Author: Fylo
Author URI: https://www.fylo.life
Description: A flexible, Elementor-ready WordPress theme with a bold, modern aesthetic inspired by Fylo landing pages. Features a polished header, modular footer, and clean typography.
Version: 1.0.1
Tested up to: 6.6
Requires at least: 5.8
Requires PHP: 7.4
Text Domain: fylo
Tags: custom-background, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, threaded-comments, translation-ready, elementor
Support Email: fylo.life@gmail.com
Support Phone: +91-7997108777
*/

:root {
    --fylo-primary: #4dd7f5;
    --fylo-secondary: #7057ff;
    --fylo-dark: #0f172a;
    --fylo-midnight: #11183c;
    --fylo-text: #1b1d3a;
    --fylo-muted: rgba(24, 32, 70, 0.65);
    --fylo-border: rgba(15, 23, 42, 0.08);
    --fylo-light: #f8f9fc;
    --fylo-header-bg: #10152b;
    --fylo-header-bg-scrolled: #131c3b;
    --fylo-hero-bg: #1f2b53;
    --fylo-footer-bg: #0f172a;
    --fylo-topbar-bg: #0d1428;
}

.mobile-only {
    display: none;
}

@media (max-width: 980px) {
    .mobile-only {
        display: inline-flex;
    }

    .desktop-only {
        display: none;
    }

    .site-header .nav-holder .nav-inner:not(.is-open) {
        display: none !important;
    }
}

@media (min-width: 981px) {
    [data-nav-toggle] {
        display: none !important;
    }

    .site-header .nav-holder .nav-inner,
    .nav-search {
        display: flex !important;
    }

    .mobile-panel {
        display: none !important;
    }
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--fylo-text);
    background-color: var(--fylo-light);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover,
a:focus {
    color: var(--fylo-primary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Poppins", "Inter", sans-serif;
    color: var(--fylo-dark);
    line-height: 1.2;
    margin: 0 0 0.75em;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: min(1140px, 92vw);
    margin: 0 auto;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    background-color: var(--fylo-primary);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.03em;
    box-shadow: 0 18px 45px -18px rgba(64, 99, 255, 0.65);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    opacity: 0.9;
}

.section-hero {
    padding: 120px 0 110px;
    background-color: var(--fylo-hero-bg);
    color: #f2f6ff;
    border-bottom-left-radius: 48px;
    border-bottom-right-radius: 48px;
}

.section-hero h1 {
    font-size: clamp(2.75rem, 5vw, 3.75rem);
    margin-bottom: 1rem;
}

.section-hero p {
    color: rgba(238, 244, 255, 0.82);
    font-size: 1.05rem;
    max-width: 560px;
    margin-bottom: 2rem;
}

.fylo-card {
    background: #fff;
    border-radius: 26px;
    padding: 2.5rem;
    box-shadow: 0 42px 110px -45px rgba(22, 28, 63, 0.45);
}

.footer-widgets {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-widgets {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.site-footer {
    background-color: var(--fylo-footer-bg);
    color: rgba(255, 255, 255, 0.86);
}

.site-footer a:hover {
    color: #4dd7f5;
}

.site-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 3rem;
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .site-footer .footer-bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    background-color: var(--fylo-header-bg);
   transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.site-header.is-scrolled {
    background-color: var(--fylo-header-bg-scrolled);
    box-shadow: 0 18px 36px -22px rgba(15, 23, 42, 0.65);
}

.site-header .branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-header .brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background-color: var(--fylo-secondary);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.site-header .brand-text {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    color: #f8fbff;
    letter-spacing: 0.04em;
}

.site-header .brand-text span:last-child {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    opacity: 0.56;
}

.fylo-topbar {
    background-color: var(--fylo-topbar-bg);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
}

.fylo-topbar__inner {
    padding: 0.55rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.fylo-topbar__label {
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.56);
}

.fylo-topbar__social {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.fylo-topbar__social a {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.fylo-topbar__social a:hover,
.fylo-topbar__social a:focus-visible {
    background: var(--fylo-primary);
    color: #0f172a;
    transform: translateY(-2px);
    outline: none;
}

.site-header .nav-menu {
    display: flex;
    align-items: center;
    gap: 1.85rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-header .toggle {
    background: none;
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #f8fbff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.site-header .toggle:hover {
    background: rgba(255, 255, 255, 0.08);
}

.site-header .nav-holder {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1rem 0;
}

.desktop-only {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.75rem;
}

.desktop-search {
    display: flex;
    align-items: center;
    width: min(320px, 100%);
}

.desktop-search form {
    width: 100%;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0.2rem 0.75rem;
}

.desktop-search .search-field {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 0.55rem 0.5rem;
    font-size: 0.95rem;
}

.desktop-search .search-field::placeholder {
    color: rgba(255, 255, 255, 0.85);
}

.desktop-search .search-submit {
    border: none;
    background: var(--fylo-primary);
    color: #ffffff;
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.desktop-search .search-submit:hover,
.desktop-search .search-submit:focus-visible {
    opacity: 0.85;
    outline: none;
}

.mobile-panel {
    display: none;
    background: rgba(14, 20, 43, 0.95);
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    box-shadow: 0 28px 55px -25px rgba(7, 12, 31, 0.6);
    margin: 0;
}

@media (max-width: 980px) {
    .desktop-only {
        display: none;
    }

    .mobile-panel {
        display: none;
    }

    .mobile-panel.is-open {
        display: block;
    }

    .mobile-panel__inner {
        padding: 1.5rem;
        display: grid;
        gap: 1.5rem;
    }

    .mobile-menu {
        list-style: none;
        margin: 0;
        padding: 0;
        display: grid;
        gap: 1rem;
    }

    .mobile-menu > li > a {
        display: block;
        padding: 0.75rem 0;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.92);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mobile-menu > li:last-child > a {
        border-bottom: 0;
    }

    .mobile-search form {
        background: rgba(255, 255, 255, 0.12);
        border-radius: 999px;
        padding: 0.2rem 0.75rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .mobile-search .search-field {
        flex: 1;
        background: transparent;
        border: none;
        color: #ffffff;
        padding: 0.55rem 0.5rem;
    }

    .mobile-search .search-submit {
        border: none;
        background: var(--fylo-primary);
        color: #0f172a;
        border-radius: 999px;
        padding: 0.45rem 1rem;
        font-weight: 600;
        cursor: pointer;
    }
}

.social-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-links a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
}

.footer-widgets h2,
.footer-widgets h3 {
    font-size: 1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

.footer-widgets ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.footer-newsletter form {
    display: grid;
    gap: 0.75rem;
}

.footer-newsletter input[type="email"] {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    padding: 0.85rem 1rem;
    border-radius: 14px;
}

.footer-newsletter input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.footer-newsletter button {
    border: 0;
    cursor: pointer;
}

.footer-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.footer-meta a {
    color: rgba(255, 255, 255, 0.65);
}

.footer-meta a:hover {
    color: #4dd7f5;
}

.header-announcement {
    background-color: var(--fylo-primary);
    color: #0f172a;
    padding: 0.75rem 0;
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.header-announcement a {
    color: inherit;
    text-decoration: underline;
}

/* Elementor Compatibility */
.elementor-page .site-header,
.elementor-page .site-footer {
    max-width: none;
}

.elementor-template-full-width .site-content,
.elementor-page .site-content {
    margin: 0;
}

.site-content {
    padding: 3.5rem 0;
}

.widget {
    margin: 0 0 2.5rem;
}

.widget-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
