/* =========================================================
   FREEDOM TECHNOLOGIES
   HOME PAGE CSS
========================================================= */

:root {
    --primary: #0757a0;
    --primary-dark: #062d5b;
    --secondary: #0b1933;
    --accent: #b7df35;

    --text: #17233c;
    --text-light: #667085;

    --white: #ffffff;
    --light: #f5f8fc;
    --border: #e3e8ef;

    --shadow: 0 10px 35px rgba(8, 34, 68, 0.10);

    --radius: 12px;

    --container: 1200px;
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Barlow", Arial, sans-serif;
    color: var(--text);
    background: #ffffff;
    line-height: 1.6;
}

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

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

button {
    font-family: inherit;
}


/* =========================================================
   CONTAINER
========================================================= */

.container {
    width: min(92%, var(--container));
    margin: auto;
}


/* =========================================================
   HEADER
========================================================= */

.header {
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: .3s;
}

.header.scrolled {
    box-shadow: 0 5px 25px rgba(0, 0, 0, .10);
    border-bottom-color: var(--border);
}

.nav-container {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}


/* LOGO */

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary);
}

.logo-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #0b8bdd);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 25px;
    font-weight: 800;
}

.logo strong {
    display: block;
    font-size: 21px;
    line-height: 1;
}

.logo small {
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
}


/* NAVIGATION */

.navbar {
    display: flex;
    align-items: center;
    gap: 25px;
}

.navbar a {
    font-size: 15px;
    font-weight: 600;
    position: relative;
    padding: 28px 0;
    color: #29344b;
}

.navbar a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    left: 0;
    bottom: 20px;
    transition: .3s;
}

.navbar a:hover,
.navbar a.active {
    color: var(--primary);
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}


/* HEADER RIGHT */

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.phone {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
}

.header-btn {
    background: var(--primary);
    color: white;
    padding: 11px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: .3s;
}

.header-btn:hover {
    background: var(--primary-dark);
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: 720px;
    padding-top: 78px;
    position: relative;

    background:
        url("../images/hero.jpg")
        center/cover no-repeat;

    display: flex;
    align-items: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(3, 17, 42, .97) 0%,
            rgba(3, 17, 42, .88) 45%,
            rgba(3, 17, 42, .25) 100%
        );
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 720px;
    padding: 80px 0;
}

.hero-tag {
    display: inline-block;
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: clamp(45px, 6vw, 76px);
    line-height: 1.02;
    font-weight: 800;
    margin-bottom: 25px;
}

.hero h1 span {
    color: var(--accent);
    display: block;
}

.hero p {
    color: #e5edf8;
    font-size: 18px;
    max-width: 650px;
    margin-bottom: 35px;
}


/* BUTTONS */

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 25px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    transition: .3s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #0a72c9;
    transform: translateY(-2px);
}

.btn-outline {
    color: white;
    border: 1px solid rgba(255,255,255,.6);
}

.btn-outline:hover {
    background: white;
    color: var(--primary-dark);
}


/* HERO STATS */

.hero-stats {
    display: flex;
    margin-top: 55px;
    gap: 0;
}

.hero-stats div {
    padding: 0 30px;
    border-left: 1px solid rgba(255,255,255,.3);
}

.hero-stats div:first-child {
    padding-left: 0;
    border-left: none;
}

.hero-stats strong {
    display: block;
    color: var(--accent);
    font-size: 30px;
}

.hero-stats span {
    font-size: 13px;
    color: #dce5f0;
}


/* =========================================================
   SECTION
========================================================= */

.section {
    padding: 100px 0;
}

.section-label {
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
}

.section-heading {
    max-width: 700px;
    margin: 0 auto 50px;
    text-align: center;
}

.section-heading h2,
.about-content h2,
.why-content h2 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.1;
    margin-bottom: 15px;
    color: var(--secondary);
}

.section-heading h2 span,
.about-content h2 span,
.why-content h2 span {
    color: var(--primary);
}

.section-heading p {
    color: var(--text-light);
}


/* =========================================================
   ABOUT
========================================================= */

.about {
    background: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 15px;
}

.experience-box {
    position: absolute;
    bottom: 25px;
    right: -25px;
    background: var(--primary);
    color: white;
    padding: 20px 25px;
    border-radius: 10px;
    display: flex;
    gap: 12px;
    align-items: center;
    box-shadow: var(--shadow);
}

.experience-box strong {
    font-size: 40px;
    line-height: 1;
}

.experience-box span {
    font-size: 13px;
    line-height: 1.3;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.about-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 25px 0;
}

.about-points div {
    font-weight: 600;
}

.about-points span {
    color: #56a52d;
    margin-right: 7px;
}

.text-btn {
    color: var(--primary);
    font-weight: 700;
}


/* =========================================================
   PRODUCTS
========================================================= */

.products {
    background: var(--light);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,.05);
    transition: .35s;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.product-image {
    height: 220px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-info {
    padding: 25px;
    position: relative;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #eaf3fc;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    margin-bottom: 15px;
}

.product-info h3 {
    font-size: 21px;
    margin-bottom: 8px;
    color: var(--secondary);
}

.product-info p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.product-info a {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
}


/* =========================================================
   SOLUTIONS
========================================================= */

.solutions {
    background:
        linear-gradient(120deg, #061d3c, #0b4077);
    color: white;
}

.section-heading.light h2 {
    color: white;
}

.section-heading.light h2 span {
    color: var(--accent);
}

.section-heading.light p {
    color: #cad7e8;
}

.section-heading.light .section-label {
    color: var(--accent);
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.solution-card {
    padding: 30px;
    min-height: 270px;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.06);
    border-radius: 10px;
    transition: .3s;
}

.solution-card:hover {
    background: rgba(255,255,255,.12);
    transform: translateY(-5px);
}

.solution-number {
    color: var(--accent);
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 35px;
}

.solution-card h3 {
    font-size: 21px;
    margin-bottom: 12px;
}

.solution-card p {
    color: #cbd8e8;
    font-size: 14px;
    margin-bottom: 20px;
}

.solution-card a {
    color: var(--accent);
    font-weight: 700;
}


/* =========================================================
   SERVICES
========================================================= */

.services {
    background: white;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-box {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: .3s;
}

.service-box:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: #eaf3fc;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 27px;
    margin-bottom: 20px;
}

.service-box h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.service-box p {
    color: var(--text-light);
    font-size: 14px;
}


/* =========================================================
   WHY US
========================================================= */

.why-us {
    background: var(--light);
    padding: 90px 0;
}

.why-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.why-content p {
    color: var(--text-light);
    max-width: 500px;
}

.why-items {
    display: grid;
    gap: 15px;
}

.why-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-shadow: 0 3px 12px rgba(0,0,0,.04);
}

.why-item > span {
    color: var(--primary);
    font-weight: 800;
    font-size: 20px;
}

.why-item h3 {
    font-size: 18px;
    margin-bottom: 3px;
}

.why-item p {
    color: var(--text-light);
    font-size: 13px;
}


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

.cta-section {
    background: var(--primary);
    color: white;
    padding: 65px 0;
}

.cta-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-container > div:first-child {
    max-width: 650px;
}

.cta-container span {
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
}

.cta-container h2 {
    font-size: clamp(30px, 4vw, 45px);
    line-height: 1.1;
    margin: 10px 0;
}

.cta-container p {
    color: #dceaf7;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-white {
    background: white;
    color: var(--primary);
}

.btn-whatsapp {
    background: #20b95a;
    color: white;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    background: #06152d;
    color: white;
    padding-top: 70px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 50px;
    padding-bottom: 50px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 800;
}

.footer-logo span {
    color: var(--accent);
}

.footer-about p {
    color: #aebdd0;
    font-size: 14px;
    max-width: 350px;
    margin: 20px 0;
}

.social-links {
    display: flex;
    gap: 8px;
}

.social-links a {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column h3 {
    color: white;
    margin-bottom: 10px;
}

.footer-column a,
.footer-column p {
    color: #aebdd0;
    font-size: 14px;
}

.footer-column a:hover {
    color: var(--accent);
}

.copyright {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 20px 0;
    color: #8493a8;
    font-size: 13px;
}


/* =========================================================
   BACK TO TOP
========================================================= */

.back-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 6px;
    background: var(--primary);
    color: white;
    font-size: 22px;
    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transition: .3s;
    z-index: 900;
}

.back-top.show {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   TABLET
========================================================= */

@media(max-width: 1050px) {

    .navbar {
        gap: 15px;
    }

    .navbar a {
        font-size: 14px;
    }

    .phone {
        display: none;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .solution-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media(max-width: 768px) {

    .nav-container {
        min-height: 70px;
    }

    .navbar {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 30px;
        gap: 0;
        transition: .3s;
    }

    .navbar.show {
        left: 0;
    }

    .navbar a {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid var(--border);
    }

    .navbar a::after {
        display: none;
    }

    .header-btn {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .hero {
        min-height: 680px;
    }

    .hero-content {
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 45px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-stats {
        margin-top: 35px;
    }

    .hero-stats div {
        padding: 0 15px;
    }

    .hero-stats strong {
        font-size: 23px;
    }

    .hero-stats span {
        font-size: 11px;
    }

    .about-grid,
    .why-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .about-image img {
        height: 400px;
    }

    .experience-box {
        right: 15px;
    }

    .cta-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-buttons {
        flex-wrap: wrap;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media(max-width: 500px) {

    .section {
        padding: 70px 0;
    }

    .logo strong {
        font-size: 18px;
    }

    .logo small {
        font-size: 10px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .hero-stats div {
        border: none;
        padding: 0;
    }

    .product-grid,
    .solution-grid,
    .service-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .about-points {
        grid-template-columns: 1fr;
    }

    .about-image img {
        height: 320px;
    }

    .experience-box {
        padding: 15px;
    }

    .experience-box strong {
        font-size: 30px;
    }

    .cta-buttons {
        width: 100%;
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}