/*
Theme Name: House of Running Dogs Custom
Theme URI: https://houseofrunningdogs.com
Author: Custom Developer
Description: A bespoke Bootstrap 5 theme for House of Running Dogs.
Version: 1.0
Text Domain: hord-theme
*/

/* --- Typography --- */
h1, h2, h3, h4, h5, h6, .display-font {
    font-family: "adobe-garamond-pro", Georgia, serif;
    font-weight: 700;
}

body, p, a, li {
    font-family: "montserrat", sans-serif;
    font-weight: 400;
}

/* --- Core Layout & Colors --- */
body {
    background-color: #3a1217;
    background-image: url('images/tile-repeat.png');
    background-repeat: repeat;
    background-size: 150px; /* Adjust size based on preference */
    padding-top: 120px !important;

}

@media (max-width: 991.98px) {
    body {
        padding-top: 100px !important;
    }
    .navbar-collapse {
        background-color: #240f13;
        padding: 1rem;
        margin-top: 0.5rem;
        border-top: 1px solid rgba(218, 152, 114, 0.1);
    }
}

.text-accent {
    color: #da9872 !important;
}

.bg-dark-accent {
    background-color: #240f13 !important;
}

/* --- Header & Navigation --- */
.navbar-brand img {
    max-height: 100px;
}

@media (min-width: 992px) {
    .navbar-nav-left {
        margin-right: auto;
    }
    .navbar-nav-right {
        margin-left: auto;
    }
    .desktop-logo-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
    }
}


/* --- Fixed Header Framework with Scroll-Fade Trigger --- */

.main-site-header {
    /* DEFAULT TOP STATE: Completely clear background and invisible border */
    background-color: rgba(36, 15, 19, 0) !important;
    border-bottom: 1px solid rgba(218, 152, 114, 0); 
    backdrop-filter: blur(0px);
    
    /* Smooth transition transition for all changing properties */
    transition: background-color 0.4s ease-in-out, 
                border-color 0.4s ease-in-out, 
                backdrop-filter 0.4s ease-in-out,
                padding 0.4s ease-in-out;
    z-index: 1050;
}

/* SCROLLED STATE: Injected via JavaScript when moving down the page */
.main-site-header.is-scrolled {
    background-color: rgba(36, 15, 19, 0.95) !important; /* Deep burgundy backdrop pops in */
    border-bottom: 1px solid rgba(218, 152, 114, 0.15); /* Soft alignment line fades in */
    backdrop-filter: blur(10px); /* Glass blur activates */
}

/* Compensate body padding for the absolute floating menu layer */
body {
    padding-top: 120px !important; 
}

/* Responsive Adaptive Dropdowns */
@media (max-width: 991.98px) {
    body {
        padding-top: 100px !important;
    }
    
    /* Ensure the dropdown menu panel itself has a solid color on mobile 
       so menu links are readable even if the main header is transparent */
    .navbar-collapse {
        background-color: #240f13;
        padding: 1rem;
        margin-top: 0.5rem;
        border: 1px solid rgba(218, 152, 114, 0.1);
    }
}

.navbar {
    min-height: 100px;
}

@media (min-width: 992px) {
    .navbar-nav-left, 
    .navbar-nav-right {
        height: 100%;
        display: flex;
        align-items: center;
    }
    
    .desktop-logo-center {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 1100;
    }
}
/* --- Hero Slider --- */
.hero-slider-section {
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    background: rgba(36, 15, 19, 0.6); /* Tint overlay for readability */
}

.hero-title {
    font-size: 3.5rem;
    letter-spacing: 2px;
    line-height: 1.2;
}

/* --- Utility Classes --- */
.card-case-study {
    background-color: #240f13;
    border: 1px solid #da9872;
    transition: transform 0.3s ease;
}

.card-case-study:hover {
    transform: translateY(-5px);
}

.navbar-nav .nav-link {
    transition: color 0.2s ease-in-out;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #da9872 !important; /* Changes to your terracotta accent color on hover */
}

/* --- Our Craft Section Custom Styles --- */

.craft-image-container {
    overflow: hidden;
    min-height: 350px; /* Ensures a good height on mobile layout */
}

/* Linear gradient overlay starting transparent and easing to a dark vignette at the bottom */
.craft-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(36, 15, 19, 0.85) 100%);
}

.craft-image-overlay h3 {
    line-height: 1.3;
    letter-spacing: 1px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6); /* Makes the white font pop over light areas of image */
}

/* Fixes for body texts inside the white box to keep it high-end */
.bg-white h5 {
    color: #240f13;
    letter-spacing: 0.5px;
}

.bg-white p.text-muted {
    font-size: 0.8rem;
    line-height: 1.4;
}

/* --- Explore By Style Custom Styles --- */

.tile-style-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* The wrapper holds the image and hides the "zoom" spillover */
.swatch-wrapper {
    aspect-ratio: 1 / 1; /* Keeps the swatches perfectly square */
    background-color: rgba(36, 15, 19, 0.4); /* Subtle dark backing behind transparent images */
    border-radius: 4px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.swatch-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.tile-style-title {
    transition: color 0.3s ease;
}

/* --- Hover Effects --- */
.tile-style-card:hover .swatch-wrapper {
    transform: translateY(-8px); /* Lifts the swatch card up slightly */
    border-color: #da9872 !important; /* Changes border to accent color */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4); /* Adds depth on hover */
}

.tile-style-card:hover .swatch-img {
    transform: scale(1.1); /* Elegant zoom effect inside the square box */
}

.tile-style-card:hover .tile-style-title {
    color: #da9872 !important; /* Turns text into the terracotta color */
}


/* --- Design Consultation Section Custom Styles --- */

.consultation-images-grid {
    display: grid;
    grid-template-rows: 1fr 1fr; /* Splitting the column into two exactly equal vertical fractions */
    gap: 1.5rem; /* Matches default Bootstrap gutters spacing */
}

.consultation-img-box {
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(218, 152, 114, 0.2); /* Subtly frames the images with your accent color */
}

@media (max-width: 767.98px) {
    .consultation-images-grid {
        /* On small screens, prevent the images from shrinking to nothing since there's no fixed height from a left box */
        min-height: 500px; 
    }
}

/* Form Minimalist Styling to match your high-end look */
.consultation-form-wrapper input[type="text"],
.consultation-form-wrapper input[type="email"],
.consultation-form-wrapper textarea {
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 15px;
    border: 1px solid #cccccc;
    background-color: #f8f9fa;
    font-family: "montserrat", sans-serif;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.consultation-form-wrapper input:focus,
.consultation-form-wrapper textarea:focus {
    outline: none;
    border-color: #da9872;
}

.consultation-form-wrapper input[type="submit"] {
    background-color: #3a1217;
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    text-transform: uppercase;
    font-family: "adobe-garamond-pro", Georgia, serif;
    font-weight: 700;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
    width: 100%;
}

.consultation-form-wrapper input[type="submit"]:hover {
    background-color: #240f13;
    color: #da9872;
}

/* --- Full Bleed Alternating Rows --- */

/* Force row to clear default gutters and allow bleed */
.asymmetric-rows-section .row.g-0 {
    --bs-gutter-x: 0;
}

.asymmetric-img-wrapper {
    width: 100%;
    height: 450px; /* Adjust this to alter row depth on desktop */
    overflow: hidden;
}

.asymmetric-img-wrapper img {
    width: 100%;
    height: 100%;
}

/* Constrains the text widths on large monitors so prose lines don't get awkwardly long */
.asymmetric-text-content {
    max-width: 540px; 
}

/* Responsive tweaks for seamless presentation across mobile + desktop screen variations */
@media (max-width: 991.98px) {
    .asymmetric-img-wrapper {
        height: 320px; /* Slightly shorter frame suited for handheld displays */
    }
    
    .asymmetric-text-content {
        max-width: 100%;
    }
}

@media (min-width: 992px) {
    /* Adding extra margin offsets internally so row texts dynamically align with standard Bootstrap structural guidelines */
    .row.g-0:nth-of-type(1) .asymmetric-text-content {
        margin-left: 10% !important;
        margin-right: auto !important;
    }
    .row.g-0:nth-of-type(2) .asymmetric-text-content {
        margin-right: 10% !important;
        margin-left: auto !important;
    }
}
/* --- Adjusting Header Height for 100px Logo --- */
.navbar {
    min-height: 100px; /* Gives padding above and below the 100px logo */
}

@media (min-width: 992px) {
    /* Perfectly center aligns the left and right navigation links vertically alongside the tall logo */
    .navbar-nav-left, 
    .navbar-nav-right {
        height: 100%;
        display: flex;
        align-items: center;
    }
    
    /* Ensures the absolute positioned logo centers beautifully within the new height container */
   .desktop-logo-center {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 1100;
    }
}

/* --- Custom Geometric Tile Hamburger --- */

/* Strip default Bootstrap toggle styles */
.navbar-toggler {
    border: none !important;
    padding: 0;
    outline: none !important;
    box-shadow: none !important;
}

/* Container for our tile elements */
.tile-hamburger {
    width: 28px;
    height: 22px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

/* Individual tile-bar styling: Sharp corners, crisp color */
.tile-bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #da9872; /* Terracotta accent color */
    border-radius: 0px; /* Kept completely square like a tile edge */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.3s ease, 
                background-color 0.3s ease;
    transform-origin: left center;
}

/* --- The Animation Logic when Menu Opens --- */

/* Top bar rotates 45 degrees down into the 'X' */
.navbar-toggler:not(.collapsed) .bar-top {
    transform: rotate(45deg);
    top: -1px;
    left: 4px;
    position: relative;
    background-color: #ffffff; /* Turns white when active for contrast */
}

/* Middle bar slides right and disappears like a shifting tile */
.navbar-toggler:not(.collapsed) .bar-middle {
    width: 0%;
    opacity: 0;
}

/* Bottom bar rotates 45 degrees up into the 'X' */
.navbar-toggler:not(.collapsed) .bar-bottom {
    transform: rotate(-45deg);
    bottom: -1px;
    left: 4px;
    position: relative;
    background-color: #ffffff;
}

/* Soft hover effect on mobile if touched/hovered */
.navbar-toggler:hover .tile-bar {
    background-color: #ffffff;
}

/* --- Refined 2x2 Craft Link Blocks --- */

.craft-service-link {
    background-color: #fcfbfc; /* Off-white block fill */
    border: 1px solid rgba(36, 15, 19, 0.08); /* Minimal framing border */
    border-radius: 0px; /* Kept square to retain the tile aesthetic */
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.3s ease, 
                background-color 0.3s ease,
                box-shadow 0.3s ease;
}

.craft-icon-box {
    transition: transform 0.3s ease;
}

.craft-service-link h5 {
    color: #240f13 !important;
    transition: color 0.3s ease;
}

/* --- Interactive Hover Effects --- */
.craft-service-link:hover {
    transform: translateY(-4px); /* Clean upward float */
    border-color: #da9872; /* Border morphs into your terracotta accent */
    background-color: #ffffff; /* Sharp color brightening */
    box-shadow: 0 8px 20px rgba(36, 15, 19, 0.06); /* Premium soft depth */
}

/* Graphic asset pops upward slightly on its own axis upon container hover */
.craft-service-link:hover .craft-icon-box {
    transform: scale(1.05) translateY(-2px);
}

/* Service heading switches to accent color on hover */
.craft-service-link:hover h5 {
    color: #da9872 !important;
}

/* Force the SVG containers to show physical dimensions */
.craft-icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Prevents the grid from crushing the icon on small screens */
}

.craft-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* --- Fix Default Blue Phone & Email Links in Footer --- */

/* Target the specific links in the contact list */
.footer-contact-list a {
    color: #a0a0a0 !important; /* Forces them to match the elegant, muted gray of the other links */
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

/* Ensure they transition beautifully to your signature terracotta on hover */
.footer-contact-list a:hover,
.footer-contact-list a:focus {
    color: #da9872 !important; /* Terracotta accent */
    text-decoration: none;
}

/* --- Content Hyperlink Custom Styling --- */

/* 1. Dark Page Links (Default Template) */
.page-body-copy a {
    color: #da9872; /* Signature terracotta accent */
    text-decoration: underline;
    text-underline-offset: 4px; /* Gives the underline breathing room */
    text-decoration-thickness: 1px;
    font-weight: 500; /* Makes text links slightly sharper than body copy */
    transition: color 0.2s ease-in-out, text-decoration-color 0.2s ease-in-out;
}

.page-body-copy a:hover,
.page-body-copy a:focus {
    color: #ffffff; /* Fades to crisp white on hover */
    text-decoration-color: #da9872;
}


/* 2. Light Page Links (Alternate Template) */
.page-body-copy-light a {
    color: #da9872; /* Signature terracotta accent */
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    font-weight: 500;
    transition: color 0.2s ease-in-out, text-decoration-color 0.2s ease-in-out;
}

.page-body-copy-light a:hover,
.page-body-copy-light a:focus {
    color: #240f13; /* Fades to your deep burgundy on hover */
    text-decoration-color: #240f13;
}

/* --- Blog Single Post Layout (single.php) Styling --- */

.post-header-section {
    border-bottom: 1px solid rgba(218, 152, 114, 0.15);
    margin-bottom: 3.5rem;
}

.post-header-section h1 {
    font-size: 3rem;
    line-height: 1.15;
}

.post-categories a {
    color: #da9872;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.post-categories a:hover {
    color: #ffffff;
}

/* Sidebar Framework and Sticky Behaviors */
.sidebar-featured-panel {
    background-color: rgba(36, 15, 19, 0.5);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-featured-panel:hover {
    transform: scale(1.02);
}

.sidebar-meta-box {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Post Pagination Overrides */
.post-navigation-links a {
    color: #a0a0a0;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.post-navigation-links a:hover {
    color: #da9872;
}

/* Utility Class Micro-Interaction */
.hover-white {
    transition: color 0.2s ease, padding-left 0.2s ease;
}
.hover-white:hover {
    color: #ffffff !important;
    padding-left: 4px;
}

/* Smooth out text formatting changes for blog layouts */
.blog-body-content p {
    margin-bottom: 1.75rem;
    color: #e5e5e5;
}