/*
Theme Name: Cohesive Interiors
Theme URI: https://cohesiveinteriors.com
Author: Antigravity
Description: A premium, minimalist interior design theme with a dark blue luxury aesthetic.
Version: 2.1.0
Text Domain: cohesive-interiors
*/

:root {
    /* Color Palette - Dark Blue Luxury */
    --ci-bg-body: #0b1c2c;
    /* Deep Midnight Blue */
    --ci-bg-light: #122a40;
    /* Slightly lighter blue for cards/sections */
    --ci-bg-dark: #050e16;
    /* Very dark blue/black for footer */

    --ci-primary: #71cbf2;
    /* User Requested Cyan/Light Blue Accent */
    --ci-accent: #71cbf2;

    --ci-text-heading: #e6f1ff;
    /* Pale Blue/White for headings */
    --ci-text-body: #b0c4de;
    /* Light Steel Blue for body text */
    --ci-text-muted: #6c8aab;
    /* Muted blue-grey */
    --ci-white: #ffffff;

    /* Typography */
    --ci-font-heading: poppins, serif;
    --ci-font-body: poppins, sans-serif;

    /* Spacing */
    --ci-spacing-xs: 8px;
    --ci-spacing-sm: 16px;
    --ci-spacing-md: 32px;
    --ci-spacing-lg: 64px;
    --ci-spacing-xl: 120px;

    /* Layout */
    --ci-container-width: 1400px;
    --ci-header-height: 90px;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--ci-font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ci-text-body);
    background-color: var(--ci-bg-body);
    -webkit-font-smoothing: antialiased;
}

main#primary {
    margin-top: var(--ci-header-height);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--ci-font-heading);
    font-weight: 400;
    line-height: 1.3;
    color: var(--ci-text-heading);
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: 0.02em;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--ci-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--ci-text-heading);
    text-shadow: 0 0 10px rgba(113, 203, 242, 0.4);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ensure images are responsive */
img[style*="width"],
img[style*="height"] {
    max-width: 100% !important;
    height: auto !important;
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--ci-container-width);
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 60px);
}

/* Ensure about intro section has proper spacing */
.about-intro {
    width: 100%;
    max-width: 100%;
}

/* Why Choose Us Icons - Blue Single Tone */
.why-choose-icon {
    display: inline-block;
    width: clamp(70px, 9vw, 90px);
    height: clamp(70px, 9vw, 90px);
    margin: 0 auto 20px auto;
    position: relative;
}

/* Gear/Cog Icon - One-Stop Solution */
.icon-building {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.icon-building::before {
    content: '';
    position: absolute;
    width: 60%;
    height: 60%;
    background: #71cbf2;
    border-radius: 50%;
    opacity: 0.2;
}

.icon-building::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 60%;
    border: 4px solid #71cbf2;
    border-radius: 50%;
    opacity: 1;
    box-shadow:
        0 0 0 2px transparent,
        0 0 0 4px rgba(113, 203, 242, 0.3);
}

/* Chart Icon - Predictable Results */
.icon-chart {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 7px;
    padding-bottom: 3px;
}

.icon-chart span {
    display: block;
    background: #71cbf2;
    border-radius: 3px 3px 0 0;
    width: 24%;
    flex-shrink: 0;
    min-width: 14px;
}

.icon-chart span:nth-child(1) {
    height: 40%;
    opacity: 0.7;
}

.icon-chart span:nth-child(2) {
    height: 70%;
    opacity: 0.85;
}

.icon-chart span:nth-child(3) {
    height: 50%;
    opacity: 1;
}

/* Three People Icon - Expert Team */
.icon-team {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.icon-team::before {
    content: '';
    position: absolute;
    width: 24%;
    height: 24%;
    background: #71cbf2;
    border-radius: 50%;
    left: 22%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    z-index: 1;
    box-shadow: 28px 0 0 0 rgba(113, 203, 242, 0.85), 56px 0 0 0 rgba(113, 203, 242, 1);
}

.icon-team::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    background: transparent;
    opacity: 0;
}

.text-center {
    text-align: center;
}

.uppercase {
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 36px;
    background: transparent;
    color: var(--ci-primary);
    font-family: var(--ci-font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid var(--ci-primary);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: center;
    min-height: 44px;
    min-width: 44px;
    line-height: 1.5;
}

.btn:hover {
    background: var(--ci-primary);
    color: var(--ci-bg-body);
    box-shadow: 0 0 20px rgba(113, 203, 242, 0.3);
    transform: translateY(-2px);
}

.btn:focus {
    outline: 2px solid var(--ci-primary);
    outline-offset: 2px;
}

.btn:active {
    transform: translateY(0);
}

.btn-outline {
    border-color: var(--ci-text-body);
    color: var(--ci-text-body);
}

.btn-outline:hover {
    background: var(--ci-text-body);
    color: var(--ci-bg-body);
    box-shadow: none;
}

/* Header */
.site-header {
    height: var(--ci-header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /*background: rgba(11, 28, 44, 0.95);*/
    background-image: linear-gradient(46deg, #ffff, #23384b, #0b1c2c);
    /* matching dark bg */
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(113, 203, 242, 0.1);
}

.site-branding img {
    max-height: 60px;
    width: auto;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

.main-navigation a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    color: var(--ci-text-heading);
}

.main-navigation a:hover {
    color: var(--ci-primary);
}

.main-navigation a:focus {
    outline: 2px solid var(--ci-primary);
    outline-offset: 4px;
    border-radius: 2px;
}

/* Active menu item styles */
.main-navigation .current-menu-item>a,
.main-navigation .current_page_item>a,
.main-navigation .current-menu-ancestor>a {
    color: var(--ci-primary);
    position: relative;
}

.main-navigation .current-menu-item>a::after,
.main-navigation .current_page_item>a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--ci-primary);
    box-shadow: 0 0 8px rgba(113, 203, 242, 0.6);
}

/* Cards & Sections */
.service-card,
.contact-form-wrapper {
    background: var(--ci-bg-light);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    border-radius: 8px;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--ci-primary);
    box-shadow: 0 10px 30px rgba(113, 203, 242, 0.1);
}

/* Services Layout */
.services-layout {
    display: grid;
}

/* About Layout */
.about-intro {
    display: grid;
}

.vision-mission {
    display: grid;
}

.why-choose-grid {
    display: grid;
}

.process-grid {
    display: grid;
}

.contact-layout {
    display: grid;
}

/* Responsive Layout Adjustments */
@media screen and (max-width: 1024px) {
    .services-layout {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .about-intro {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .vision-mission {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .contact-layout {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
}

@media screen and (max-width: 768px) {

    .service-card,
    .contact-form-wrapper,
    .contact-info,
    .vision-mission-card,
    .process-item {
        padding: 30px 25px !important;
    }

    .about-intro {
        margin-bottom: 50px !important;
    }
}

.service-card h3,
.service-card h4 {
    color: var(--ci-primary);
    margin-top: 0;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    color: var(--ci-text-body);
}

.service-card li {
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 5px;
}

/* Form Styles */
input,
textarea {
    width: 100%;
    padding: 15px;
    background: var(--ci-bg-body);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--ci-white);
    font-family: var(--ci-font-body);
    margin-bottom: 20px;
    transition: border-color 0.3s;
}

input:focus,
textarea:focus {
    outline: 2px solid var(--ci-primary);
    outline-offset: 2px;
    border-color: var(--ci-primary);
}

input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--ci-primary);
    outline-offset: 2px;
}

button {
    font-family: inherit;
    font-size: inherit;
}

/* Footer */
.site-footer {
    background: var(--ci-bg-dark);
    color: var(--ci-text-body);
    padding: var(--ci-spacing-xl) 0 var(--ci-spacing-md);
    border-top: 1px solid rgba(113, 203, 242, 0.1);
}

.footer-widgets h4 {
    color: var(--ci-white);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--ci-primary);
    display: inline-block;
    padding-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: var(--ci-spacing-lg);
    padding-top: var(--ci-spacing-md);
    font-size: 0.85rem;
    color: var(--ci-text-muted);
    text-align: center;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--ci-primary);
    color: var(--ci-primary);
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.2rem;
    position: relative;
    z-index: 1001;
    transition: all 0.3s ease;
    border-radius: 4px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    background: var(--ci-primary);
    color: var(--ci-bg-body);
}

.menu-toggle:focus {
    outline: 2px solid var(--ci-primary);
    outline-offset: 2px;
}

.menu-icon {
    display: inline-block;
    font-size: 1.5rem;
    line-height: 1;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    max-width: 900px;
}

/* .hero-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}*/

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Page Header */
.page-header {
    position: relative;
    padding-top: 200px;
    padding-bottom: 100px;
}

.page-title {
    font-size: 3.5rem;
}

/* Screen Reader Text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Responsive Design - Tablet */
@media screen and (max-width: 1024px) {
    :root {
        --ci-header-height: 80px;
        --ci-spacing-xl: 80px;
        --ci-spacing-lg: 48px;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    h3 {
        font-size: 1.6rem;
    }

    .container {
        padding: 0 30px;
    }

    .main-navigation ul {
        gap: 30px;
    }

    .service-card,
    .contact-form-wrapper {
        padding: 30px;
    }

    .page-header {
        padding-top: 150px;
        padding-bottom: 80px;
    }

    .page-title {
        font-size: 3rem;
    }

    /* Services page grid adjustments for tablet */
    .grid[style*="grid-template-columns: 1fr"] {
        grid-template-columns: 1fr 1.5fr !important;
    }
}

/* Responsive Design - Mobile */
@media screen and (max-width: 768px) {
    :root {
        --ci-header-height: 70px;
        --ci-spacing-xl: 60px;
        --ci-spacing-lg: 40px;
        --ci-spacing-md: 24px;
    }

    body {
        font-size: 15px;
    }

    h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    h4 {
        font-size: 1.2rem;
    }

    .container {
        padding: 0 20px;
    }

    /* Header Mobile */
    .site-header {
        height: var(--ci-header-height);
    }

    .header-inner {
        position: relative;
    }

    .site-branding img {
        max-height: 50px;
    }

    /* Mobile Menu */
    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: var(--ci-header-height);
        left: 0;
        width: 100%;
        background: var(--ci-bg-body);
        border-top: 1px solid rgba(113, 203, 242, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 999;
    }

    .main-navigation.active {
        max-height: 500px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }

    .main-navigation li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .main-navigation a {
        display: block;
        padding: 15px 20px;
        font-size: 0.9rem;
    }

    /* Active menu item styles for mobile */
    .main-navigation .current-menu-item>a,
    .main-navigation .current_page_item>a,
    .main-navigation .current-menu-ancestor>a {
        color: var(--ci-primary);
        background: rgba(113, 203, 242, 0.1);
        border-left: 3px solid var(--ci-primary);
        padding-left: 17px;
    }

    .main-navigation .current-menu-item>a::after,
    .main-navigation .current_page_item>a::after {
        display: none;
    }

    /* Hero Section Mobile */
    .hero-section {
        min-height: 80vh;
        padding: 40px 0;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    /* Buttons Mobile */
    .btn {
        padding: 14px 28px;
        font-size: 0.85rem;
    }

    /* Service Cards Mobile */
    .service-card,
    .contact-form-wrapper {
        padding: 25px;
    }

    /* Page Header Mobile */
    .page-header {
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    /* Footer Mobile */
    .footer-widgets {
        grid-template-columns: 1fr !important;
        gap: 30px;
        text-align: center;
    }

    .footer-widgets h4 {
        font-size: 1.1rem;
    }

    /* Grid adjustments - force single column on mobile */
    .grid[style*="grid-template-columns: 1fr"] {
        grid-template-columns: 1fr !important;
    }

    .grid[style*="grid-template-columns: 1fr 2fr"],
    .grid[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Values Section Mobile */
    .images-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .images-grid img {
        margin-top: 0 !important;
    }

    /* Philosophy Section Mobile */
    .philosophy-section h2 {
        font-size: 2rem;
    }

    .philosophy-section p {
        font-size: 1rem;
    }
}

/* Responsive Design - Small Mobile */
@media screen and (max-width: 480px) {
    :root {
        --ci-header-height: 60px;
        --ci-spacing-xl: 40px;
        --ci-spacing-lg: 30px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .container {
        padding: 0 15px;
    }

    .site-branding img {
        max-height: 40px;
    }

    .hero-section {
        min-height: 70vh;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .service-card,
    .contact-form-wrapper {
        padding: 20px;
    }

    .page-header {
        padding-top: 100px;
        padding-bottom: 50px;
    }

    .page-title {
        font-size: 1.6rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.8rem;
    }
}

/* Print Styles */
@media print {

    .site-header,
    .menu-toggle,
    .hero-buttons,
    .btn {
        display: none;
    }

    main#primary {
        margin-top: 0;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {

    .service-card,
    .contact-form-wrapper {
        border: 2px solid var(--ci-primary);
    }

    .btn {
        border-width: 2px;
    }
}

@media (max-width: 992px) {
    .hide-md-down {
        display: none;
    }
}

/* --- Animations --- */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-fade {
    opacity: 0;
    transition: opacity 1.5s ease-out;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-visible {
    opacity: 1 !important;
    transform: translate(0) scale(1) !important;
}

/* Stagger delays */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

/* --- Custom Slider Styles (Replacing Swiper) --- */
.swiper {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.swiper-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.swiper-slide {
    flex-shrink: 0;
    width: 100%;
    /* Default mobile */
    padding: 0 10px;
    /* Space between slides */
    box-sizing: border-box;
}

/* Tablet: 2 slides */
@media (min-width: 768px) {
    .swiper-slide {
        width: 50%;
    }
}

/* Desktop: 3 slides */
@media (min-width: 1024px) {
    .swiper-slide {
        width: 33.333%;
    }
}

.swiper-button-next,
.swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--ci-primary);
    color: var(--ci-bg-body);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-weight: bold;
    user-select: none;
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--ci-white);
    transform: translateY(-50%) scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    content: '';
    /* Remove swiper default content */
}

/* Icons */
.swiper-button-prev::before {
    content: '<';
}

.swiper-button-next::before {
    content: '>';
}

.swiper-button-prev {
    left: 10px;
}

.swiper-button-next {
    right: 10px;
}

.swiper-pagination {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(113, 203, 242, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.swiper-pagination-bullet.active {
    background: var(--ci-primary);
    transform: scale(1.2);
}