/*
Theme Name:  Tomato Logics Light Theme
Theme URI:   https://tomatologics.com/
Author:      Tomato Logics Private Limited
Author URI:  https://tomatologics.com/
Description: A super lightweight, Elementor-first WordPress theme designed for speed and full design flexibility. No bloat, no unnecessary code — just a clean canvas for Elementor to shine.
Version:     2.9
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tomato-logics-light
Tags:        elementor, lightweight, full-width, minimal, fast, responsive
*/

/* ============================================================
   TABLE OF CONTENTS
   1. CSS Reset & Base
   2. Typography
   3. Layout & Structure
   4. Header
   5. Footer
   6. Welcome Screen (Default Homepage)
   7. Elementor Compatibility
   8. Utility Classes
   9. Responsive (Mobile-First)
   ============================================================ */


/* ============================================================
   1. CSS RESET & BASE
   — Removes browser inconsistencies for a clean slate
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif; /* Clean fallback — Elementor overrides this */
    font-size: 1rem;
    line-height: 1.7;
    color: #222222;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
    text-decoration: underline;
}

ul, ol {
    list-style: none;
}

/* ============================================================
   2. TYPOGRAPHY
   — Minimal, clean typographic scale
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.875rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.25rem;
}

p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   3. LAYOUT & STRUCTURE
   — Minimal wrapper — Elementor overrides most of this
   ============================================================ */
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   4. HEADER
   — Ultra-minimal: Elementor replaces this
   ============================================================ */
.site-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
    padding: 16px 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111111;
    text-decoration: none;
}

.site-title:hover {
    text-decoration: none;
    color: #e63c2f; /* Tomato red accent */
}

.site-description {
    font-size: 0.8rem;
    color: #888888;
    margin: 0;
    font-style: italic;
}

/* Custom Logo */
.custom-logo-link img {
    max-height: 50px;
    width: auto;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.main-navigation ul li a {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333333;
    transition: color 0.2s ease;
}

.main-navigation ul li a:hover {
    color: #e63c2f;
    text-decoration: none;
}

/* ============================================================
   5. FOOTER
   — Clean minimal footer
   ============================================================ */
.site-footer {
    width: 100%;
    background: #111111;
    color: #aaaaaa;
    text-align: center;
    padding: 28px 20px;
    font-size: 0.875rem;
    line-height: 1.6;
}

.site-footer a {
    color: #e63c2f;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #ffffff;
    text-decoration: none;
}

/* ============================================================
   6. WELCOME SCREEN (Default Homepage)
   — Shows when no page is built yet
   ============================================================ */
.tll-welcome-screen {
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

.tll-welcome-inner {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.tll-badge {
    display: inline-block;
    background: #e63c2f;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 28px;
}

.tll-welcome-heading {
    font-size: clamp(2.25rem, 6vw, 4rem);
    font-weight: 800;
    color: #111111;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.tll-welcome-subheading {
    font-size: clamp(1rem, 2.5vw, 1.375rem);
    font-weight: 600;
    color: #e63c2f;
    letter-spacing: 0.02em;
    margin-bottom: 24px;
}

.tll-welcome-description {
    font-size: clamp(0.95rem, 2vw, 1.125rem);
    color: #555555;
    line-height: 1.75;
    max-width: 620px;
    margin: 0 auto 40px;
}

.tll-welcome-btn {
    display: inline-block;
    background: #e63c2f;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 16px 40px;
    border-radius: 100px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 20px rgba(230, 60, 47, 0.3);
}

.tll-welcome-btn:hover {
    background: #c0312a;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(230, 60, 47, 0.4);
    text-decoration: none;
    color: #ffffff;
}

.tll-welcome-divider {
    width: 60px;
    height: 3px;
    background: #e63c2f;
    margin: 48px auto;
    border-radius: 2px;
    opacity: 0.3;
}

.tll-welcome-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 0;
}

.tll-feature-tag {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    color: #444444;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 100px;
}

/* ============================================================
   7. ELEMENTOR COMPATIBILITY
   — Critical rules so Elementor can take full control
   ============================================================ */

/* Remove max-width restrictions for full-width sections */
.elementor-section.elementor-section-stretched {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
}

/* Full-width page template */
.page-template-elementor_canvas .site-header,
.page-template-elementor_canvas .site-footer {
    display: none;
}

/* Elementor full-width template — keep header/footer visible */
.elementor-page-type-page .site-content {
    padding: 0;
}

/* Ensure Elementor containers are not constrained */
body.elementor-page .site-content,
body.elementor-page .content-area {
    max-width: none;
    width: 100%;
    padding: 0;
    margin: 0;
}

/* ============================================================
   8. UTILITY CLASSES
   ============================================================ */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }
.alignwide   { width: 100%; max-width: 1400px; margin-left: auto; margin-right: auto; }
.alignfull   { width: 100%; max-width: 100%; }

/* ============================================================
   9. RESPONSIVE (MOBILE-FIRST)
   ============================================================ */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-navigation ul {
        gap: 16px;
    }

    .tll-welcome-heading {
        font-size: 2rem;
    }

    .tll-welcome-btn {
        padding: 14px 32px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .tll-welcome-features {
        flex-direction: column;
        align-items: center;
    }
}
