/*
Theme Name: Hallo Car
Theme URI: https://www.hallocar.ch/
Template: astra
Author: Hallo Transport GmbH
Author URI: https://www.hallocar.ch/
Description: Astra child theme for Hallo Car — colors, typography and layout matching the original hallocar.ch design.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hallocar
*/

/* ============================================================
   Brand variables
   ============================================================ */
:root {
    --hc-green: #548F34;
    --hc-green-dark: #3f6e26;
    --hc-green-darker: #2e5119;
    --hc-dark: #1a1a1a;
    --hc-gray: #5f6360;
    --hc-gray-light: #f5f5f5;
    --hc-pink: #ED1566;
    --hc-white: #ffffff;
}

/* ============================================================
   Typography
   ============================================================ */
body,
button,
input,
select,
textarea,
.ast-container,
.entry-content p,
.entry-content li {
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--hc-dark);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.site-title,
.menu-item a {
    font-family: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
    letter-spacing: 0.02em;
}

h1, .entry-title { font-weight: 700; }
h2 { font-weight: 600; }

.section-title {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.4em;
}

.section-tagline {
    text-align: center;
    color: var(--hc-gray);
    font-size: 1.05rem;
    margin-bottom: 2.5em;
}

/* ============================================================
   Header
   ============================================================ */
.site-header,
.main-header-bar {
    background-color: var(--hc-white) !important;
    border-bottom: 3px solid var(--hc-green);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.site-title a,
.site-title a:hover {
    color: var(--hc-green) !important;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.main-header-menu .menu-item > a {
    font-family: 'Cinzel', serif !important;
    text-transform: uppercase;
    font-size: 0.9rem !important;
    letter-spacing: 0.08em;
    color: var(--hc-dark) !important;
}

.main-header-menu .menu-item:hover > a,
.main-header-menu .current-menu-item > a {
    color: var(--hc-green) !important;
}

/* Hide page title on home (hero supplies its own) and on any page
   whose content starts with the [hc_hero] shortcode block */
body.home .entry-header,
body.home .entry-title,
body.page-template-default.home .ast-article-single > .entry-header {
    display: none !important;
}

/* Remove default padding around the article on the front page */
body.home .ast-article-single,
body.home article.post,
body.home .entry-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ============================================================
   Hero
   ============================================================ */
.hc-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hc-white);
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
                url('/wp-content/uploads/hallocar/hero-luxury.jpg') center/cover no-repeat;
    padding: 6rem 1.5rem;
    margin-bottom: 4rem;
}

.hc-hero__inner { max-width: 900px; }

.hc-hero__title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 1rem;
    color: var(--hc-white);
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hc-hero__subtitle {
    font-size: clamp(1.05rem, 2vw, 1.4rem);
    margin: 0 0 2rem;
    opacity: 0.95;
}

.hc-btn {
    display: inline-block;
    padding: 0.95rem 2.4rem;
    background: var(--hc-green);
    color: var(--hc-white) !important;
    border: 2px solid var(--hc-green);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
    border-radius: 2px;
}

.hc-btn:hover {
    background: var(--hc-green-dark);
    border-color: var(--hc-green-dark);
    color: var(--hc-white) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(84,143,52,0.35);
}

.hc-btn--ghost {
    background: transparent;
    border-color: var(--hc-white);
    color: var(--hc-white) !important;
}
.hc-btn--ghost:hover {
    background: var(--hc-white);
    color: var(--hc-green) !important;
    border-color: var(--hc-white);
}

.hc-hero__buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   Services grid
   ============================================================ */
/* Break out of Astra's narrow content container so our custom sections can use full width */
.page-template-default .entry-content,
.page .entry-content {
    max-width: none !important;
    padding: 0 !important;
}
.page .ast-container,
.ast-container {
    max-width: 100% !important;
}
.site-content .ast-container > #primary,
#primary {
    padding: 0 !important;
}

.hc-section { padding: 4rem 1.5rem; }
.hc-section--alt { background: var(--hc-gray-light); }
.hc-section__inner { max-width: 1200px; margin: 0 auto; }

.hc-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.hc-service {
    background: var(--hc-white);
    text-align: center;
    padding: 2rem 1.5rem;
    border: 1px solid #eee;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.hc-service:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    border-color: var(--hc-green);
}

.hc-service__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1.2rem;
}

.hc-service__title {
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--hc-dark);
    letter-spacing: 0.08em;
    margin: 0.5rem 0 0.8rem;
    line-height: 1.4;
    word-break: keep-all;
    hyphens: none;
    overflow-wrap: normal;
}

.hc-service__text {
    color: var(--hc-gray);
    font-size: 0.95rem;
    margin: 0 0 1.2rem;
}

/* ============================================================
   Info bar (contact)
   ============================================================ */
.hc-info {
    background: var(--hc-green);
    color: var(--hc-white);
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.hc-info__grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.hc-info__item h4 {
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.95rem;
    margin: 0 0 0.5rem;
    color: var(--hc-white);
}

.hc-info__item p { margin: 0; font-size: 0.95rem; opacity: 0.95; }
.hc-info__item a { color: var(--hc-white); text-decoration: underline; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: var(--hc-dark) !important;
    color: var(--hc-white);
}
.site-footer a { color: var(--hc-white); }
.site-footer a:hover { color: var(--hc-green); }

/* ============================================================
   VikRentCar overrides
   ============================================================ */
.vikrentcar table.vrcfecategorieslist .vrccatlistdiv,
.vrcfecategorieslist .vrccatlistdiv {
    border: 1px solid #eee;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.vrcfecategorieslist .vrccatlistdiv:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.1);
    border-color: var(--hc-green);
}

.vrc_button,
.vrcorderbtn,
.vrcsearchbtn,
.vikrentcar input[type="submit"],
.vikrentcar button[type="submit"] {
    background: var(--hc-green) !important;
    color: var(--hc-white) !important;
    border: 2px solid var(--hc-green) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    padding: 0.8rem 1.8rem !important;
    border-radius: 2px !important;
    font-family: 'Cinzel', serif !important;
    transition: all 0.25s ease !important;
}

.vrc_button:hover,
.vrcorderbtn:hover,
.vrcsearchbtn:hover {
    background: var(--hc-green-dark) !important;
    border-color: var(--hc-green-dark) !important;
}

/* ============================================================
   Page tweaks
   ============================================================ */
.entry-content h2 {
    color: var(--hc-dark);
    margin-top: 2rem;
}

.entry-content a {
    color: var(--hc-green);
}

.entry-content a:hover {
    color: var(--hc-green-dark);
}

.entry-title {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .hc-hero { min-height: 50vh; padding: 4rem 1rem; }
    .hc-section { padding: 3rem 1rem; }
}

/* ============================================================
   Footer copyright visibility fix
   Astra renders the below-footer with a light background, so the
   .site-footer a{color:white} rule above makes the copyright links
   invisible. Override just the copyright area.
   ============================================================ */
.ast-footer-copyright,
.ast-footer-copyright p { color: var(--hc-dark); }
.ast-footer-copyright a { color: var(--hc-green) !important; text-decoration: none; }
.ast-footer-copyright a:hover { color: var(--hc-green-dark) !important; text-decoration: underline; }
