/*
Theme Name: Fico Trading Professional
Version: 3.0
Author: Fico Trading
License: GPL2
Text Domain: fico-trading
Description: Professional WordPress theme with Elementor page builder support and SEO optimization
*/

/* ==================================================
   CSS VARIABLES & GLOBAL STYLES
   ================================================== */

:root {
    --primary-color: #0066CC;
    --primary-dark: #0052a3;
    --primary-light: #f0f8ff;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --gray: #f5f5f5;
    --gray-light: #f9f9f9;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 15px rgba(0,0,0,0.1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

/* ==================================================
   TYPOGRAPHY
   ================================================== */

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    margin: 25px 0 15px 0;
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin: 15px 0;
    line-height: 1.8;
    color: var(--text-dark);
}

strong {
    color: var(--primary-color);
    font-weight: 700;
}

em {
    font-style: italic;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ==================================================
   HEADER & NAVIGATION
   ================================================== */

header {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.header-top h1 {
    margin: 0;
    font-size: 28px;
    color: white;
    font-weight: 700;
}

.header-top p {
    margin: 0;
    font-size: 14px;
    opacity: 0.95;
    color: white;
}

nav {
    background-color: var(--primary-dark);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    padding: 14px 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

nav a:hover {
    background-color: #003d7a;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* ==================================================
   MAIN CONTENT & CONTAINERS
   ================================================== */

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

main {
    min-height: calc(100vh - 300px);
    padding: 40px 20px;
}

.page-title {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 2.5rem;
    text-align: center;
}

section {
    margin: 40px 0;
    padding: 30px 0;
}

.section-light {
    background-color: var(--primary-light);
    padding: 60px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ==================================================
   BUTTONS & FORMS
   ================================================== */

button,
.button,
a.button,
input[type="submit"],
input[type="button"] {
    background-color: var(--primary-color);
    color: white;
    padding: 14px 35px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
}

button:hover,
.button:hover,
a.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
    transform: translateY(-2px);
}

button:active,
.button:active {
    transform: translateY(0);
}

.button-secondary {
    background-color: var(--text-light);
    color: white;
}

.button-secondary:hover {
    background-color: var(--text-dark);
}

.button-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* ==================================================
   FORMS
   ================================================== */

form {
    max-width: 600px;
    margin: 30px 0;
}

label {
    display: block;
    margin: 15px 0 5px 0;
    color: var(--text-dark);
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="phone"],
input[type="number"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    margin: 0 0 15px 0;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: var(--white);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(0, 102, 204, 0.2);
    background-color: var(--primary-light);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

input[type="checkbox"],
input[type="radio"] {
    margin-right: 8px;
}

/* ==================================================
   LISTS
   ================================================== */

ul, ol {
    margin: 20px 0 20px 30px;
}

li {
    margin: 10px 0;
    line-height: 1.8;
}

/* Tick marks only for page content areas, not navigation or UI lists */
.entry-content ul li:before,
.page-content ul li:before,
article ul li:before {
    content: "• ";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 6px;
}

/* Navigation: no tick marks */
nav ul li:before,
footer ul li:before,
.no-bullets li:before {
    content: none;
    display: none;
}

/* ==================================================
   IMAGES
   ================================================== */

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

.featured-image {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
}

.hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 40px;
}

/* ==================================================
   ELEMENTOR COMPATIBILITY
   ================================================== */

.elementor {
    width: 100%;
}

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

.elementor-section {
    padding: 60px 0;
}

.elementor-section-wrap {
    width: 100%;
}

.elementor-row {
    display: flex;
    flex-wrap: wrap;
}

.elementor-column {
    padding: 20px;
}

.elementor-heading-title {
    color: var(--primary-color);
}

.elementor-button {
    background-color: var(--primary-color) !important;
}

.elementor-button:hover {
    background-color: var(--primary-dark) !important;
}

.elementor-icon {
    color: var(--primary-color);
    font-size: 40px;
}

.elementor-text-editor {
    line-height: 1.8;
    color: var(--text-dark);
}

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

footer {
    background-color: var(--primary-color);
    color: white;
    padding: 50px 20px 20px;
    margin-top: 60px;
    text-align: center;
}

footer h3 {
    color: white;
    margin-top: 0;
}

footer p {
    color: white;
    font-size: 0.95rem;
}

footer a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

/* ==================================================
   UTILITY CLASSES
   ================================================== */

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.mt-60 { margin-top: 60px; }
.mb-60 { margin-bottom: 60px; }

.pt-20 { padding-top: 20px; }
.pb-20 { padding-bottom: 20px; }
.pt-40 { padding-top: 40px; }
.pb-40 { padding-bottom: 40px; }

.feature-box {
    background-color: var(--primary-light);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin: 20px 0;
}

.feature-box h3 {
    margin-top: 0;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    margin: 20px 0;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.service-card h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

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

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

/* ==================================================
   RESPONSIVE DESIGN
   ================================================== */

@media (max-width: 1024px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }

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

    nav a {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.1rem; }

    nav ul {
        flex-direction: row;
        justify-content: flex-start;
        overflow-x: auto;
    }

    nav a {
        padding: 12px 15px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .header-top {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    main {
        padding: 20px 15px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .elementor-section {
        padding: 40px 0;
    }

    .elementor-column {
        padding: 15px;
    }

    button,
    .button,
    input[type="submit"] {
        width: 100%;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    :root {
        font-size: 14px;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.2rem; }
    h3 { font-size: 1rem; }

    nav a {
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .header-top {
        padding: 10px;
    }

    .header-top h1 {
        font-size: 22px;
    }

    main {
        padding: 15px 10px;
    }

    .feature-box,
    .service-card {
        padding: 20px;
    }

    button,
    .button {
        padding: 12px 20px;
    }
}

/* ==================================================
   PRINT STYLES
   ================================================== */

@media print {
    header, nav, footer {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    a {
        text-decoration: underline;
    }
}

/* ==================================================
   MOBILE RESPONSIVE IMPROVEMENTS
   ================================================== */

/* Hero section responsive */
.hero-section {
    min-height: 400px !important;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 320px !important;
    }
    
    /* Footer grid */
    footer .footer-grid,
    footer > div > div[style*="grid"] {
        grid-template-columns: 1fr !important;
    }

    /* Service/stats grids */
    div[style*="grid-template-columns: repeat(3"] {
        grid-template-columns: 1fr !important;
    }
    div[style*="grid-template-columns: 1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    div[style*="grid-template-columns: repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    div[style*="grid-template-columns: 1fr 1fr 1fr 1fr"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Page content */
    article {
        padding: 20px 15px !important;
    }

    main {
        padding: 0 !important;
    }

    /* Images */
    .hero-section img {
        object-position: center center;
    }
}

@media (max-width: 480px) {
    /* Stats grid: 2 columns on small mobile */
    div[style*="repeat(4"] {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Prevent text overflow */
    * {
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    img {
        max-width: 100% !important;
    }
}

/* ==================================================
   ELEMENTOR FULL WIDTH SUPPORT
   ================================================== */

/* Allow Elementor to take full width */
.elementor-section-wrap,
.elementor-inner,
.elementor-container {
    max-width: 100%;
}

body.elementor-page .container {
    padding: 0;
    max-width: 100%;
}

/* Page-level: no extra padding when Elementor is building */
body.elementor-editor-active main,
body.elementor-page main {
    padding: 0 !important;
    min-height: auto;
}
