/*
 * Theme Name:  Accrulyn Theme
 * Theme URI:   https://accrulyn.com
 * Description: Custom WordPress theme for Accrulyn Financial Services
 * Author:      Accrulyn
 * Author URI:  https://accrulyn.com
 * Version:     1.0.0
 * License:     GNU General Public License v2 or later
 * Text Domain: accrulyn
 */

/* ─────────────────────────────────────────
   BRAND VARIABLES
───────────────────────────────────────── */
:root {
    --green:        #0E3D35;
    --green-dark:   #0A2E28;
    --green-mid:    #0E7A68;
    --green-light:  #12A88D;
    --green-pale:   #EAF5F3;
    --green-dim:    rgba(14,61,53,0.07);
    --green-border: rgba(14,61,53,0.16);
    --amber:        #E8A020;
    --amber-dark:   #C8891A;
    --amber-light:  #F5B840;
    --amber-pale:   #FEF7E8;
    --amber-border: rgba(232,160,32,0.30);
    --white:        #FFFFFF;
    --off:          #F7FAFA;
    --text-dark:    #0D1F1B;
    --text-body:    #374151;
    --text-muted:   #6B8A84;
    --border:       #D8E8E4;
    --border-dark:  rgba(255,255,255,0.11);
    --shadow-sm:    0 2px 8px rgba(14,61,53,0.06);
    --shadow-md:    0 8px 28px rgba(14,61,53,0.10);
    --shadow-lg:    0 16px 50px rgba(14,61,53,0.13);
    --r:            0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ─────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-body);
    background: var(--white);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ─────────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-dark);
    line-height: 1.1;
    font-weight: 700;
}
h1 { font-size: clamp(38px, 5vw, 68px); }
h2 { font-size: clamp(30px, 3.5vw, 50px); }
h3 { font-size: clamp(20px, 2vw, 26px); }
h4 { font-size: 20px; font-weight: 600; }

p { line-height: 1.75; color: var(--text-body); }

em   { font-style: italic; color: var(--green-mid); }
strong { font-weight: 700; }

/* ─────────────────────────────────────────
   UTILITY CLASSES
───────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 64px;
}
.section         { padding: 96px 0; background: var(--white); }
.section-alt     { padding: 96px 0; background: var(--off); }
.section-dark    { padding: 96px 0; background: var(--green); }
.section-amber   { padding: 64px 0; background: var(--amber); }

.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--green-mid);
    margin-bottom: 16px;
    font-family: 'DM Sans', sans-serif;
}
.eyebrow::before {
    content: '';
    width: 26px; height: 2.5px;
    background: var(--amber);
    border-radius: 2px;
    display: inline-block;
}
.eyebrow-light          { color: var(--amber-light); }
.eyebrow-light::before  { background: var(--amber-light); }
.text-center .eyebrow::before { display: none; }
.text-center .eyebrow   { justify-content: center; }

.section-title { margin-bottom: 18px; }
.section-title em { color: var(--green-mid); }
.section-title em.amber { color: var(--amber); }
.section-title-light { color: #fff; }
.section-title-light em { color: var(--amber-light); }

.section-sub {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.8;
    font-weight: 300;
    font-family: 'DM Sans', sans-serif;
}
.section-sub-light { color: rgba(255,255,255,0.62); }

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 32px;
    border-radius: 6px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--r);
    position: relative;
    overflow: hidden;
}
.btn-amber  { background: var(--amber); color: var(--green); }
.btn-amber:hover  { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(232,160,32,0.38); }
.btn-green  { background: var(--green); color: #fff; }
.btn-green:hover  { background: var(--green-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline-green { background: transparent; border: 2px solid var(--green); color: var(--green); }
.btn-outline-green:hover { background: var(--green); color: #fff; }
.btn-outline-white { background: transparent; border: 1.5px solid rgba(255,255,255,0.3); color: #fff; }
.btn-outline-white:hover { border-color: var(--amber); color: var(--amber-light); }
.btn-ghost { background: transparent; border: 1.5px solid rgba(255,255,255,0.28); color: #fff; font-weight: 500; text-transform: none; letter-spacing: 0; }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber-light); }

/* ─────────────────────────────────────────
   SCROLL REVEAL
───────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─────────────────────────────────────────
   FLOATING CTA BUTTON
───────────────────────────────────────── */
.float-cta {
    position: fixed;
    bottom: 26px; right: 26px;
    background: var(--green);
    color: #fff;
    padding: 13px 22px;
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 0 8px 36px rgba(14,61,53,0.38);
    display: flex;
    align-items: center;
    gap: 9px;
    transition: var(--r);
}
.float-cta:hover { background: var(--green-dark); transform: translateY(-2px); }
.float-dot {
    width: 8px; height: 8px;
    background: var(--amber);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.7)} }

/* ─────────────────────────────────────────
   RESPONSIVE HELPERS
───────────────────────────────────────── */
@media (max-width: 860px) {
    .container { padding: 0 28px; }
    .section, .section-alt, .section-dark, .section-amber { padding: 68px 0; }
}
@media (max-width: 480px) {
    .container { padding: 0 20px; }
}
