/*
Theme Name: Atom Solutions Theme
Theme URI: https://atomsolutions.com.br
Author: Atom Solutions
Description: Custom theme converted from HTML structure.
Version: 1.0
*/

:root {
    --primary-color: #0066cc;
    /* Trustworthy Blue */
    --secondary-color: #003366;
    /* Darker Blue */
    --accent-color: #00cc99;
    /* Vibrant Teal */
    --text-color: #333333;
    --bg-color: #ffffff;
    --light-bg: #f5f7fa;
    --border-color: #e0e0e0;
    --section-padding: 80px 0;
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}

.logo img {
    height: 80px;
    width: auto;
    vertical-align: middle;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.lang-switch button {
    background: none;
    border: 1px solid var(--border-color);
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 600;
    color: var(--secondary-color);
}

.lang-switch button.active {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: 800;
}

.hero .sub-headline {
    color: #666;
    font-size: 18px;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.hero .sub-headline span {
    position: relative;
}

.hero .sub-headline span:not(:last-child)::after {
    content: "|";
    margin-left: 15px;
    color: #ccc;
}

.btn-cta {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 18px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

/* Services */
.services {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: var(--secondary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: margin-top 0.3s;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    margin-top: -10px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.service-card p {
    color: #666;
    font-size: 15px;
}

/* Portfolio */
.portfolio {
    padding: var(--section-padding);
    background: var(--light-bg);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

.portfolio-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.portfolio-thumb {
    height: 200px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 14px;
}

.portfolio-info {
    padding: 20px;
}

.portfolio-info h4 {
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.portfolio-info span {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
}

/* Process */
.process {
    padding: var(--section-padding);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    text-align: center;
    flex: 1;
    min-width: 140px;
    position: relative;
    background: white;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: bold;
}

.step h4 {
    color: var(--text-color);
    margin-top: 15px;
    /* Add space between icon and text */
}

/* Process Icons */
.step-icon {
    width: 60px;
    height: 60px;
    margin: 15px auto;
}

.step-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--secondary-color);
    /* Atom Blue 047481 */
}

/* About */
.about {
    padding: var(--section-padding);
    background: var(--secondary-color);
    color: white;
    text-align: center;
}

.about p {
    font-size: 24px;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
}

/* FAQ */
.faq {
    padding: var(--section-padding);
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

.faq-question {
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    margin-top: 10px;
    color: #666;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Contact */
.contact {
    padding: var(--section-padding);
    background: var(--light-bg);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
}

.btn-submit {
    width: 100%;
    background: var(--secondary-color);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

/* Footer */
footer {
    background: #222;
    color: #999;
    padding: 40px 0;
    font-size: 14px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info {
    flex: 1;
}

.family-site {
    position: relative;
    width: 250px;
}

.family-site-btn {
    width: 100%;
    padding: 10px 15px;
    background: #333;
    color: #fff;
    border: 1px solid #444;
    cursor: pointer;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.family-site-btn:after {
    content: '▲';
    font-size: 10px;
}

.family-site-content {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    background: #333;
    border: 1px solid #444;
    border-bottom: none;
    z-index: 10;
}

.family-site-content.show {
    display: flex !important;
    flex-direction: column !important;
    min-width: 250px;
    background: #333;
}

.family-site-content a {
    display: block;
    width: 100%;
    /* Ensure it takes full width */
    padding: 10px 15px;
    color: #ccc;
    text-decoration: none;
    border-top: 1px solid #444;
    transition: background 0.2s;
    font-size: 13px;
    box-sizing: border-box;
    white-space: nowrap;
}

.family-site-content a:hover {
    background: #444;
    color: white;
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .family-site {
        width: 100%;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Mobile Menu logic would go here, simplified for this prototype */
    }

    .hero h1 {
        font-size: 32px;
    }

    .process-steps {
        flex-direction: row;
        /* Keep row direction */
        flex-wrap: wrap;
        /* Allow wrapping */
        gap: 15px;
        /* Reduce gap */
        justify-content: center;
        /* Center items */
    }

    .step {
        width: calc(50% - 15px);
        /* 2 items per row */
        margin-bottom: 10px;
        padding: 20px 10px;
        /* Reduce padding */
    }

    /* Make the last odd item centered if needed, or just let it align left */
    .step:last-child:nth-child(odd) {
        /* Optional: center the last item if it's alone */
        /* margin-left: auto; margin-right: auto; */
    }
}

/* Wrapper for Contact Plugins */
.contact-widget input[type="text"],
.contact-widget input[type="email"],
.contact-widget textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-widget input[type="submit"],
.contact-widget button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
}

.contact-widget input[type="submit"]:hover,
.contact-widget button:hover {
    background: #0052a3;
}

/* =========================================
   Global Animations & Design Enhancements
   ========================================= */

/* Scroll Reveal Base State */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Hero Section Animation */
.hero h1 {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero .sub-headline {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.hero .btn-cta {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

/* Service Icons */
.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 102, 204, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.service-icon svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

/* Process Icons */
.process-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.step {
    flex: 1;
    min-width: 150px;
    text-align: center;
    position: relative;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
}

.step-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    color: var(--primary-color);
}

.step-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.step-number {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    font-size: 14px;
    line-height: 25px;
    font-weight: bold;
}

/* Contact Icons */
.contact-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 10px;
    vertical-align: middle;
    color: var(--primary-color);
}

.contact-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* Enhanced Hover Effects */
.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.4);
}

.portfolio-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.portfolio-thumb img {
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-thumb img {
    transform: scale(1.05);
}