/*
Theme Name: Sarafluence Custom
Theme URI: https://sarafluence.in
Author: Sarafluence
Description: Custom coded theme for Sarafluence Digital Marketing Agency. White background, black text, red accent brand color.
Version: 1.0
*/

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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- HEADER ---------- */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background-color: #ffffff;
    border-bottom: 1px solid #eeeeee;
    max-width: 1200px;
    margin: 0 auto;
}

.site-header .logo {
    display: inline-flex;
    align-items: center;
}

.logo-img {
    height: 48px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.main-nav ul {
    display: flex;
    gap: 32px;
}

.main-nav a {
    font-weight: 600;
    color: #000000;
}

.main-nav a:hover {
    color: #e02020;
}

/* ---------- HERO ---------- */
.hero {
    background-color: #ffffff;
    padding: 80px 24px;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1 1 480px;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    color: #000000;
    margin-bottom: 20px;
}

.hero-text h1 .highlight {
    color: #e02020;
}

.hero-text p {
    font-size: 18px;
    color: #333333;
    margin-bottom: 32px;
    max-width: 520px;
}

.btn-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 700;
    border: 2px solid #e02020;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(224,32,32,0.25);
}

.btn-primary {
    background-color: #e02020;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #c81a1a;
}

.btn-secondary {
    background-color: #ffffff;
    color: #e02020;
}

.btn-secondary:hover {
    background-color: #fdeaea;
}

.hero {
    perspective: 1200px;
}

.hero-image {
    flex: 1 1 400px;
    transition: transform 0.2s ease-out;
    transform-style: preserve-3d;
}

.hero-image img,
.hero-image svg {
    border-radius: 12px;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.12));
}

/* ---------- SECTION GENERAL ---------- */
.section {
    padding: 80px 24px;
}

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

.section-header h2 {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 16px;
    color: #000000;
}

.section-header h2 .highlight {
    color: #e02020;
}

.section-header p {
    color: #555555;
    font-size: 16px;
}

.section-alt {
    background-color: #f8f8f8;
}

/* ---------- CARDS GRID ---------- */
.grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

.card {
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.10);
    border-color: #e02020;
}

.card .icon {
    font-size: 32px;
    margin-bottom: 16px;
    transition: transform 0.35s ease;
}

.card:hover .icon {
    transform: scale(1.15) rotate(-4deg);
}

.card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #000000;
}

.card p {
    color: #555555;
    font-size: 15px;
}

/* ---------- ABOUT ---------- */
.about-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 48px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.about-text {
    flex: 1 1 500px;
}

.about-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #000000;
}

.about-text p {
    color: #444444;
    margin-bottom: 16px;
}

.checklist {
    margin-top: 20px;
}

.checklist li {
    margin-bottom: 10px;
    font-weight: 600;
    color: #000000;
}

.checklist li::before {
    content: "✔ ";
    color: #e02020;
}

/* ---------- FAQ ---------- */
.faq-item {
    max-width: 800px;
    margin: 0 auto 16px auto;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    padding: 20px 24px;
}

.faq-item h3 {
    font-size: 18px;
    color: #000000;
    margin-bottom: 8px;
}

.faq-item p {
    color: #555555;
    font-size: 15px;
}

/* ---------- CTA ---------- */
.cta {
    background-color: #000000;
    color: #ffffff;
    text-align: center;
    padding: 80px 24px;
}

.cta h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.cta p {
    color: #dddddd;
    margin-bottom: 32px;
}

/* ---------- FOOTER ---------- */
.site-footer {
    background-color: #ffffff;
    border-top: 1px solid #eeeeee;
    padding: 60px 24px 24px 24px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-grid h4 {
    margin-bottom: 16px;
    color: #000000;
}

.footer-grid p, .footer-grid li, .footer-grid a {
    color: #555555;
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #eeeeee;
    color: #888888;
    font-size: 14px;
}

/* ---------- SCROLL REVEAL ANIMATIONS ---------- */
.reveal-init {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-init.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- FLOATING ICON ANIMATIONS (hero illustration) ---------- */
.float-slow {
    animation: floatY 4.5s ease-in-out infinite;
}

.float-med {
    animation: floatY 3.2s ease-in-out infinite;
}

.float-fast {
    animation: floatY 2.4s ease-in-out infinite;
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Fade/slide in for hero on page load */
.hero-text {
    animation: fadeInUp 0.9s ease both;
}

.hero-image {
    animation: fadeInUp 0.9s ease 0.15s both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Smooth nav link underline */
.main-nav a {
    position: relative;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: #e02020;
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* FAQ item hover */
.faq-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.faq-item:hover {
    transform: translateX(6px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
    border-color: #e02020;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        gap: 16px;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    .hero-text h1 {
        font-size: 32px;
    }
}
