* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    transition: 0.4s;
}


/* THEMES */

:root {
    --features-bg-light: #f1f5f9;
    --features-bg-dark: #1e293b;
    --bg: #f7f9fc;
    --text: #1e293b;
    --card: #ffffff;
    --nav: #ffffff;
    --primary: #2563eb;
}

.dark-mode {
    --features-bg-light: #1e293b;
    --features-bg-dark: #0f172a;
    --bg: #0f172a;
    --text: #e2e8f0;
    --card: #1e293b;
    --nav: #020617;
    --primary: #3b82f6;
}

body {
    background: var(--bg);
    color: var(--text);
}

body.dark-mode .video-hero {
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

body.dark-mode .contact-card {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}


/* Example: If your body gets a class like .light-mode when in light mode */

body.light-mode .demo-features h2,
body.light-mode .feature-card h3 {
    color: #222222;
    /* Dark text for light mode */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.fmpro-heading {
    width: 100%;
    text-align: center;
    font-size: 42px;
    margin-bottom: 40px;
}

@media (min-width: 1260px) {
    .fmpro-heading {
        white-space: nowrap;
    }
}


/* HEADER */


/* CSS to make header and footer always dark */


/* header,
footer {
  background-color: #121212 !important;
  color: #f0f0f0 !important;
}

header a,
footer a {
  color: #f0f0f0 !important;
}

header a:hover,
footer a:hover {
  color: #f0f0f0 !important;
} */

header {
    background: var(--nav);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}


/* LOGO CONTAINER */

.logo {
    background: var(--primary);
    padding: 8px 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* LOGO IMAGE */

.logo img {
    height: 42px;
    width: auto;
    display: block;
}

nav {
    display: flex;
    align-items: center;
    gap: 25px;
    z-index: 1000;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
}

.btn {
    background: var(--primary);
    color: white;
    padding: 12px 28px;
    /* Adjusted for form button */
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    display: inline-block;
    text-align: center;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #1d4ed8;
    /* Slightly darker on hover */
}


/* FMPRO */

.fmpro {
    padding: 100px 0;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    align-items: center;
}

.fmpro-text {
    flex: 1;
}

.fmpro-text h1 {
    font-size: 46px;
    margin-bottom: 20px;
}

.fmpro-text p {
    margin-bottom: 35px;
    font-size: 18px;
    line-height: 1.6;
}


/* CAROUSEL */

.fmpro-carousel {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 420px;
}


/* slides */

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}


/* active slide */

.slide.active {
    opacity: 1;
    z-index: 1;
}


/* images */

.slide img {
    padding: 10px;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f1f5f9;
    /* matches your theme */
}


/* DEMO */

.demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 80px 0;
}

.demo-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--card);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: 0.25s;
}

.feature-card h3 {
    text-align: center;
    font-size: 18px;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-card>img {
    width: 45px;
    height: 45px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}


/* FEATURES */


/* General Styling for "Why FM Pro" and "FM Pro Centralizes Critical Data" Sections */

.features,
.capabilities {
    padding: 60px 0;
    text-align: center;
}

.features h2,
.capabilities h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--text);
}

.feature-list,
.capabilities-wrapper {
    display: grid;
    gap: 30px;
    padding: 0 20px;
}

.feature-list li {
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    opacity: 0.85;
}

.icon {
    margin-right: 10px;
    font-size: 22px;
    color: var(--primary);
}


/* Responsive Grid Layout for Feature List */

@media (max-width: 768px) {
    .feature-list {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
}


/* Capabilities Section */

.capabilities-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.capability-item {
    background: var(--card);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.capability-item strong {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary);
}

.capability-item p {
    color: var(--text);
    opacity: 0.85;
    font-size: 15px;
}


/* Responsive Layout for "FM Pro Centralizes Critical Data" */

@media (max-width: 768px) {
    .capabilities-wrapper {
        grid-template-columns: 1fr 1fr;
    }
    .capability-item {
        padding: 15px;
    }
}


/* REVIEWS */

.reviews {
    background: var(--card);
    padding: 80px 0;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.review {
    background: var(--bg);
    padding: 25px;
    border-radius: 10px;
}


/* CONTACT */

.contact {
    padding: 80px 0;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.contact-form textarea {
    grid-column: span 2;
}

.contact-form button {
    grid-column: span 2;
    width: 200px;
}


/* FOOTER */

footer {
    background: var(--nav);
    padding: 60px 0;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-grid a {
    display: block;
    margin-top: 8px;
    text-decoration: none;
    color: var(--text);
}

footer p {
    margin-top: 20px;
    text-align: center;
}


/* THEME SWITCHER */

.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 50px;
}

.theme-switch .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    border-radius: 50px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
}


/* When checked, move the slider */

.theme-switch input:checked+.slider {
    background-color: #2563eb;
}

.theme-switch input:checked+.slider:before {
    transform: translateX(26px);
}


/* Dark Mode Style */

body.dark-mode .theme-switch input:checked+.slider {
    background-color: #3b82f6;
}

body.dark-mode .theme-switch input:checked+.slider:before {
    transform: translateX(26px);
}


/* Responsiveness */

@media (max-width: 768px) {
    .theme-switch {
        width: 50px;
        height: 28px;
    }
    .theme-switch .slider:before {
        height: 22px;
        width: 22px;
    }
}


/* HAMBURGER */

#hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1100;
}

#hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text);
}


/* MOBILE */

@media (max-width: 768px) {
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        background: var(--nav);
        flex-direction: column;
        padding: 80px 20px;
        transition: 0.3s;
    }
    nav.active {
        right: 0;
    }
    #hamburger {
        display: flex;
    }
    .fmpro {
        flex-direction: column;
        text-align: center;
    }
    .demo {
        grid-template-columns: 1fr;
    }
    .demo-features {
        grid-template-columns: 1fr;
    }
    .contact-form {
        grid-template-columns: 1fr;
    }
}


/* CONTACT SECTION */

.contact-section {
    padding: 90px 0;
    background: var(--card);
}

.contact-wrapper {
    max-width: 900px;
    margin: auto;
}

.contact-intro {
    text-align: center;
    margin-bottom: 40px;
}

.contact-intro h2 {
    font-size: 34px;
    margin-bottom: 10px;
}

.contact-intro p {
    color: var(--text);
    opacity: 0.75;
    line-height: 1.6;
    max-width: 650px;
    margin: auto;
}


/* FORM CARD */

.contact-form {
    background: var(--bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}


/* GRID */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}


/* GROUP */

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full {
    grid-column: span 2;
}


/* LABEL */

.form-group label {
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 500;
}


/* INPUT */

.form-group input,
.form-group textarea {
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 15px;
    font-family: inherit;
    background: white;
    transition: all 0.2s;
}


/* FOCUS EFFECT */

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}


/* BUTTON */

.contact-btn {
    margin-top: 20px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 15px;
}


/* NOTE */

.form-note {
    margin-top: 15px;
    font-size: 13px;
    color: #64748b;
}


/* HONEYPOT FIELD */

.hidden-field {
    display: none;
}


/* MOBILE */

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-group.full {
        grid-column: span 1;
    }
    .contact-form {
        padding: 30px 25px;
    }
}

.demo-video-card {
    position: relative;
    background: var(--card);
    padding: 15px;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.demo-video-card iframe {
    border-radius: 10px;
}


/* Badge */

.video-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--primary);
    color: #fff;
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.required {
    color: #ef4444;
    margin-left: 3px;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.support-side h3 {
    margin-bottom: 15px;
}

.support-side p {
    margin-bottom: 15px;
    color: var(--text);
    opacity: 0.85;
}

.support-cards {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.support-card {
    background: var(--bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 120%;
    left: 0;
    background: var(--card);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: 0.3s;
}

.dropdown-menu a {
    display: block;
    padding: 8px 12px;
    white-space: nowrap;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.split-demo {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: stretch;
}

@media (max-width: 768px) {
    .split-demo {
        grid-template-columns: 1fr;
    }
    .video-card iframe {
        height: 220px;
    }
    .video-hero {
        padding: 25px;
    }
}

.video-hero {
    padding: 20px 20px 25px;
    /* reduced top padding */
    border-radius: 16px;
    background: linear-gradient(135deg, var(--card), var(--features-bg-light));
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* prevents vertical stretching */
    gap: 10px;
}


/* Title tighter */

.video-title {
    font-size: 24px;
    margin-bottom: 15px;
    /* reduced */
    margin-top: 0;
    /* remove extra space */
    line-height: 1.3;
}


/* Video tighter */

.video-card {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

.video-card iframe {
    width: 100%;
    height: 260px;
    /* reduced height */
}


/* CTA tighter */

.video-cta {
    margin-top: 5px;
}

.dark-contact {
    padding: 80px 0;
    background: var(--bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}


/* CARD */

.contact-card {
    background: var(--card);
    padding: 35px;
    border-radius: 16px;
    color: var(--text);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}


/* HEADINGS */

.contact-card h2 {
    font-size: 32px;
    margin-bottom: 25px;
}


/* LABELS */

.contact-card label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--text);
}


/* INPUTS */

.contact-card input,
.contact-card textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: var(--bg);
    color: var(--text);
}

.contact-card input:focus,
.contact-card textarea:focus {
    outline: none;
    border-color: var(--primary);
}


/* ROWS */

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}


/* BUTTON */

.submit-btn {
    background: #f97316;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: block;
    margin-left: auto;
    /* RIGHT ALIGN */
}

.submit-btn {
    transition: all 0.25s ease;
}

.submit-btn:hover {
    background: #ea580c;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.submit-btn:active {
    transform: scale(0.97);
}


/* REQUIRED */

.required {
    color: red;
}


/* RIGHT SIDE TEXT */

.contact-card p {
    color: var(--text);
    opacity: 0.85;
}


/* CENTER TEXT */

.center-text {
    text-align: center;
    margin: 30px 0 20px;
}


/* ICON GRID */

.support-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}


/* ICONS */

.support-item .icon {
    font-size: 32px;
    margin-bottom: 10px;
}


/* SUBTEXT */

.support-item p {
    font-size: 14px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .support-icons {
        grid-template-columns: 1fr;
    }
}


/* Base dropdown menu */

.dropdown-menu {
    opacity: 0;
    /* invisible by default */
    visibility: hidden;
    /* hide from layout */
    position: absolute;
    top: 100%;
    /* just below parent */
    left: 0;
    background: var(--card);
    /* background: black; */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    min-width: 200px;
    padding: 10px 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
    /* small move down */
    z-index: 1000;
}


/* Show dropdown on hover */

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* Dropdown links */

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text);
    text-decoration: none;
    transition: background 0.3s;
}


/* .dropdown-menu a:hover {
  background: var(--features-bg-dark);
} */

.page-content {
    text-align: center;
    padding-top: 40px;
    /* accounts for sticky header */
}

.popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
}

.popup.success {
    background: #28a745;
}

.popup.error {
    background: #dc3545;
}

.popup.show {
    opacity: 1;
    transform: translateY(0);
}

.footer-contact {
    text-align: left;
}

.no-wrap {
    white-space: nowrap;
}

@media (max-width: 480px) {
    .no-wrap {
        white-space: normal;
    }
}

.footer-grid>div:first-child {
    text-align: left;
}

.footer-grid>div:first-child p {
    text-align: left;
}

.no-wrap a {
    white-space: nowrap;
}

.no-wrap {
    white-space: nowrap;
    display: inline-block;
}