/*
Theme Name:     HFP Theme
Theme URI:      https://www.hfp.at
Description:    Elementor-ready theme for HFP – Die Steuerberater:innen. Brand colors, typography, and layout patterns extracted from the Craft CMS site.
Author:         Skillful / CIN Consult
Author URI:     https://skillful.at
Version:        1.3.1
License:        GPL-2.0+
Text Domain:    hfp-theme
Requires at least: 6.0
Requires PHP:   8.0
*/

/* ================================================================
   CSS CUSTOM PROPERTIES — extracted from hfp.at
   ================================================================ */

:root {
    /* ---- Brand Colors (from live CSS) ---- */
    --hfp-accent:          #c71748;   /* Crimson — links, CTAs, highlights, footer bar */
    --hfp-accent-hover:    #a5123b;   /* Darker crimson for hover */
    --hfp-accent-light:    #fce8ef;   /* Very light pink tint */

    --hfp-heading:         #171717;   /* Near-black — all headings */
    --hfp-text:            #878787;   /* Medium gray — body text */
    --hfp-text-light:      #a1a1a1;   /* Light gray — subtitles, captions */
    --hfp-text-muted:      #adadad;   /* Muted gray */
    --hfp-mid-gray:        #9f9f9f;   /* Mid gray — timestamps, dividers */

    --hfp-dark:            #212121;   /* Dark bg — offcanvas, overlays */
    --hfp-dark-alt:        #141515;   /* Slightly darker variant */
    --hfp-white:           #ffffff;
    --hfp-off-white:       #f5f5f3;   /* Warm light gray — section backgrounds */
    --hfp-gray-light:      #f3f3f3;   /* Lighter gray variant */
    --hfp-border:          #d9d9d9;   /* Borders and dividers */
    --hfp-border-light:    #d7d7d7;

    /* ---- Typography (from computed styles) ---- */
    --hfp-font:            'Lato', 'Helvetica Neue', Arial, sans-serif;

    --hfp-fs-xs:           12px;
    --hfp-fs-sm:           14px;
    --hfp-fs-base:         16px;
    --hfp-fs-md:           18px;
    --hfp-fs-lg:           20px;
    --hfp-fs-xl:           24px;
    --hfp-fs-2xl:          32px;
    --hfp-fs-3xl:          40px;
    --hfp-fs-4xl:          53px;      /* h2 hero size from computed */

    --hfp-fw-light:        300;
    --hfp-fw-regular:      400;
    --hfp-fw-medium:       500;
    --hfp-fw-bold:         700;
    --hfp-fw-black:        900;       /* Hero headings */

    --hfp-lh-tight:        1.2;
    --hfp-lh-snug:         1.4;
    --hfp-lh-body:         1.7;

    /* ---- Spacing ---- */
    --hfp-space-xs:        8px;
    --hfp-space-sm:        16px;
    --hfp-space-md:        24px;
    --hfp-space-lg:        40px;
    --hfp-space-xl:        64px;
    --hfp-space-2xl:       100px;
    --hfp-space-section:   140px;     /* pt-140 pb-140 from site */

    /* ---- Layout ---- */
    --hfp-container:       1200px;
    --hfp-container-wide:  1400px;
    --hfp-gutter:          30px;      /* Bootstrap gutter */

    /* ---- Effects ---- */
    --hfp-radius:          0px;       /* Site uses sharp corners */
    --hfp-radius-sm:       4px;
    --hfp-radius-md:       8px;
    --hfp-radius-lg:       12px;
    --hfp-shadow:          0 4px 20px rgba(0,0,0,0.06);
    --hfp-transition:      0.3s ease;
}


/* ================================================================
   RESET & BASE
   ================================================================ */

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

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

body {
    font-family: var(--hfp-font);
    font-size: var(--hfp-fs-base);
    font-weight: var(--hfp-fw-regular);
    line-height: var(--hfp-lh-body);
    color: var(--hfp-text);
    background: var(--hfp-white);
}

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

a {
    color: var(--hfp-accent);
    text-decoration: none;
    transition: color var(--hfp-transition);
}
a:hover { color: var(--hfp-accent-hover); }

::selection { background: var(--hfp-accent); color: var(--hfp-white); }


/* ================================================================
   TYPOGRAPHY — matching Lato weights from hfp.at
   ================================================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--hfp-font);
    color: var(--hfp-heading);
    line-height: var(--hfp-lh-tight);
    margin-bottom: 0.5em;
}

h1 { font-size: var(--hfp-fs-4xl); font-weight: var(--hfp-fw-black); }
h2 { font-size: var(--hfp-fs-3xl); font-weight: var(--hfp-fw-black); }
h3 { font-size: var(--hfp-fs-2xl); font-weight: var(--hfp-fw-bold); }
h4 { font-size: var(--hfp-fs-xl);  font-weight: var(--hfp-fw-bold); }
h5 { font-size: var(--hfp-fs-lg);  font-weight: var(--hfp-fw-medium); }
h6 { font-size: var(--hfp-fs-md);  font-weight: var(--hfp-fw-medium); }

p { margin-bottom: 1.2em; }

/* Overline — small uppercase label used on subpages */
.hfp-overline {
    font-size: var(--hfp-fs-xs);
    font-weight: var(--hfp-fw-medium);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--hfp-text-light);
    margin-bottom: var(--hfp-space-sm);
    display: block;
}

blockquote {
    font-size: var(--hfp-fs-xl);
    font-weight: var(--hfp-fw-light);
    font-style: italic;
    color: var(--hfp-heading);
    border-left: 3px solid var(--hfp-accent);
    padding-left: var(--hfp-space-md);
    margin: var(--hfp-space-lg) 0;
}


/* ================================================================
   LAYOUT
   ================================================================ */

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

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

.hfp-section {
    padding-top: var(--hfp-space-section);
    padding-bottom: var(--hfp-space-section);
}

.hfp-section--grey { background: var(--hfp-off-white); }  /* grey-bg-4 */
.hfp-section--dark { background: var(--hfp-dark); color: var(--hfp-white); }
.hfp-section--dark h1, .hfp-section--dark h2, .hfp-section--dark h3,
.hfp-section--dark h4 { color: var(--hfp-white); }
.hfp-section--accent { background: var(--hfp-accent); color: var(--hfp-white); }
.hfp-section--accent h1, .hfp-section--accent h2, .hfp-section--accent h3 { color: var(--hfp-white); }


/* ================================================================
   BUTTONS — matching hfp.at CTA style
   ================================================================ */

.hfp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-family: var(--hfp-font);
    font-size: var(--hfp-fs-sm);
    font-weight: var(--hfp-fw-bold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 14px 32px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--hfp-transition);
    text-decoration: none;
    line-height: 1;
}

.hfp-btn--accent {
    background: transparent;
    color: var(--hfp-accent);
    border-color: var(--hfp-accent);
}
.hfp-btn--accent:hover {
    background: var(--hfp-accent);
    color: var(--hfp-white);
}

.hfp-btn--white {
    background: transparent;
    color: var(--hfp-white);
    border-color: var(--hfp-white);
}
.hfp-btn--white:hover {
    background: var(--hfp-white);
    color: var(--hfp-accent);
}

.hfp-btn--filled {
    background: var(--hfp-accent);
    color: var(--hfp-white);
    border-color: var(--hfp-accent);
}
.hfp-btn--filled:hover {
    background: var(--hfp-accent-hover);
    border-color: var(--hfp-accent-hover);
}

.hfp-btn--primary {
    background: var(--hfp-accent);
    color: var(--hfp-white);
    border-color: var(--hfp-accent);
}
.hfp-btn--primary:hover {
    background: var(--hfp-accent-hover);
    border-color: var(--hfp-accent-hover);
}


/* ================================================================
   CTA BANNER — crimson bar between sections
   ================================================================ */

.hfp-cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--hfp-accent);
    color: var(--hfp-white);
    padding: var(--hfp-space-lg) var(--hfp-space-xl);
    text-decoration: none;
    transition: background var(--hfp-transition);
}
.hfp-cta-banner:hover { background: var(--hfp-accent-hover); color: var(--hfp-white); }


/* ================================================================
   CARDS — service boxes with sharp corners
   ================================================================ */

.hfp-card {
    background: var(--hfp-white);
    border: 1px solid var(--hfp-border);
    padding: var(--hfp-space-lg);
    transition: all var(--hfp-transition);
}
.hfp-card:hover {
    border-color: var(--hfp-accent);
    box-shadow: var(--hfp-shadow);
}
.hfp-card__title { color: var(--hfp-heading); font-weight: var(--hfp-fw-bold); }
.hfp-card__title a { color: inherit; }
.hfp-card__title a:hover { color: var(--hfp-accent); }


/* ================================================================
   PAGE HERO — dark header bar on subpages
   ================================================================ */

.hfp-page-hero {
    background: var(--hfp-dark);
    color: var(--hfp-white);
    padding: var(--hfp-space-2xl) 0 var(--hfp-space-xl);
}
.hfp-page-hero h1 { color: var(--hfp-white); }
.hfp-page-hero .hfp-overline { color: var(--hfp-text-light); }
.hfp-page-hero p { color: rgba(255,255,255,0.7); }


/* ================================================================
   HEADER — all styles moved to assets/css/header.css
   ================================================================ */


/* ================================================================
   FOOTER — crimson copyright bar on bottom
   ================================================================ */

.hfp-footer { background: var(--hfp-dark); color: rgba(255,255,255,0.6); padding: var(--hfp-space-xl) 0 0; }
.hfp-footer h4 { color: var(--hfp-white); font-size: var(--hfp-fs-sm); text-transform: uppercase; letter-spacing: 0.08em; }
.hfp-footer a { color: rgba(255,255,255,0.6); }
.hfp-footer a:hover { color: var(--hfp-white); }

.hfp-footer__copyright {
    background: var(--hfp-accent);
    color: var(--hfp-white);
    padding: var(--hfp-space-md) 0;
    margin-top: var(--hfp-space-xl);
    font-size: var(--hfp-fs-sm);
    text-align: center;
}
.hfp-footer__copyright a { color: var(--hfp-white); }


/* ================================================================
   ELEMENTOR OVERRIDES
   ================================================================ */

body .elementor-heading-title {
    font-family: var(--hfp-font);
    color: var(--hfp-heading);
}
body .elementor-widget-text-editor {
    font-family: var(--hfp-font);
    color: var(--hfp-text);
    line-height: var(--hfp-lh-body);
}
body .elementor-button {
    font-family: var(--hfp-font);
    font-weight: var(--hfp-fw-bold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
body .elementor-icon-box-icon .elementor-icon { color: var(--hfp-accent); }
body .elementor-nav-menu--main .elementor-item {
    font-family: var(--hfp-font);
    font-weight: var(--hfp-fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
body .elementor-field-textual {
    font-family: var(--hfp-font);
    border: 1px solid var(--hfp-border);
}
body .elementor-field-textual:focus {
    border-color: var(--hfp-accent);
    box-shadow: 0 0 0 3px var(--hfp-accent-light);
}

/* Mobile */
@media (max-width: 767px) {
    h1 { font-size: var(--hfp-fs-3xl); }
    h2 { font-size: var(--hfp-fs-2xl); }
    .hfp-section { padding-top: var(--hfp-space-xl); padding-bottom: var(--hfp-space-xl); }
}

/* WP Admin bar offset */
body.admin-bar .hfp-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .hfp-header { top: 46px; } }
/* Header is position:static — no body padding needed */
