/*
Theme Name: JYFIL Theme (Fictiv Style)
Theme URI: https://jyfil.com
Author: Spec-Kit AI
Description: A custom B2B manufacturing theme based on Fictiv's design system and JYFIL's v1.3.6 blueprints.
Version: 1.0.0
Text Domain: jyfil-theme
*/

/* Core Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary, 'Montserrat', sans-serif);
    color: var(--color-text-body);
    background-color: var(--color-bg-main);
    line-height: var(--line-height-body);
    font-size: var(--font-size-body-desktop);
    -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text-heading);
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--color-primary-hover);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gutter-width);
}


/* Premium Typography Refinements */
h1 {
    letter-spacing: -1px;
    margin-bottom: 24px;
    line-height: 1.1;
}

h2 {
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    line-height: 1.2;
}

h3 {
    letter-spacing: 0px;
    margin-bottom: 16px;
    font-weight: 600;
}

h4,
h5,
h6 {
    margin-bottom: 12px;
}

p {
    margin-bottom: 1.5em;
    color: var(--color-text-muted);
}

p.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-text-heading);
    margin-bottom: 2rem;
}

.small {
    font-size: 0.875rem;
}

/* Utilities: Spacing & Layout */
.section-pad {
    padding: var(--section-padding-y) 0;
}

.bg-light {
    background-color: var(--color-bg-section);
}

.bg-dark {
    background-color: var(--color-bg-dark);
    color: white !important;
}

.bg-primary {
    background-color: var(--color-primary);
    color: white !important;
}

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

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

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

@media (max-width: 900px) {

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

    .container {
        padding: 0 20px;
    }
}

/* Premium Form Styles */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #D0D5DD;
    border-radius: 4px;
    font-size: 16px;
    color: var(--color-text-body);
    background: #FFF;
    margin-bottom: 16px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(22, 188, 156, 0.15);
    outline: none;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--color-text-heading);
    font-size: 14px;
}

/* Enhancements to Cards */
.card {
    border: 1px solid #EAECF0;
    /* Subtle border for definition */
}

.card-body {
    padding: 24px;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Navigation Helpers */
.nav-link {
    color: var(--color-text-heading);
    font-weight: 500;
    padding: 8px 16px;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--color-primary);
}

/* =========================================
   Header Styles
   ========================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-bg-main);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    /* Subtle separator */
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    transition: box-shadow 0.3s ease;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-branding {
    font-weight: 700;
    font-size: 24px;
    color: var(--color-primary);
    letter-spacing: -0.5px;
}

.site-branding a {
    color: inherit;
    text-decoration: none;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.main-navigation a {
    color: var(--color-text-heading);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    position: relative;
}

.main-navigation a:hover {
    color: var(--color-primary);
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

@media (max-width: 900px) {

    .main-navigation,
    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
}

/* =========================================
   Footer Styles
   ========================================= */
.site-footer {
    background-color: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 60px 0 30px;
    margin-top: auto;
    font-size: 15px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-column h4 {
    color: white;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    opacity: 0.9;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #98A2B3;
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-tagline {
    color: #667085;
    margin-top: 16px;
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #667085;
    font-size: 13px;
}

.legal-links {
    display: flex;
    gap: 24px;
}

.legal-links a {
    color: #667085;
    text-decoration: none;
}

.legal-links a:hover {
    color: white;
}

@media (max-width: 900px) {
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: left;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .legal-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}