/*
Theme Name: Dharohar Natural
Theme URI: https://example.com/
Author: Dharohar Foods & Lifestyle
Description: Warm, traditional Indian natural-products storefront theme.
Version: 1.0.0
Text Domain: dharohar-natural
License: GPL-2.0-or-later
*/

/* =========================================================
   ROOT
========================================================= */

:root {
    --green: #203b1d;
    --green-2: #2f5129;
    --olive: #6f7e46;
    --cream: #f7f0df;
    --cream-2: #fffaf0;
    --sand: #e8d2a9;
    --gold: #b08a45;
    --ink: #22251f;
    --muted: #6e6b61;
    --line: #ddd4c3;
    --white: #fffdf7;

    --serif: Georgia, "Times New Roman", serif;
    --sans: "Trebuchet MS", Arial, sans-serif;

    --shadow: 0 12px 35px rgba(31,43,25,.10);
}


/* =========================================================
   GLOBAL
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream-2);
    font-family: var(--sans);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

.serif {
    font-family: var(--serif);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .20em;
    font-size: 12px;
    color: var(--olive);
    font-weight: 700;
}

h1,
h2,
h3,
h4 {
    font-family: var(--serif);
    line-height: 1.08;
    margin: 0 0 16px;
}

h1 {
    font-size: clamp(42px, 5vw, 72px);
}

h2 {
    font-size: clamp(32px, 4vw, 48px);
}

h3 {
    font-size: 28px;
}

p {
    margin: 0 0 16px;
}


/* =========================================================
   BUTTON
========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    background: var(--green);
    color: #fff;

    padding: 13px 24px;

    border-radius: 7px;
    border: 1px solid var(--green);

    font-weight: 700;

    transition: .2s ease;
}

.btn:hover {
    background: #162c14;
    color: #fff;
    transform: translateY(-1px);
}


/* =========================================================
   TOP BAR
========================================================= */

.topbar {
    background: var(--green);
    color: #f5f0df;

    font-size: 12px;
    padding: 7px 0;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    width: 100%;

    background: var(--cream-2);

    border-bottom: 1px solid #eee5d5;

    position: sticky;
    top: 0;

    z-index: 100;
}

.header-main {
    min-height: 82px;

    display: flex;
    align-items: center;

    gap: 22px;
}


/* =========================================================
   LOGO
========================================================= */

.brand {
    display: flex;
    align-items: center;

    gap: 10px;

    min-width: 245px;

    flex-shrink: 0;
}

.brand img {
    width: 58px;
    height: 58px;

    border-radius: 50%;

    object-fit: cover;
}

.brand-name {
    display: block;

    font-family: var(--serif);

    font-weight: 700;

    font-size: 27px;

    letter-spacing: .04em;

    color: #5d2f20;
}

.brand-tag {
    display: block;

    font-size: 9px;

    letter-spacing: .16em;

    color: var(--green);

    text-align: center;

    white-space: nowrap;
}


/* =========================================================
   NAVIGATION
========================================================= */
.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;

    margin-left: auto;

    padding: 0;
}

.main-nav a {
    position: relative;

    display: inline-block;

    padding: 31px 0 27px;

    color: #22251f;

    font-family: var(--sans);

    font-size: 13px;

    font-weight: 500;

    line-height: 1;

    white-space: nowrap;

    text-decoration: none !important;

    transition: color .2s ease;
}

.main-nav a:hover {
    color: var(--green) !important;
}


/* ACTIVE PAGE */

.main-nav a.active {
    color: var(--green) !important;

    font-weight: 700;
}


/* ACTIVE UNDERLINE */

.main-nav a.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;

    bottom: 17px;

    height: 2px;

    background: var(--green);

    border-radius: 2px;
}


/* HOVER UNDERLINE */

.main-nav a:not(.active)::after {
    content: "";

    position: absolute;

    left: 50%;
    right: 50%;

    bottom: 17px;

    height: 2px;

    background: var(--green);

    transition: left .2s ease, right .2s ease;
}

.main-nav a:not(.active):hover::after {
    left: 0;
    right: 0;
}

/* =========================================================
   HEADER ACTIONS
========================================================= */

.header-actions {
    display: flex;

    align-items: center;

    gap: 13px;

    margin-left: 4px;

    flex-shrink: 0;
}

.header-actions > span {
    color: var(--green);

    font-size: 17px;

    cursor: pointer;
}

.header-actions > a {
    color: var(--green);

    font-size: 15px;
}


/* =========================================================
   SEARCH
========================================================= */

.search {
    width: 165px;
    height: 40px;

    display: flex;
    align-items: center;

    border: 1px solid var(--line);

    border-radius: 8px;

    padding: 0 11px;

    background: #fff;
}

.search input {
    width: 100%;

    border: 0;
    outline: 0;

    background: transparent;

    font-family: var(--sans);

    font-size: 11px;
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.menu-toggle {
    display: none;

    background: none;

    border: 0;

    font-size: 24px;

    color: var(--green);

    cursor: pointer;
}


/* =========================================================
   REMOVE AUTOMATIC WORDPRESS PAGE TITLE
========================================================= */

/*
   This removes the automatic page title/header that
   WordPress may place before your Custom HTML.
*/

body.page .entry-header,
body.page .page-header {
    display: none !important;
}

body.page .wp-block-post-title {
    display: none !important;
}


/* =========================================================
   GENERAL HERO
========================================================= */

.hero {
    position: relative;

    min-height: 390px;

    background-size: cover;

    background-position: center;

    display: flex;

    align-items: center;

    overflow: hidden;
}

.hero::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(247,240,223,.92) 0%,
            rgba(247,240,223,.70) 45%,
            rgba(247,240,223,.08) 80%
        );
}

.hero-content {
    position: relative;

    z-index: 2;

    width: min(1180px,92%);

    margin: auto;

    padding: 75px 0;
}

.hero-content p {
    max-width: 500px;

    font-size: 17px;
}


/* =========================================================
   CONTACT HERO
========================================================= */

.dh-contact-hero {
    position: relative !important;

    width: 100% !important;

    min-height: 390px !important;

    display: flex !important;

    align-items: center !important;

    overflow: hidden !important;

    margin: 0 !important;

    padding: 0 !important;

    background: #ead7b5 !important;
}

.dh-contact-hero-bg {
    position: absolute !important;

    inset: 0 !important;

    width: 100% !important;

    height: 100% !important;

    max-width: none !important;

    object-fit: cover !important;

    object-position: center center !important;

    z-index: 0 !important;
}

.dh-contact-hero-overlay {
    position: absolute !important;

    inset: 0 !important;

    z-index: 1 !important;

    pointer-events: none !important;

    background:
        linear-gradient(
            90deg,
            rgba(246,231,201,.94) 0%,
            rgba(246,231,201,.78) 35%,
            rgba(246,231,201,.30) 65%,
            rgba(246,231,201,.05) 100%
        ) !important;
}

.dh-contact-hero-content {
    position: relative !important;

    z-index: 2 !important;

    width: min(1180px,92%) !important;

    margin: 0 auto !important;
}

.dh-hero-text {
    width: 52% !important;

    padding: 65px 0 !important;
}

.dh-eyebrow {
    display: block !important;

    margin-bottom: 10px !important;

    color: #243b20 !important;

    font-family: Arial, sans-serif !important;

    font-size: 12px !important;

    font-weight: 700 !important;

    letter-spacing: 2px !important;

    text-transform: uppercase !important;
}

.dh-hero-text h1 {
    margin: 0 !important;

    color: #182b16 !important;

    font-family: Georgia,"Times New Roman",serif !important;

    font-size: clamp(48px,6vw,76px) !important;

    line-height: 1 !important;

    font-weight: 500 !important;
}

.dh-hero-text h2 {
    margin: 15px 0 !important;

    color: #27271f !important;

    font-family: Georgia,"Times New Roman",serif !important;

    font-size: clamp(22px,3vw,30px) !important;

    line-height: 1.25 !important;

    font-weight: 500 !important;
}

.dh-hero-text p {
    max-width: 480px !important;

    margin: 20px 0 0 !important;

    color: #48463c !important;

    font-family: Arial,sans-serif !important;

    font-size: 15px !important;

    line-height: 1.8 !important;
}


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

.section {
    padding: 70px 0;
}

.section.cream {
    background: var(--cream);
}

.section-title {
    text-align: center;

    max-width: 720px;

    margin: 0 auto 35px;
}


/* =========================================================
   GRIDS
========================================================= */

.category-grid,
.product-grid,
.value-grid,
.story-grid,
.footer-grid {
    display: grid;

    gap: 20px;
}

.category-grid {
    grid-template-columns: repeat(4,1fr);
}


/* =========================================================
   CATEGORY CARDS
========================================================= */

.category-card {
    position: relative;

    min-height: 230px;

    border-radius: 10px;

    overflow: hidden;

    background: #555;

    box-shadow: var(--shadow);
}

.category-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: .35s;
}

.category-card::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            0deg,
            rgba(23,36,18,.86),
            rgba(23,36,18,.02) 70%
        );
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-card .overlay {
    position: absolute;

    z-index: 1;

    bottom: 20px;

    left: 20px;
    right: 20px;

    color: #fff;
}

.category-card .overlay h3 {
    margin-bottom: 4px;
}


/* =========================================================
   VALUES
========================================================= */

.value-grid {
    grid-template-columns: repeat(5,1fr);

    border-top: 1px solid var(--line);

    border-bottom: 1px solid var(--line);
}

.value {
    padding: 25px 15px;

    text-align: center;

    border-right: 1px solid var(--line);
}

.value:last-child {
    border-right: 0;
}

.value .icon {
    font-size: 28px;

    margin-bottom: 8px;
}

.value strong {
    display: block;

    font-family: var(--serif);

    font-size: 17px;
}


/* =========================================================
   STORY
========================================================= */

.story-grid {
    grid-template-columns: 1fr 1fr;

    align-items: center;
}

.story-image {
    border: 10px solid #f6efdf;

    box-shadow: var(--shadow);

    transform: rotate(-1deg);
}

.quote {
    padding: 45px;

    background: #f0e2c6;

    border-radius: 8px;
}


/* =========================================================
   PRODUCTS
========================================================= */

.product-grid {
    grid-template-columns: repeat(4,1fr);
}

.product-card {
    background: #fff;

    border: 1px solid var(--line);

    border-radius: 8px;

    overflow: hidden;

    box-shadow: 0 4px 16px rgba(0,0,0,.04);
}

.product-card img {
    width: 100%;

    aspect-ratio: 1.15/1;

    object-fit: cover;
}

.product-info {
    padding: 14px;
}

.product-cat {
    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: .08em;

    color: var(--olive);
}

.product-title {
    font-family: var(--serif);

    font-size: 21px;

    margin: 5px 0;
}

.price {
    font-weight: 700;

    font-size: 17px;
}

.card-bottom {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-top: 10px;
}

.add-cart {
    border: 0;

    background: var(--green);

    color: #fff;

    border-radius: 5px;

    padding: 9px 13px;

    cursor: pointer;
}


/* =========================================================
   ABOUT
========================================================= */

.about-values {
    background: #f1ebdc;
}

.mini-cards {
    display: grid;

    grid-template-columns: repeat(4,1fr);

    gap: 16px;
}

.mini-card {
    border: 1px solid var(--line);

    background: #fff;

    padding: 12px;

    text-align: center;
}

.mini-card img {
    aspect-ratio: 1.15/1;

    object-fit: cover;

    margin-bottom: 10px;
}


/* =========================================================
   CONTACT
========================================================= */

.contact-grid {
    display: grid;

    grid-template-columns: .8fr 1.2fr;

    gap: 40px;
}

.contact-box,
.form-box {
    background: #fff;

    border: 1px solid var(--line);

    border-radius: 8px;

    padding: 32px;

    box-shadow: var(--shadow);
}

.contact-item {
    display: flex;

    gap: 16px;

    padding: 16px 0;

    border-bottom: 1px solid var(--line);
}

.contact-icon {
    width: 44px;
    height: 44px;

    display: grid;

    place-items: center;

    background: var(--green);

    color: #fff;

    border-radius: 50%;

    flex: none;
}

.form-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;
}

.form-field {
    display: flex;

    flex-direction: column;

    gap: 7px;
}

.form-field.full {
    grid-column: 1/-1;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;

    border: 1px solid var(--line);

    border-radius: 7px;

    padding: 13px;

    background: #fff;

    font: inherit;
}

.form-field textarea {
    min-height: 150px;

    resize: vertical;
}

.notice {
    padding: 14px;

    background: #f3ead7;

    border-left: 4px solid var(--gold);

    margin-bottom: 20px;
}


/* =========================================================
   MAP
========================================================= */

.map-placeholder {
    background:
        #e5eadc
        url('../images/reference-contact.jpg')
        center/cover;

    min-height: 250px;

    border-radius: 8px;

    display: grid;

    place-items: center;

    color: #fff;

    font-weight: 700;

    text-shadow: 0 2px 6px #000;
}


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

.footer-cta {
    background: var(--green);

    color: #fff;

    text-align: center;

    padding: 48px 0;
}

.footer {
    background: #172d15;

    color: #f7f0df;

    padding: 40px 0 18px;
}

.footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
}

.footer h4 {
    font-size: 20px;

    color: #fff;
}

.footer a {
    display: block;

    color: #d9ddce;

    margin: 6px 0;

    font-size: 14px;
}

.footer .brand-name {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.18);

    margin-top: 25px;

    padding-top: 15px;

    font-size: 12px;

    display: flex;

    justify-content: space-between;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.breadcrumb {
    padding: 15px 0;

    font-size: 13px;

    color: var(--muted);
}


/* =========================================================
   SHOP
========================================================= */

.shop-layout {
    display: grid;

    grid-template-columns: 230px 1fr;

    gap: 28px;
}

.filters {
    background: #fff;

    border: 1px solid var(--line);

    border-radius: 8px;

    padding: 22px;

    align-self: start;

    position: sticky;

    top: 105px;
}

.filter-group {
    border-bottom: 1px solid var(--line);

    padding: 14px 0;
}

.filter-group label {
    display: block;

    margin: 7px 0;

    font-size: 14px;
}

.shop-products {
    display: grid;

    grid-template-columns: repeat(3,1fr);

    gap: 18px;
}

.pagination {
    display: flex;

    gap: 8px;

    justify-content: center;

    margin-top: 28px;
}

.pagination a,
.pagination span {
    padding: 8px 12px;

    border: 1px solid var(--line);

    border-radius: 5px;
}

.pagination .current {
    background: var(--green);

    color: #fff;
}


/* =========================================================
   WOOCOMMERCE
========================================================= */

.woocommerce .site-main {
    padding: 40px 0;
}

.woocommerce .button,
.woocommerce a.button {
    background: var(--green);

    color: #fff;

    border-radius: 6px;
}

.woocommerce-message {
    border-top-color: var(--green);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .header-main {
        gap: 15px;
    }

    .brand {
        min-width: 220px;
    }

    .main-nav {
        gap: 16px;
    }

    .main-nav a {
        font-size: 12px;
    }

    .search {
        width: 140px;
    }

}
/* =========================================================
   TABLET / MOBILE
========================================================= */

@media (max-width: 900px) {

    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: block;

        margin-left: auto;
    }

    .header-actions .search {
        display: none;
    }

    .header-main {
        min-height: 70px;

        gap: 10px;
    }

    .brand {
        min-width: 0;
    }

    .brand img {
        width: 50px;
        height: 50px;
    }

    .brand-name {
        font-size: 22px;
    }

    .brand-tag {
        font-size: 7px;
    }

    .category-grid,
    .product-grid,
    .shop-products {
        grid-template-columns: repeat(2,1fr);
    }

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

    .value:nth-child(even) {
        border-right: 0;
    }

    .value:nth-child(-n+3) {
        border-bottom: 1px solid var(--line);
    }

    .story-grid,
    .contact-grid,
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .filters {
        position: static;
    }

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

    .dh-contact-hero {
        min-height: 430px !important;
    }

    .dh-contact-hero-bg {
        object-position: 65% center !important;
    }

    .dh-hero-text {
        width: 70% !important;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .topbar .container {
        font-size: 10px;
    }

    .topbar .container span:last-child {
        display: none;
    }

    .header-main {
        min-height: 68px;
    }

    .brand img {
        width: 45px;
        height: 45px;
    }

    .brand-name {
        font-size: 20px;
    }

    .brand-tag {
        font-size: 6px;
    }

    .hero {
        min-height: 420px;
    }

    .hero-content {
        padding: 55px 0;
    }

    .hero-content p {
        font-size: 15px;
    }

    .category-grid,
    .product-grid,
    .shop-products,
    .mini-cards,
    .footer-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

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

    .value {
        border-right: 0 !important;
    }

    .footer-bottom {
        flex-direction: column;

        gap: 8px;
    }

    .section {
        padding: 50px 0;
    }

    .form-field.full {
        grid-column: auto;
    }

    .form-box {
        padding: 24px;
    }

    .dh-contact-hero {
        min-height: 460px !important;
    }

    .dh-contact-hero-bg {
        object-position: 67% center !important;
    }

    .dh-hero-text {
        width: 100% !important;

        padding: 55px 0 !important;
    }

    .dh-hero-text h1 {
        font-size: 48px !important;
    }

    .dh-hero-text h2 {
        font-size: 24px !important;
    }

    .dh-hero-text p {
        font-size: 14px !important;
    }

}

/* Correct single-product controls to match the Dharohar palette. */
body.single-product.woocommerce button.single_add_to_cart_button,
body.single-product.woocommerce a.button,
body.single-product.woocommerce input.button {
    background: #203b1d !important;
    color: #fffdf7 !important;
    border: 1px solid #203b1d !important;
    border-radius: 6px !important;
    font-weight: 700;
}
body.single-product.woocommerce button.single_add_to_cart_button:hover,
body.single-product.woocommerce a.button:hover,
body.single-product.woocommerce input.button:hover {
    background: #2f5129 !important;
    color: #fffdf7 !important;
    border-color: #2f5129 !important;
}
body.single-product.woocommerce div.product div.images img { border-radius: 10px; }
@media (max-width: 767px) {
    body.single-product.woocommerce div.product div.images,
    body.single-product.woocommerce div.product div.summary { float: none; width: 100%; }
    body.single-product.woocommerce div.product div.images { margin-bottom: 24px; }
}
