/* ============================================================
   Fandelay Industries — Main Stylesheet
   ============================================================ */

:root {
    --fdi-bg: #ffffff;
    --fdi-bg-elevated: #f5f6f8;
    --fdi-bg-card: #ffffff;
    --fdi-text: #1a1a2e;
    --fdi-text-muted: #5c5c6d;
    --fdi-accent-blue: #107db7;
    --fdi-accent-blue-hover: #0e6ba3;
    --fdi-accent-red: #be262f;
    --fdi-accent-red-hover: #a82029;
    --fdi-border: rgba(0, 0, 0, 0.08);
    --fdi-border-heavy: rgba(0, 0, 0, 0.12);
    --fdi-radius: 12px;
    --fdi-radius-sm: 8px;
    --fdi-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --fdi-max-width: 1200px;
    --fdi-header-height: 72px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--fdi-font);
    background: var(--fdi-bg);
    color: var(--fdi-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--fdi-accent-blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--fdi-accent-blue-hover); }

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

/* Container */
.fdi-container {
    max-width: var(--fdi-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   Header
   ============================================================ */

.fdi-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--fdi-border);
    height: var(--fdi-header-height);
}

.fdi-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--fdi-header-height);
}

.fdi-header__nav {
    display: flex;
    align-items: center;
    height: 100%;
}

.fdi-header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 0;
}

.fdi-header__logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--fdi-text);
    letter-spacing: -0.02em;
    line-height: 1;
}

.fdi-header__logo-img {
    height: 40px;
    width: auto;
    max-height: 40px;
    display: block;
}

.fdi-nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 0;
    padding: 0;
    height: 100%;
}

.fdi-nav-list li {
    display: flex;
    align-items: center;
    height: 100%;
}

.fdi-nav-list a {
    color: var(--fdi-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    line-height: 1;
    display: flex;
    align-items: center;
    height: 100%;
}

.fdi-nav-list a:hover { color: var(--fdi-text); }

/* Mobile Toggle */
.fdi-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.fdi-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--fdi-text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.fdi-mobile-nav {
    display: none;
    background: var(--fdi-bg);
    border-bottom: 1px solid var(--fdi-border);
}

.fdi-mobile-nav__list {
    list-style: none;
    padding: 16px 24px;
}

.fdi-mobile-nav__list li { padding: 12px 0; border-bottom: 1px solid var(--fdi-border); }
.fdi-mobile-nav__list li:last-child { border-bottom: none; }
.fdi-mobile-nav__list a { color: var(--fdi-text); font-size: 1rem; font-weight: 500; }

@media (max-width: 768px) {
    .fdi-header__nav { display: none; }
    .fdi-mobile-toggle { display: flex; }
    .fdi-mobile-nav.is-open { display: block; }
}

/* ============================================================
   Site Content Spacer
   ============================================================ */

.fdi-site-content { padding-top: var(--fdi-header-height); }

/* ============================================================
   Buttons
   ============================================================ */

.fdi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--fdi-radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    text-decoration: none;
}

.fdi-btn--primary {
    background: var(--fdi-accent-blue);
    color: #ffffff;
}

.fdi-btn--primary:hover {
    background: var(--fdi-accent-blue-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(16, 125, 183, 0.25);
}

.fdi-btn--outline {
    background: var(--fdi-accent-red);
    color: #ffffff;
    border-color: var(--fdi-accent-red);
}

.fdi-btn--outline:hover {
    background: var(--fdi-accent-red-hover);
    border-color: var(--fdi-accent-red-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(190, 38, 47, 0.25);
}

.fdi-btn--secondary {
    background: var(--fdi-bg);
    color: var(--fdi-text);
    border-color: var(--fdi-border-heavy);
}

.fdi-btn--secondary:hover {
    border-color: var(--fdi-accent-blue);
    color: var(--fdi-accent-blue);
}

.fdi-btn--lg { padding: 18px 48px; font-size: 1.05rem; }

/* ============================================================
   Hero
   ============================================================ */

.fdi-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.fdi-hero__bg {
    position: absolute;
    inset: 0;
    background: url('/wp-content/uploads/2026/07/grass_bg.jpg') center/cover no-repeat fixed;
    z-index: 0;
}

.fdi-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.50);
}

.fdi-hero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 120px 24px 80px;
}

.fdi-hero__app-logo {
    width: 300px;
    height: auto;
    margin: 0 auto 32px;
    display: block;
    transform: translateX(-8px);
}

.fdi-hero__eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #ffffff;
    margin-bottom: 20px;
}

.fdi-hero__subtitle {
    font-size: 1.2rem;
    color: #ffffff;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.fdi-desktop-br { display: inline; }

@media (max-width: 768px) {
    .fdi-desktop-br { display: none; }
}

.fdi-hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.fdi-hero__coming-soon {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.03em;
}

/* ============================================================
   Section Headings
   ============================================================ */

.fdi-section-heading {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 12px;
    color: var(--fdi-text);
}

.fdi-section-heading--left { text-align: left; }

.fdi-section-subheading {
    font-size: 1.1rem;
    color: var(--fdi-text-muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 56px;
}

/* ============================================================
   Features
   ============================================================ */

.fdi-features {
    padding: 100px 0;
    background: var(--fdi-bg);
}

.fdi-features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.fdi-feature-card {
    background: var(--fdi-bg-card);
    border: 1px solid var(--fdi-border);
    border-radius: var(--fdi-radius);
    padding: 40px 32px;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.fdi-feature-card:hover {
    border-color: rgba(16, 125, 183, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.fdi-feature-card__icon {
    font-size: 2rem;
    margin-bottom: 20px;
}

.fdi-feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--fdi-text);
}

.fdi-feature-card p {
    font-size: 0.95rem;
    color: var(--fdi-text-muted);
    line-height: 1.6;
}

/* ============================================================
   About Preview
   ============================================================ */

.fdi-about-preview {
    padding: 100px 0;
    background: var(--fdi-bg-elevated);
}

.fdi-about-preview__inner { max-width: 740px; }

.fdi-about-preview__text p {
    font-size: 1.1rem;
    color: var(--fdi-text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.fdi-about-preview__text .fdi-btn { margin-top: 12px; }

/* ============================================================
   CTA
   ============================================================ */

.fdi-cta {
    padding: 100px 0;
    background: var(--fdi-bg);
}

.fdi-cta__inner {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.fdi-cta__inner h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    color: var(--fdi-text);
}

.fdi-cta__inner p {
    font-size: 1.1rem;
    color: var(--fdi-text-muted);
    margin-bottom: 36px;
    line-height: 1.7;
}

/* ============================================================
   Generic Pages (About, Contact)
   ============================================================ */

.fdi-page {
    padding: 80px 0 100px;
    min-height: 60vh;
}

.fdi-page__inner { max-width: 800px; }

.fdi-page__title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--fdi-border);
    color: var(--fdi-text);
}

.fdi-page__content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--fdi-text-muted);
}

.fdi-page__content h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--fdi-text);
    margin: 48px 0 16px;
}

.fdi-page__content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--fdi-text);
    margin: 36px 0 12px;
}

.fdi-page__content p { margin-bottom: 20px; }

.fdi-page__content a { color: var(--fdi-accent-blue); }
.fdi-page__content a:hover { color: var(--fdi-accent-blue-hover); text-decoration: underline; }

.fdi-page__content ul, .fdi-page__content ol {
    margin: 16px 0 24px 24px;
}

.fdi-page__content li { margin-bottom: 8px; }

/* ============================================================
   Footer — stays dark to anchor the page
   ============================================================ */

.fdi-footer {
    background: #107db7;
    border-top: none;
    padding: 64px 0 32px;
    color: #ffffff;
}

.fdi-footer__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
}

.fdi-footer__brand { flex: 1 1 300px; }

.fdi-footer__logo-img {
    height: 200px;
    width: auto;
    margin-bottom: 12px;
}

.fdi-footer__name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    display: block;
    margin-bottom: 8px;
}

.fdi-footer__tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.fdi-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    flex: 1 1 auto;
}

.fdi-footer__col h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff;
    margin-bottom: 16px;
}

.fdi-footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fdi-footer__col li { margin-bottom: 10px; }

.fdi-footer__col a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.fdi-footer__col a:hover { color: #ffffff; }

.fdi-footer__bottom {
    width: 100%;
    padding-top: 32px;
    margin-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.fdi-footer__bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 768px) {
    .fdi-hero__inner { padding: 80px 16px 60px; }
    .fdi-hero__app-logo { width: 200px; }
    .fdi-hero__subtitle { font-size: 1.05rem; }
    .fdi-features, .fdi-about-preview, .fdi-cta { padding: 64px 0; }
    .fdi-section-heading { font-size: 1.8rem; }
    .fdi-cta__inner h2 { font-size: 2rem; }
    .fdi-page__title { font-size: 2rem; }
    .fdi-footer__inner { flex-direction: column; gap: 32px; }
    .fdi-footer__links { gap: 32px; }
}

/* ============================================================
   GeneratePress Overrides — hide parent theme defaults
   ============================================================ */

.site-header,
.site-footer,
.main-navigation,
#page > .site-content > .content-area,
.sidebar { display: none !important; }

.site { background: var(--fdi-bg); }
