﻿/*
 Theme Name: Gourmet Sausage
 Theme URI: https://gourmetsausage.ca
 Description: A custom child theme for Gourmet Sausage. Developed using Genesis Framework v3.6.1 by StudioPress.
 Author: Brad Norrena
 Template: genesis
 Version: 26.03.20
*/
/*
 * Font-family properties: 
 *    Global font-family, 
 *    weight, 
 *    colour and 
 *    compontent specific font-family overrides
 * have mostsly been moved to /css/fonts-style.css
 * HOW the text behaves inthe layout remains here.
 */

body {
	color: #1b1b1b;
	background-color: #f3f3f3;
	font-style: normal;
	font-weight: 400;
}

/* Remove Genesis container padding so header is truly full width */
/* Ensure your custom header spans edge-to-edge */
.site-container, body {
    padding: 0;
    margin: 0;
}

/* ============================================
   HIDE Site Title and Tagline - Kept for SEO
   ============================================ */
.site-title,
.site-description {
    position: absolute;
    left: -9999px;
    top: 120px;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* ============================================
   HEADER AREA
   ============================================ */
/* Full‑width header that scrolls away on all screen sizes */
.site-header {
    position: relative;     /* no fixed positioning */
    width: 100%;            /* full width */
    background: #fff;
    display: flex;
	justify-content: flex-start; /* left-aligned by default */
    align-items: center;
    border-bottom: 1px solid #ddd;
    height: auto;           /* natural height */
}

/* Remove the padding compensation added for the fixed header */
.site-container,
.site-inner {
    padding-top: 0;
}

/* Custom header */
.gs-header {
    margin: 0;
    padding-left: 0;
	padding-bottom: 2%;
    padding-right: 0;
}
.gs-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.gs-header-right {
	padding-top: 1%;
    padding-right: 2%;
    margin-left: auto;
    display: flex;
    align-items: center;
}

/* Not needed until header stays fixed to top of screen 
 * ****************************************************
.site-header {
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
*/

/* ============================================
   NAVIGATION MENUS - PRIMARY
   ============================================ */
.nav-primary {
    padding: 10px 0;
}

/* UL element */
.nav-header {
    display: flex;
    gap: 25px; /* matches the spacing on the live site */
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

/* Menu links */
.nav-header a {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
}

/* Hover + active state */
.nav-header a:hover,
.nav-header .current-menu-item > a {
    color: #58b51e; /* same red used on the live site */
}

/* Prevent multi‑word menu items from breaking */
.gs-header-right .menu a {
    white-space: nowrap;
}


/* ============================================
   HERO SECTIONS
   ============================================ */

/* Base hero container */
.gs-hero {
    width: 100%;
    height: 320px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;      /* centers overlay vertically */
    justify-content: center;  /* centers overlay horizontally */
}

/* Alternate hero for non-home pages (solid red) */
.gs-hero-alt {
    background: #d4224a;
    height: 320px;            /* ensures consistent height */
}

/* Remove dark overlay when using the solid red hero */
.gs-hero-alt .gs-hero-overlay {
    background: none;
}

/* Add the style line to non-home heroes */
.gs-hero-alt::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 6px;
    background: url('/wp-content/themes/gs/images/header/style-line.png') repeat-x center;
    opacity: 0.8;
}

/* Overlay (used only on image hero) */
.gs-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45); /* shadowing for image hero */
    display: flex;
    align-items: center;      /* centers text vertically */
    justify-content: center;  /* centers text horizontally */
}

/* Text styling */
.gs-hero-text {
    position: relative;
    text-align: center;
    color: #ffffff;
    padding: 20px;
}

.gs-hero-text h1 {
    font-size: 48px;
    margin-bottom: 10px;
    font-weight: 700;
}

.gs-hero-text p {
    font-size: 22px;
    margin: 0;
}

/* ============================================
   CPT ALTERNATING LAYOUT
   ============================================ */
/* Wrapper for all CPT rows */
.gs-alt-loop {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0; /* removes all vertical spacing */

    /* HARDENING */
    overflow: hidden;      /* contains floats above */
    position: relative;    /* new containing block */
    max-width: 100%;       /* prevents inherited overflow */
}


/* Each CPT row */
.gs-row {
    display: flex;
    align-items: stretch;
	
	/* HARDENING */
	clear: both;           /* prevents float bleed into rows */
	max-width: 100%;       /* prevents sideways drift */
	width: 100%;           /* ensures full-width rows */

}

/* Shared column rules */
.gs-row .gs-col {
    flex: 0 0 auto; /* let inline flex-basis from PHP control width */
}


/* Featured image */
.gs-image {
    display: flex;
    overflow: hidden; /* hides crop */
}

.gs-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* -----------------------------
   ODD ROWS (1st, 3rd, 5th…)
   Image LEFT, content RIGHT
   Transparent background
------------------------------ */
.gs-row.odd .gs-image {
    order: 1;
}

.gs-row.odd .gs-content {
    order: 2;
    background: #ffffff;
    padding: 40px;
    color: #000000;
}

/* ODD rows — override to black */
.gs-row.odd.bg-black .gs-content {
    background: #000000;
    color: #ffffff;
}

/* -----------------------------
   EVEN ROWS (2nd, 4th, 6th…)
   Image RIGHT, content LEFT
   Solid red background
------------------------------ */
.gs-row.even .gs-image {
    order: 2;
}

.gs-row.even .gs-content {
    order: 1;
    background: #d4224a; /* GS red */
    color: #ffffff;
    padding: 40px;
}
/* Override: black background */
.gs-row.even.bg-black .gs-content {
    background: #000000;
    color: #ffffff;
}

.gs-row.even .gs-content h2,
.gs-row.even .gs-content p {
    color: #ffffff;
}

/* Center CPT content horizontally with minimum 2% padding */
.gs-content {
    margin-left: auto;
    margin-right: auto;
    padding-left: 2%;
    padding-right: 2%;
    box-sizing: border-box;
    width: 100%;
    /* text-align: center; remove if you want text left-aligned */
}

/* ============================================
   BUTTONS
   ============================================ */

.gs-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-top: 14px;
	padding-bottom: 14px;
	padding-left: 20px;
	padding-right: 20px;
    font-size: 14px;
    font-weight: 300;
	margin-bottom: 2%;
    text-decoration: none;
    border-radius: 2em;
    transition: all 0.2s ease;
}

/* Optional icon support */
.gs-btn .gs-bookmark-icon {
    line-height: 1;
}

/* Black button #000, #fff*/
.gs-btn-black {
    background: #2a2a2a;
    color: #fff;
}
.gs-btn-black:hover {
    background: #000;
    color: #fff;
}

/* White button */
.gs-btn-white {
    background: #fff;
    color: #000;
    border: 1px solid #000;
}
.gs-btn-white:hover {
    background: #f2f2f2;
    color: #000;
}

/* Red button */
.gs-btn-red {
    background: #d4224a;
    color: #fff;
}
.gs-btn-red:hover {
    background: #b81d40;
    color: #fff;
}

.gs-hero-button {
    margin-top: 20px;
    text-align: center;
}



/* ============================================
   WIDGETS - HOME PAGE
   ============================================ */
.gs-widget-icon {
    text-align: center;
    margin-bottom: 20px;
}

.gs-widget-icon img {
    width: 80px; /* adjust as needed */
    height: auto;
    display: block;
    margin: 0 auto 15px;
}
.gs-home-blocks {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 0;              
    padding: 60px 2%;       
    flex-wrap: wrap;
    background-color: #f8f8f8;
}

.gs-home-block img {
    width: 50px;
    height: auto;
    margin-bottom: 15px;
}

.gs-home-block {
    flex: 1 1 200px; /* minimum width 200px, grows evenly */
    max-width: 320px; /* prevents overly wide blocks */
    text-align: center;
	background-color: inherit;
}


/* ============================================
   WIDGETS - HOME PAGE TITLES
   ============================================ */
.gs-home-block h1,
.gs-home-block h2,
.gs-home-block h3,
.gs-home-block h4,
.gs-home-block h5,
.gs-home-block h6 {
	font-size:20px;
	Line-height: 28px;
}

/* ============================================
   WIDGETS - HOME PAGE TEXT BLOCKS
   ============================================ */
.gs-home-block p,
.gs-home-block div,
.gs-home-block span {
	Line-height: 28.56px;
}

/* ============================================
   WIDGET LAYOUT - CONTACT PAGE
   ============================================ */
.gs-contact-widgets {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 40px 0;
}

/* Card container */
.gs-contact-widget {
    background: #ffffff;
    padding: 30px 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    
    /* Force equal width */
    width: 320px; /* matches the email block’s natural width */
    max-width: 100%;
}

/* Card hover pop */
.gs-contact-widget:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

/* Link styling inside the card */
.gs-contact-widget a {
    display: inline-block;
    padding: 12px 0;
    font-size: 20px;
    font-weight: 700;
    color: #d4224a;
    text-decoration: none;
}

/* Only underline the text on hover */
.gs-contact-widget a:hover {
    text-decoration: underline;
}

/* ============================================
   FOOTER AREA
   ============================================ */

.gs-footer-widgets-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 3% 4% 5% 4%; /* top | right | bottom | left */
    background-color:#e1e1e1;
}

.footer-block img {
    max-width: 180px;
    margin-bottom: 15px;
}

.gs-footer-widgets-bottom {
    padding: 0;
    text-align: center;
    font-size: 10px;
    color: #7a7a7a;
    opacity: 0.8;
	font-weight: 400;
	background-color:#e1e1e1;
    letter-spacing: 2px;
    line-height: 1.3;
}



/* ============================================
   FOOTER NAV — CLEAN + MATCH HEADER NAV
   ============================================ */

/* Remove bullets + reset list spacing */
.gs-footer-widgets-top .footer-block:nth-child(2) .widget_nav_menu ul,
.gs-footer-widgets-top .footer-block:nth-child(3) .widget_nav_menu ul,
.gs-footer-widgets-top .footer-block:nth-child(4) .widget_nav_menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Base link style (matches header nav) */
.gs-footer-widgets-top .footer-block:nth-child(2) .widget_nav_menu a,
.gs-footer-widgets-top .footer-block:nth-child(3) .widget_nav_menu a,
.gs-footer-widgets-top .footer-block:nth-child(4) .widget_nav_menu a {
    display: block;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0;
    text-transform: none;
}

/* Hover + active state (apply to all 3 blocks) */
.gs-footer-widgets-top .footer-block:nth-child(2) .widget_nav_menu a:hover,
.gs-footer-widgets-top .footer-block:nth-child(3) .widget_nav_menu a:hover,
.gs-footer-widgets-top .footer-block:nth-child(4) .widget_nav_menu a:hover,
.gs-footer-widgets-top .footer-block:nth-child(2) .widget_nav_menu .current-menu-item > a,
.gs-footer-widgets-top .footer-block:nth-child(3) .widget_nav_menu .current-menu-item > a,
.gs-footer-widgets-top .footer-block:nth-child(4) .widget_nav_menu .current-menu-item > a {
      /*color: #58b51e;        same hover color as header nav */
}




/* ============================================
   FOOTER - Copyright
   ============================================ */
/* Collapse spacing for the Copyright Bar (footer-5) */
.gs-footer-copyright {
    width: 100%;
    text-align: center;
    margin: 0;
	padding: 0.25rem 0; /* same vertical density as the live site */
    font-size: 10px;     /* matches the current footer text */
}
.gs-footer-copyright .widget,
.gs-footer-copyright .widget p {
    margin: 0;
    padding: 0 0 3px 0; /* top | right | bottom | left */
	color: #7a7a7a;
}

.gs-footer-copyright,
.gs-footer-copyright * {
    white-space: normal !important;
}


/* ============================================
   NAVIGATION HAMBURGER
   ============================================ */
/* Hamburger hidden by default */
.gs-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.gs-hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background: #000;
    margin: 5px 0;
}


/* ============================================
   MEDIA STYLES
   ============================================ */
/* ============================================
   FOOTER RESPONSIVE BEHAVIOR
   ============================================ */

/* Medium screens: Footer-1 full width, 2/3/4 in 3 columns */
@media (max-width: 999px) and (min-width: 768px) {
    .gs-footer-widgets-top {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .gs-footer-widgets-top .footer-block:nth-child(1) {
        grid-column: 1 / -1; /* full width */
    }
}

/* Small screens: all stacked */
@media (max-width: 767px) {
    .gs-footer-widgets-top {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   HAMBURGER MENU
   ============================================ */

@media (max-width: 960px) {

    .gs-header-right {
        display: none; /* hide widget area */
    }

    .gs-hamburger {
        display: block; /* show hamburger */
    }
}

/* ============================================
   CPT Responsive stacking
   ============================================ */
@media (max-width: 768px) {

    .gs-row {
        flex-direction: column;
    }

    /* Force image first for ALL row types */
    .gs-row .gs-image,
    .gs-row.odd .gs-image,
    .gs-row.even .gs-image {
        order: 1;
        width: 100%;
        max-width: 100%;
    }

    /* Force content second for ALL row types */
    .gs-row .gs-content,
    .gs-row.odd .gs-content,
    .gs-row.even .gs-content {
        order: 2;
        width: 100%;
        max-width: 100%;
    }

    /* Mobile image behavior */
	.gs-image img {
		max-height: 390px;
		width: 100%;
		object-fit: cover;
		object-position: center;
		display: block;
	}

}


/* Mobile adjustments */
@media (max-width: 768px) {
    .gs-hero {
        height: 320px;
    }
    .gs-hero-text h1 {
        font-size: 32px;
    }
    .gs-hero-text p {
        font-size: 18px;
    }
    .gs-home-blocks {
        flex-direction: column;
        align-items: center;
    }

    .gs-home-block {
        max-width: 90%;
    }

/* Mobile stacking */

    .gs-contact-widgets {
        flex-direction: column;
        align-items: center;
    }

    .gs-contact-widget {
        width: 90%; /* full width on mobile */
    }
}

@media (max-width: 600px) {
	/*** CPTs ***/
    .gs-block {
        flex-direction: column;
    }
}
