/* ===================================
   VARIABLES
=================================== */
:root {
    /* Colors */
    --c-primary: #f15931;
    --c-primary-dark: #d94b27;
    --c-secondary: #404041;
    --c-light: #fff;
    --c-light-2: #e8ebe7;
    --c-gray-dark: #404041;
    --c-gray-darker: #333334;

    /* Fonts */
    --f-primary: "DIN Pro", sans-serif;
    --f-secondary: "Open Sans", sans-serif;
    --f-tertiary: "Droid Serif", serif;

    /* Typography */
    --font-size-base: 16px;
    --line-height-base: 1.5;
}

/* ===================================
   BASE
=================================== */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-family: var(--f-secondary);
    line-height: 1.55;
}

/* ===================================
   LAYOUT
=================================== */
.container {
    width: 90%;
    max-width: 1440px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .container {
        width: 95%;
    }
}

/* ===================================
   TYPOGRAPHY
=================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-primary);
    color: var(--c-secondary);
    margin: 0 0 15px;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 3em;
}

h2 {
    font-size: 2.5em;
}

h3 {
    font-size: 2em;
}

h4 {
    font-size: 1.5em;
}

h5 {
    font-size: 1.2em;
}

h6 {
    font-size: 1em;
}

ul, ol {
    margin: 0 0 20px 40px;
    padding: 0;
}

/* Headings */
.heading-1 {
    font-size: 2.2em;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .heading-1 {
        font-size: 2.7em;
    }
}

.heading-1a {
    font-size: 2.25em;
    line-height: 1.4;
}

.heading-2 {
    font-size: 2em;
    line-height: 1.2;
}

.subheading-1 {
    font-size: 1.6em;
    line-height: 1.2;
}

/* Font weights & styles */
.font-bold { font-weight: 500; }
.font-bolder { font-weight: 600; }
.uppercase { text-transform: uppercase; }

/* Font families */
.font-1 { font-family: var(--f-primary); }
.font-2 { font-family: var(--f-secondary); }
.font-3 { font-family: var(--f-tertiary); }

/* Alignment & color */
.text-center { text-align: center; }
.text-light { color: var(--c-light); }
.text-dark { color: var(--c-secondary); }
.text-orange { color: var(--c-primary); }

.text-light a {
    color: var(--c-light);
}

/* ===================================
   BUTTONS
=================================== */
.btn,
.button-primary,
.button-secondary,
.button-tertiary,
.gform_button {
    text-align: center;
    padding: .4em 1.6em;
    text-decoration: none;
    font-family: var(--f-primary);
    font-size: 1.6rem !important;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    border: none;
}

a.btn,
a.button-primary,
a.button-secondary,
a.button-tertiary {
    display: inline-block;
}

/* Primary */
.btn-primary,
.button-primary {
    background-color: var(--c-primary);
    color: var(--c-light);
}
.btn-primary,
.button-primary:hover,
.button-primary:focus {
    background-color: var(--c-primary-dark);
    color: var(--c-light);
}

/* Secondary */
.btn-secondary,
.button-secondary {
    background-color: var(--c-secondary);
    color: var(--c-light);
}

.btn-secondary,
.button-secondary:hover,
.button-secondary:focus {
    background-color: var(--c-gray-darker);
    color: var(--c-light);
}

/* Tertiary */
.btn-tertiary,
.button-tertiary {
    border: 2px solid var(--c-light);
    color: var(--c-light);
    background-color: transparent;
}

/* ===================================
   BACKGROUNDS
=================================== */
.bg-light { background-color: var(--c-light); }
.bg-dark { background-color: var(--c-secondary); }
.bg-orange {
    background-color: var(--c-primary);
    color: var(--c-light);
}

/* ===================================
   UTILITIES
=================================== */
.wysiwyg-text p { margin-bottom: 0; }

/* ===================================
   GRAVITY FORMS
   Light colors only under .form-dark
=================================== */

.gform_button {
    background-color: var(--c-primary) !important;
    border: none !important;
    border-radius: 0 !important;
    color: var(--c-light) !important;
    padding: .7em 1.6em !important;
}

.gform_button:hover,
.gform_button:focus {
    background-color: var(--c-primary-dark) !important;
    color: var(--c-light) !important;
    cursor: pointer;
}

/* Scoped to dark parent — only apply light field styles when .form-dark is present */
.form-dark .gfield input,
.form-dark .gfield textarea {
    border: 1px solid #404041 !important;
    border-radius: 1px;
    background-color: rgba(255, 255, 255, .1) !important;
    font-family: var(--f-primary) !important;
    color: var(--c-light) !important;
    border-color: #606060 !important;
}

.form-dark .gfield input::placeholder,
.form-dark .gfield textarea::placeholder {
    color: var(--c-light) !important;
    opacity: .6 !important;
}

.gform-field-label {
    font-family: var(--f-primary) !important;
    font-weight: 500 !important;
    margin-bottom: 5px;
    font-size: 1.1em !important;
    display: block;
}

/* ===================================
   COMPONENTS
=================================== */
.page-featured-image {
    width: 100%;
    height: 330px;
    background-size: cover;
    background-position: center;
}

@media (min-width: 768px) {
    .page-featured-image {
        height: 430px;
    }
}

.page article.type-page {
    max-width: 800px;
    margin: 0 auto;
}

.page article.type-page .entry-content {
    padding-top: 100px;
    padding-bottom: 60px;
}