/* Custom Styles for Amana World */

:root {
    --primary-color: #3e2a1e;
    --secondary-color: #c9962c;
    --accent-red: #b8342a;
    --text-color: #33291f;
    --bg-light: #faf7f2;
    --bg-dark: #241811;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
}

.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.text-warning { color: var(--secondary-color) !important; }

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(36, 24, 17, 0.82), rgba(36, 24, 17, 0.82)), url('/images/amana/hero/hero-interior.jpg') no-repeat center center/cover;
    color: white;
    padding: 100px 0;
    text-align: center;
}

/* Red divider bar used under Mission/Vision style headings, matching the brand profile */
.divider-red {
    width: 60px;
    height: 4px;
    background-color: var(--accent-red);
    border-radius: 2px;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Service Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-card .card-body {
    padding: 25px;
}

.service-card .card-title {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card .icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: rgba(62, 42, 30, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-card:hover .icon-wrapper {
    background-color: var(--primary-color);
    color: white;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #2a1c14;
    border-color: #2a1c14;
}

.btn-warning {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background-color: #a87b21;
    border-color: #a87b21;
    color: white;
}

/* Utilities */
.shadow-text {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.tracking-wide {
    letter-spacing: 0.1em;
}

.hover-white:hover {
    color: white !important;
}

/* Dropdown Hover Effect */
@media (min-width: 992px) {
    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
    
    /* Nested Dropdown Hover */
    .dropend:hover > .dropdown-menu {
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 100% !important;
        margin-left: 0.125rem !important;
        transform: none !important;
        min-width: 280px;
    }
}

.dropend .dropdown-menu {
    border-radius: 0.5rem;
}

/* Active Main Menu Link Color */
.navbar-nav .nav-link.active,
.navbar-nav .nav-link.active.text-primary,
.navbar-nav .nav-link.active.text-dark {
    color: var(--secondary-color) !important;
}

/* ==========================================================================
   Site Header (dark brand navbar)
   ========================================================================== */
.site-topbar {
    background-color: var(--bg-dark);
}

.site-navbar {
    background-color: var(--primary-color);
}

.site-navbar .navbar-brand img {
    background-color: #fff;
    border-radius: 0.375rem;
    padding: 0.25rem;
}

.site-navbar .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: color 0.2s ease;
}

.site-navbar .navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
}

.site-navbar .navbar-nav .nav-link.active {
    color: var(--secondary-color) !important;
}

.site-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Site Footer (light)
   ========================================================================== */
.site-footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer h5 {
    color: var(--secondary-color) !important;
}

.site-footer p,
.site-footer .footer-muted {
    color: rgba(255, 255, 255, 0.55) !important;
}

.site-footer a.footer-link {
    color: rgba(255, 255, 255, 0.55) !important;
    text-decoration: none;
}

.site-footer a.footer-link:hover {
    color: var(--secondary-color) !important;
}

.site-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Structural layout patterns (page-hero, bento grid, zig-zag, etc.)
   ========================================================================== */

/* Split hero: dark panel + full-height photo, used by <x-page-hero> */
.split-hero {
    min-height: 420px;
}

.split-hero .split-hero-text {
    background-color: var(--bg-dark);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 3rem;
    min-height: 420px;
}

.split-hero .split-hero-image {
    height: 260px;
    overflow: hidden;
}

.split-hero .split-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.split-hero .eyebrow {
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    font-size: 0.85rem;
}

@media (min-width: 992px) {
    .split-hero .split-hero-text {
        min-height: 480px;
    }

    .split-hero .split-hero-image,
    .split-hero .split-hero-image img {
        height: 480px;
    }
}

/* Asymmetric image treatment: offset accent panel behind an image */
.accent-panel-wrap {
    position: relative;
}

.accent-panel-wrap::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 70%;
    height: 70%;
    background-color: var(--secondary-color);
    border-radius: 0.5rem;
    z-index: 0;
}

.accent-panel-wrap img {
    position: relative;
    z-index: 1;
}

/* Bento-style grid tiles (mixed sizes via col spans; this just styles the tile) */
.bento-tile {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    display: block;
    color: #fff;
    text-decoration: none;
    min-height: 220px;
}

.bento-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.bento-tile:hover img {
    transform: scale(1.06);
}

.bento-tile .bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(36,24,17,0.1) 40%, rgba(36,24,17,0.88) 100%);
}

.bento-tile .bento-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: #fff;
}

.bento-tile.bento-tile-lg {
    min-height: 320px;
}

/* Two-tone split band (Mission | Vision) */
.two-tone-band {
    display: flex;
    flex-wrap: wrap;
    border-radius: 0.75rem;
    overflow: hidden;
}

.two-tone-band > .two-tone-half {
    flex: 1 1 320px;
    padding: 3rem;
}

.two-tone-band > .two-tone-half.dark {
    background-color: var(--primary-color);
    color: #fff;
}

.two-tone-band > .two-tone-half.light {
    background-color: var(--bg-light);
    color: var(--text-color);
}

/* Icon tile grid ("What We Do") */
.icon-tile {
    background-color: #fff;
    border-radius: 0.75rem;
    padding: 1.75rem 1.25rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.icon-tile .icon-wrapper {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background-color: rgba(62, 42, 30, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

/* Full-bleed header with overlay (service detail) */
.full-bleed-header {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: flex-end;
    color: #fff;
    background-size: cover;
    background-position: center;
}

.full-bleed-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(36,24,17,0.35) 0%, rgba(36,24,17,0.92) 100%);
}

.full-bleed-header .full-bleed-content {
    position: relative;
    z-index: 1;
    padding: 3rem 0;
}

/* Horizontal highlight strip (replaces boxed bullet list) */
.highlight-strip-item {
    text-align: center;
    padding: 1.25rem 1rem;
}

.highlight-strip-item i {
    font-size: 1.6rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    display: inline-block;
}

/* Continuous logo bar (Clients strip on Home) */
.logo-bar-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1.75rem;
    border-right: 1px solid #eee;
    min-height: 110px;
}

/* Category quick-nav pills (Gallery) */
.category-pill {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 50rem;
    background-color: var(--bg-light);
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(62, 42, 30, 0.15);
    transition: all 0.2s ease;
}

.category-pill:hover {
    background-color: var(--primary-color);
    color: #fff;
}