/* AFMCO Brand Identity - Shared Styles */
@font-face {
    font-family: 'Butler';
    src: url('/assets/fonts/Butler-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Butler';
    src: url('/assets/fonts/Butler-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Butler';
    src: url('/assets/fonts/Butler-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Butler';
    src: url('/assets/fonts/Butler-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Butler';
    src: url('/assets/fonts/Butler-UltraLight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Butler';
    src: url('/assets/fonts/Butler-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Based on "Flatten" Concept */

:root {
    /* Primary Colors */
    --color-growth-green: #00844E;
    --color-deep-forest: #072B1A;
    --color-sand-beige: #ECE6D6;

    /* Secondary Colors */
    --color-mint: #60d297;
    --color-off-white: #F8F5EE;
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-text-light: #666666;

    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Butler', serif;

    /* Spacing - Increased for Premium Feel */
    --spacing-xs: 0.75rem;
    --spacing-sm: 1.5rem;
    --spacing-md: 3rem;
    --spacing-lg: 6rem;
    --spacing-xl: 10rem;
    /* Huge breathing room */
    --container-padding: 2.5rem;

    /* Border Radius - Modern & Soft */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;
    --radius-full: 9999px;

    /* Shadows - Rich & Layered */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(0, 132, 78, 0.15);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Z-Index Layers */
    --z-negative: -1;
    --z-normal: 1;
    --z-sticky: 100;
    --z-overlay: 900;
    --z-modal: 1000;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-off-white);
    color: var(--color-deep-forest);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--color-deep-forest);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-normal);
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

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

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

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

[dir="rtl"] .text-right {
    text-align: right;
}

[dir="rtl"] .text-left {
    text-align: left;
}

.highlight {
    color: var(--color-growth-green);
}

.no-scroll {
    overflow: hidden;
}

/* Buttons - Flat Design */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-growth-green);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-deep-forest);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-growth-green);
    color: var(--color-growth-green);
}

.btn-secondary:hover {
    background-color: var(--color-growth-green);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Section Padding */
section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

/* Form Elements */
input,
select,
textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e5e5e5;
    border-radius: var(--radius-sm);
    background: var(--color-white);
    font-family: var(--font-primary);
    margin-bottom: 1rem;
    transition: border-color var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-growth-green);
    box-shadow: 0 0 0 3px rgba(0, 132, 78, 0.1);
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}