/*
Theme Name: Smart Home Kauai
Description: Custom child theme for Smart Home Kauai.
Author: DataSpace Industries
Template: generatepress
Version: 1.0.0
*/

/* ========================================
   Smart Home Kauai
   ======================================== */

:root {
    --shk-ivory: #faf9f7;
    --shk-charcoal: #3d3936;
    --shk-text: #35312d;
    --shk-accent: #b98562;
    --shk-rule: #c99167;
    --shk-border: #ddd5cf;
    --shk-input-border: #ccc4bd;
    --shk-hero-warm: #f1cfaa;

    --shk-sunset-1: #b88b67;
    --shk-sunset-2: #d0a16f;
    --shk-sunset-3: #e0b77e;
    --shk-sunset-4: #d49a70;
    --shk-sunset-5: #a77e69;
}


/* ========================================
   Header / Branding
   ======================================== */

.site-header {
    position: relative;
    background: var(--shk-ivory);
    border-bottom: 0;
}

.inside-header {
    padding-top: 22px;
    padding-bottom: 22px;
}

.site-branding {
    flex-shrink: 0;
}

.site-header .site-branding .main-title,
.site-header .site-branding .main-title a {
    color: var(--shk-charcoal);
    font-size: 25px;
    font-weight: 400;
    letter-spacing: 0.075em;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.site-header .site-branding .main-title a:hover {
    color: var(--shk-accent);
}


/* Sunset accent */

.site-header::after {
    content: "";
    display: block;
    width: 100%;
    height: 8px;
    background: linear-gradient(
        90deg,
        var(--shk-sunset-1) 0%,
        var(--shk-sunset-2) 25%,
        var(--shk-sunset-3) 50%,
        var(--shk-sunset-4) 75%,
        var(--shk-sunset-5) 100%
    );
}


/* ========================================
   Navigation
   ======================================== */

.main-navigation {
    background: transparent;
}

.main-navigation .main-nav ul li a {
    padding-left: 20px;
    padding-right: 20px;
    color: var(--shk-text);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.035em;
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li:focus > a,
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
    color: var(--shk-accent);
    background: transparent;
}


/* ========================================
   Homepage Hero
   ======================================== */

.smarthome-hero {
    min-height: 620px;
    padding: 0;
}

.smarthome-hero .wp-block-cover__inner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: clamp(45px, 7vw, 110px);
    padding-right: 40px;
}

.smarthome-hero .hero-title {
    max-width: 700px;
    margin: 0 0 30px;
    color: var(--shk-hero-warm);
    font-size: clamp(36px, 3.6vw, 54px) !important;
    line-height: 1.10;
    font-weight: 300;
    letter-spacing: -0.015em;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.30);
}

.smarthome-hero .hero-markets {
    margin: 0;
    color: #fff;
    font-size: 21px;
    line-height: 1.4;
    font-weight: 400;
    letter-spacing: 0.045em;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.30);
}


/* ========================================
   Solutions
   ======================================== */

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.75rem 2.5rem;
    margin-top: 2.5rem;
}

.solution {
    padding-top: 1.25rem;
    border-top: 2px solid var(--shk-rule);
}

.solution h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 2rem;
    line-height: 1.15;
}

.solution p {
    margin: 0;
}

.solution-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 0 1.25rem;
}


/* ========================================
   Products
   ======================================== */

.products-intro {
    max-width: 850px;
    margin-bottom: 3rem;
}

.products-intro h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.product-category {
    padding: 1.75rem;
    border: 1px solid var(--shk-border);
    border-top: 4px solid var(--shk-rule);
    border-radius: 6px;
    background: var(--shk-ivory);
}

.product-category h2 {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
}

.product-category p {
    margin: 0;
}

.products-note {
    max-width: 850px;
    margin-top: 3rem;
    padding-top: 1.25rem;
    border-top: 2px solid var(--shk-rule);
}

.products-note p {
    margin: 0;
}


/* ========================================
   About
   ======================================== */

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 4rem;
    align-items: start;
}

.about-image img {
    display: block;
    width: 100%;
    height: auto;
}

.about-section {
    padding-top: 1.25rem;
    margin-bottom: 2.5rem;
    border-top: 2px solid var(--shk-rule);
}

.about-section:first-child {
    padding-top: 0;
    border-top: 0;
}

.about-section h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.about-section p {
    margin: 0;
}


/* ========================================
   Contact
   ======================================== */

.contact-page {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 5rem;
    align-items: start;
}

.contact-intro h2 {
    margin-top: 0;
}

.contact-form {
    padding: 2rem;
    border-top: 4px solid var(--shk-rule);
    background: var(--shk-ivory);
}

.contact-form form {
    display: grid;
    gap: 0.6rem;
}

.contact-form label {
    margin-top: 0.75rem;
    font-weight: 500;
}

.contact-form label:first-child {
    margin-top: 0;
}

.contact-form label span {
    font-weight: normal;
    opacity: 0.65;
}

.contact-form input,
.contact-form textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--shk-input-border);
    border-radius: 4px;
    background: #fff;
    font: inherit;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    justify-self: start;
    margin-top: 1rem;
    padding: 0.8rem 1.4rem;
    border: 0;
    border-radius: 4px;
    background: #8a6745;
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.contact-demo-note {
    margin: 1.25rem 0 0;
    font-size: 0.85rem;
    opacity: 0.6;
}


/* ========================================
   Responsive
   ======================================== */



/* Products: three columns to two */

@media (max-width: 900px) {

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* About and Contact: two columns to one */

@media (max-width: 800px) {

    .about-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-page {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}


/* General mobile */

@media (max-width: 768px) {

    .inside-header {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .site-header .site-branding .main-title,
    .site-header .site-branding .main-title a {
        font-size: 21px;
    }

    .smarthome-hero {
        min-height: 520px;
    }

    .smarthome-hero .wp-block-cover__inner-container {
        padding-left: 28px;
        padding-right: 28px;
    }

    .smarthome-hero .hero-title {
        font-size: 36px !important;
    }

    .smarthome-hero .hero-markets {
        font-size: 17px;
    }
}


/* Solutions: two columns to one */

@media (max-width: 700px) {

    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}


/* Products: two columns to one */

@media (max-width: 600px) {

    .products-grid {
        grid-template-columns: 1fr;
    }
}
