/* ============================================================
   responsive.css - Global adaptive layer for Occult Hope
   Mobile-First Responsive Design Layer
   ============================================================ */

:root {
    /* Mobile-first base font size */
    --base-font-size: 14px;
    --header-height: 80px;
    --gutter-xs: 12px;
    --gutter-sm: 16px;
    --gutter-md: 20px;
    --gutter-lg: 28px;
    --gutter-xl: 40px;
}

/* Base Reset & Responsive Foundation */
html {
    overflow-x: hidden;
    max-width: 100%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    scroll-behavior: smooth;
    font-size: clamp(13px, 1.4vw, 16px);
}

body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    margin: 0;
    padding: 0 !important;
}

/* Universal Box Sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Responsive Media Elements */
img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Form Elements */
a,
button,
input,
select,
textarea {
    max-width: 100%;
}

/* Touch-Friendly Interactive Elements */
button,
a,
input[type="button"],
input[type="submit"],
label {
    min-height: 44px;
    padding: max(10px, 0.5em);
}

/* Responsive Typography */
p,
h1,
h2,
h3,
h4,
h5,
h6,
li,
.faq-q,
.card-text,
.crystal-name {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

h1,
.h1 {
    font-size: clamp(24px, 5vw, 48px);
    line-height: 1.2;
}

h2,
.h2 {
    font-size: clamp(20px, 4vw, 36px);
    line-height: 1.25;
}

h3,
.h3 {
    font-size: clamp(18px, 3.5vw, 28px);
    line-height: 1.3;
}

h4,
.h4 {
    font-size: clamp(16px, 3vw, 22px);
    line-height: 1.35;
}

h5,
.h5 {
    font-size: clamp(14px, 2.5vw, 18px);
    line-height: 1.4;
}

h6,
.h6 {
    font-size: clamp(12px, 2vw, 16px);
    line-height: 1.5;
}

p {
    font-size: clamp(13px, 2.2vw, 16px);
    line-height: 1.6;
}

/* Bootstrap Grid Responsive Fix */
.row {
    max-width: 100%;
    margin-right: -15px;
    margin-left: -15px;
}

.container,
.container-fluid {
    max-width: 100%;
    padding-right: var(--gutter-sm);
    padding-left: var(--gutter-sm);
}

.container [class*="col-"] {
    min-width: 0;
}

/* ============================================================
   HEADER RESPONSIVENESS - Mobile First
   ============================================================ */

.nh-wrap {
    position: fixed;
    width: 100vw;
    top: 0;
    left: 0;
    z-index: 9999;
    max-width: 100vw;
}

.nh-bar {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    overflow: visible;
    overflow-y: visible;
    padding: 0;
    position: relative;
    z-index: 999;
}

.nh-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 var(--gutter-sm);
    gap: var(--gutter-xs);
}

.nh-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-shrink: 0;
    text-decoration: none;
}

.nh-brand img {
    max-height: 46px;
    width: auto;
    max-width: calc(100vw - 80px);
    object-fit: contain;
}

.nh-binfo {
    display: none;
}

.nh-nav {
    display: none;
    flex-wrap: wrap;
    justify-content: flex-end;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2px;
    position: relative;
    z-index: 1000;
}

.nh-cta {
    display: none;
}

.nh-burger {
    display: flex;
    width: 38px;
    height: 38px;
}

/* Mobile Menu Responsive */
.nh-mob {
    max-width: 100vw;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 100px var(--gutter-sm) var(--gutter-md);
}

.nh-mob ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nh-mob ul>li>a {
    display: block;
    padding: 15px 0;
    font-size: clamp(14px, 4vw, 17px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: all 0.2s ease;
}

.nh-mob .ns li a {
    padding: 10px 0 10px 14px;
    font-size: clamp(12px, 3.5vw, 13px);
}

.nh-mob-cta {
    margin-top: 24px;
    padding: 14px 30px;
    font-size: clamp(12px, 3vw, 14px);
}

/* ============================================================
   FOOTER RESPONSIVENESS - Mobile First
   ============================================================ */

footer {
    padding: clamp(40px, 8vw, 56px) 0 0;
}

footer .container {
    padding-right: var(--gutter-sm);
    padding-left: var(--gutter-sm);
}

.nf-g {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(20px, 5vw, 40px);
    padding-bottom: clamp(30px, 5vw, 40px);
}

.nf-lg {
    max-height: 52px;
    width: auto;
    margin-bottom: clamp(10px, 2vw, 14px);
}

.nf-dc {
    font-size: clamp(12px, 2.5vw, 13px);
    line-height: 1.8;
    margin-bottom: clamp(14px, 3vw, 20px);
}

.nf-ss {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

.nf-s {
    width: clamp(32px, 8vw, 34px);
    height: clamp(32px, 8vw, 34px);
    min-width: 32px;
}

.nf-t {
    font-size: clamp(10px, 2.5vw, 11px);
    margin-bottom: clamp(10px, 2vw, 14px);
    padding-bottom: 8px;
}

.nf-ul li a {
    font-size: clamp(12px, 2.5vw, 13px);
}

.nf-ci {
    font-size: clamp(12px, 2.5vw, 13px);
    margin-bottom: clamp(8px, 2vw, 11px);
}

.nf-ic {
    width: 28px;
    height: 28px;
    min-width: 28px;
    flex-shrink: 0;
}

.nf-bot {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(12px, 3vw, 16px) 0;
    gap: 12px;
}

.nf-cp {
    font-size: clamp(11px, 2vw, 12px);
}

.nf-bl {
    display: flex;
    gap: clamp(12px, 3vw, 18px);
    flex-wrap: wrap;
    justify-content: center;
}

.nf-bl a {
    font-size: clamp(11px, 2vw, 12px);
}

.nf-hr {
    margin: clamp(20px, 5vw, 30px) 0;
}

/* ============================================================
   TABLET RESPONSIVE (768px and up)
   ============================================================ */

@media (min-width: 768px) {
    :root {
        --gutter-sm: 20px;
        --gutter-md: 24px;
        --gutter-lg: 32px;
    }

    .container,
    .container-fluid {
        padding-right: var(--gutter-md);
        padding-left: var(--gutter-md);
    }

    .nh-in {
        padding: 0 var(--gutter-md);
    }

    .nh-bar {
        overflow: visible;
    }

    .nh-binfo {
        display: flex;
    }

    .nf-g {
        grid-template-columns: 1fr 1fr;
        gap: clamp(22px, 5vw, 26px);
    }

    .nf-bot {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    footer .container {
        padding-right: var(--gutter-md);
        padding-left: var(--gutter-md);
    }

    .nh-mob {
        display: none;
    }
}

/* ============================================================
   DESKTOP RESPONSIVE (992px and up)
   ============================================================ */

@media (min-width: 992px) {
    :root {
        --gutter-md: 28px;
        --gutter-lg: 40px;
    }

    .container,
    .container-fluid {
        padding-right: var(--gutter-lg);
        padding-left: var(--gutter-lg);
    }

    .nh-in {
        padding: 0 var(--gutter-lg);
        gap: 18px;
    }

    .nh-bar {
        overflow: visible;
    }

    .nh-brand img {
        max-width: 180px;
    }

    .nh-nav {
        display: flex;
        z-index: 1000;
    }

    .nh-nav>li {
        z-index: 1000;
    }

    .nh-cta {
        display: inline-flex;
        z-index: 999;
    }

    .nh-burger {
        display: none;
    }

    .nh-mob {
        display: none;
    }

    .nf-g {
        grid-template-columns: 2fr 1fr 1fr 1.2fr;
        gap: clamp(26px, 5vw, 40px);
    }

    footer .container {
        padding-right: var(--gutter-lg);
        padding-left: var(--gutter-lg);
    }
}

/* ============================================================
   LARGE DESKTOP (1200px and up)
   ============================================================ */

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
        margin-left: auto;
        margin-right: auto;
    }

    .nf-g {
        gap: 40px;
    }
}

/* ============================================================
   SMALL MOBILE OPTIMIZATION (320px - 480px)
   ============================================================ */

@media (max-width: 480px) {
    :root {
        --gutter-xs: 8px;
        --gutter-sm: 12px;
        --header-height: 70px;
    }

    html {
        font-size: 13px;
    }

    .nh-bar {
        min-height: 70px;
    }

    .nh-in {
        padding: 0 var(--gutter-sm);
        gap: 8px;
    }

    .nh-mob {
        padding: 80px var(--gutter-sm) var(--gutter-sm);
    }

    .nh-mob ul>li>a {
        padding: 12px 0;
        font-size: 14px;
    }

    button,
    a,
    input[type="button"],
    input[type="submit"] {
        min-height: 48px;
        padding: 12px;
    }

    h1,
    .h1 {
        font-size: 22px;
    }

    h2,
    .h2 {
        font-size: 18px;
    }

    h3,
    .h3 {
        font-size: 16px;
    }

    .nf-g {
        gap: 18px;
        padding-bottom: 24px;
    }

    .nf-dc {
        font-size: 12px;
        margin-bottom: 14px;
    }

    .nf-bot {
        padding: 12px 0;
        gap: 10px;
    }

    footer .container {
        padding-right: var(--gutter-sm);
        padding-left: var(--gutter-sm);
    }
}

/* ============================================================
   EXTRA LARGE DESKTOP (1400px and up)
   ============================================================ */

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* ============================================================
   UTILITY & ACCESSIBILITY
   ============================================================ */

/* Print Styles */
@media print {

    .nh-wrap,
    .nh-mob,
    footer {
        display: none;
    }
}

/* Landscape Orientation Optimization */
@media (max-width: 767px) and (orientation: landscape) {
    .nh-bar {
        min-height: 64px;
    }

    .nh-mob {
        padding-top: 80px;
        max-height: calc(100vh - 80px);
    }
}

/* High DPI / Retina Optimization */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* Maintain existing colors as they're already dark-themed */
}

/* Touch Device Optimization */
@media (hover: none) and (pointer: coarse) {

    button,
    a,
    .nh-nav a,
    .nf-s {
        padding: 12px;
        min-height: 48px;
        min-width: 48px;
    }

    button:hover,
    a:hover {
        background-color: rgba(255, 255, 255, 0.08);
    }
}

.nh-sub {
    max-width: min(280px, calc(100vw - 32px));
    z-index: 10000;
    pointer-events: none;
}

.nh-sub li a,
.nh-mob a {
    white-space: normal;
}

.nh-mob {
    overscroll-behavior: contain;
}

.nh-mob .ns {
    display: none;
}

/* Fluid type for major page headings. Page CSS can still theme color/family. */
.t6-h1,
.srv-title,
.about-name {
    font-size: clamp(2rem, 5vw, 3.5rem) !important;
}

.dtl-hero h1 {
    font-size: clamp(1.8rem, 4.2vw, 3rem) !important;
}

.t6-h2,
.about-h2,
.srv-h1,
.booking-title {
    font-size: clamp(1.45rem, 3vw, 2.25rem) !important;
}

.srv-subtitle,
.t6-p,
.t6-sub,
.about-tagline,
.booking-desc {
    font-size: clamp(0.94rem, 1.8vw, 1rem);
}

/* Home and service sections */
.t6-hero,
.srv-hero,
.about-hero {
    isolation: isolate;
}

.t6-hero .row,
.srv-hero .row,
.about-hero .row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.t6-photo {
    width: clamp(210px, 32vw, 420px) !important;
    height: clamp(210px, 32vw, 420px) !important;
}

.t6-img-side,
.about-img-wrap,
.dtl-intro-img,
.crystal-img-box,
.item-summary {
    min-width: 0;
}

.t6-card,
.expertise-card,
.approach-item,
.block-card,
.crystal-card,
.booking-card,
.faq-item {
    max-width: 100%;
}

.t6-card {
    height: calc(100% - 24px);
}

.t6-steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)) !important;
}

.t6-steps-grid::before {
    display: none;
}

.t6-wl li,
.card-list li,
.nf-ci {
    min-width: 0;
}

/* Shop/category pages */
.crystal-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)) !important;
    gap: clamp(16px, 2.5vw, 30px) !important;
}

.crystal-img-box {
    height: auto !important;
    aspect-ratio: 1 / 1;
}

.crystal-single-img,
.crystal-slider img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.crystal-grid-container form {
    flex-wrap: wrap;
}

.crystal-grid-container form input[type="text"] {
    min-width: min(100%, 260px);
}

.crystal-grid-container form button,
.crystal-grid-container form a {
    flex: 0 0 auto;
}

/* Booking/contact forms */
.booking-section {
    padding-top: clamp(30px, 5vw, 60px) !important;
    padding-bottom: clamp(44px, 8vw, 80px) !important;
}

.booking-card {
    width: min(100%, 620px);
}

.booking-form input,
.booking-form select,
.booking-form textarea {
    min-height: 44px;
}

/* Detail pages */
.dtl-intro-wrap {
    max-width: 100%;
}

.dtl-intro-img img {
    width: auto;
    height: auto;
}

.dtl-blocks-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)) !important;
}

.dtl-cta-btn,
.t6-btn,
.t6-btn-o,
.nh-cta,
.nh-mob-cta,
.booking-form .btn-submit {
    touch-action: manipulation;
}

/* Desktop refinements */
@media (min-width: 1200px) {
    .container {
        width: 1170px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .nh-in {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .nh-nav>li>a {
        padding-left: 9px !important;
        padding-right: 9px !important;
        font-size: 11px !important;
    }

    .nh-cta {
        padding-left: 14px !important;
        padding-right: 14px !important;
        margin-left: 8px !important;
    }

    .nh-brand img {
        max-width: 150px;
    }

    .t6-hero-text {
        padding-right: 30px;
    }
}

/* Default Desktop Hero Padding */
.t6-hero,
.srv-hero,
.about-hero,
.dtl-hero {
    padding: 50px 0 80px !important;
}

/* Tablet */
@media (max-width: 991px) {
    .nh-wrap .nh-bar.hidden-sm.hidden-xs {
        display: none !important;
    }

    .nh-wrap .nh-bar.visible-sm.visible-xs {
        display: flex !important;
    }

    .nh-binfo,
    .nh-nav,
    .nh-cta {
        display: none !important;
    }

    .nh-burger {
        display: flex !important;
    }

    .t6-hero,
    .srv-hero,
    .about-hero,
    .dtl-hero {
        min-height: auto !important;
        padding: 30px 0 52px !important;
        text-align: center;
    }

    .t6-hero .row,
    .srv-hero .row,
    .about-hero .row {
        display: block !important;
    }

    .t6-hero [class*="col-"],
    .srv-hero [class*="col-"],
    .about-hero [class*="col-"],
    .t6-sec [class*="col-"] {
        width: 100% !important;
        float: none !important;
    }

    .t6-hero-text,
    .about-tagline,
    .t6-p {
        padding-right: 0 !important;
        margin-left: auto;
        margin-right: auto;
    }

    .t6-badge,
    .about-lbl,
    .t6-lbl {
        justify-content: center;
    }

    .t6-stats {
        justify-content: center;
        gap: 18px !important;
    }

    .t6-img-side {
        padding: 28px 15px 12px !important;
    }

    .srv-hero img {
        display: block;
        max-width: 300px;
        margin: 26px auto 0;
    }

    .about-img-wrap {
        max-width: 300px !important;
        margin: 34px auto 0;
    }

    .about-img-wrap img {
        height: auto !important;
        aspect-ratio: 1 / 1.1;
    }

    .t6-wc-txt {
        padding-left: 0 !important;
        margin-top: 28px;
        text-align: center;
    }

    .t6-wc-txt .t6-lbl,
    .t6-wc-txt .t6-h2 {
        justify-content: center !important;
        text-align: center !important;
    }

    .t6-wl {
        max-width: 680px;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    .dtl-intro-wrap {
        flex-direction: column !important;
    }

    .dtl-intro-img,
    .dtl-intro-text {
        width: 100% !important;
        min-width: 100% !important;
    }
}

/* Mobile */
@media (max-width: 767px) {

    .container,
    .container-fluid {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .row {
        margin-left: -16px;
        margin-right: -16px;
        max-width: calc(100% + 32px);
    }

    .row>[class*="col-"] {
        padding-left: 16px;
        padding-right: 16px;
    }

    .nh-bar {
        min-height: 72px !important;
        height: 72px !important;
    }

    .nh-in {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .nh-brand img {
        max-height: 40px !important;
        max-width: 150px;
    }

    .nh-mob {
        padding: 88px 22px 32px !important;
    }

    body>div[style*="height:80px"] {
        height: 72px !important;
    }

    .t6-hero,
    .srv-hero,
    .about-hero,
    .dtl-hero {
        padding: 20px 0 40px !important;
    }

    .t6-sec,
    .about-sec,
    .cta-strip {
        padding-top: 44px !important;
        padding-bottom: 44px !important;
    }

    .t6-line,
    .srv-line,
    .about-deco-line,
    .dtl-hero-deco,
    .t6-sparkle {
        display: none !important;
    }

    .t6-badge,
    .dtl-badge {
        white-space: normal;
        max-width: 100%;
        letter-spacing: 1.4px !important;
        text-align: center;
    }

    .t6-hero-text {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .t6-h1,
    .srv-title,
    .about-name {
        line-height: 1.15 !important;
    }

    .t6-btn,
    .t6-btn-o,
    .dtl-cta-btn {
        width: 100% !important;
        max-width: 270px !important;
        display: flex !important;
        justify-content: center;
        align-items: center;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-top: 10px !important;
        padding: 10px 18px !important;
        font-size: 11px !important;
        text-align: center;
        white-space: normal;
        box-sizing: border-box !important;
    }

    .t6-btn-o {
        margin-top: 14px !important;
    }

    .t6-stats {
        margin-top: 24px !important;
    }

    .t6-std {
        display: none !important;
    }

    .t6-img-deco {
        width: 64px !important;
        height: 64px !important;
        right: 8px !important;
        bottom: 12px !important;
        font-size: 15px !important;
    }

    .t6-img-deco span {
        font-size: 8px !important;
    }

    .t6-card {
        padding: 26px 20px !important;
    }

    .t6-lbl::before,
    .t6-lbl::after,
    .about-lbl::before,
    .about-lbl::after,
    .dtl-badge::before,
    .dtl-badge::after {
        width: 14px !important;
    }

    .expertise-grid,
    .approach-grid {
        grid-template-columns: 1fr !important;
    }

    .about-badge {
        left: 50% !important;
        bottom: -18px !important;
        transform: translateX(-50%);
        width: max-content;
        max-width: calc(100vw - 48px);
    }

    .crystal-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)) !important;
    }

    .crystal-grid-container form {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 10px !important;
    }

    .crystal-grid-container form button,
    .crystal-grid-container form a {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .booking-card {
        padding: 26px 18px !important;
        border-radius: 12px !important;
    }

    .item-summary {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .faq-q {
        padding: 16px 18px !important;
        font-size: 14px !important;
    }

    .faq-a {
        padding-left: 18px !important;
        padding-right: 18px !important;
        font-size: 14px !important;
    }

    .dtl-hero {
        padding: 20px 0 42px !important;
    }

    .dtl-intro-wrap {
        margin-top: 34px !important;
        border-radius: 12px !important;
    }

    .dtl-intro-img {
        min-height: 230px !important;
        padding: 24px 16px !important;
    }

    .dtl-intro-text {
        padding: 26px 18px !important;
    }

    .block-card {
        padding: 22px 18px !important;
    }

    .nf-g {
        grid-template-columns: 1fr !important;
    }

    .nf-bot,
    .nf-bl {
        justify-content: center !important;
        text-align: center !important;
    }
}

/* Small phones */
@media (max-width: 480px) {

    .container,
    .container-fluid {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .row {
        margin-left: -14px;
        margin-right: -14px;
        max-width: calc(100% + 28px);
    }

    .row>[class*="col-"] {
        padding-left: 14px;
        padding-right: 14px;
    }

    .t6-hero-text {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .t6-photo {
        width: 180px !important;
        height: 180px !important;
    }

    .t6-icon,
    .t6-step-c {
        width: 60px !important;
        height: 60px !important;
    }

    .crystal-grid {
        grid-template-columns: 1fr !important;
    }

    .crystal-card {
        padding: 12px !important;
    }

    .booking-card {
        padding: 22px 14px !important;
    }

    .dtl-hero h1 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}