/**
 * CIIMS Gallery - Comprehensive Mobile Responsive Fixes
 * Fixes all responsiveness issues across the entire website
 */

/* ═══════════════════════════════════════════════════════════════════════════
   GLOBAL RESPONSIVE FIXES
   ═══════════════════════════════════════════════════════════════════════════ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HEADER & NAVIGATION RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

header {
    width: 100%;
}

.site-header {
    padding: 15px 20px;
}

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

.site-logo {
    max-width: 150px;
}

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

nav {
    display: flex;
    gap: 0;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0;
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    padding: 8px;
}

@media (max-width: 768px) {
    .site-header {
        padding: 12px 15px;
    }

    .header-wrapper {
        gap: 10px;
    }

    .site-logo {
        max-width: 120px;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        width: 100%;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    nav.active {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    nav li {
        border-bottom: 1px solid #f0f0f0;
    }

    nav a {
        padding: 12px 20px;
        font-size: 14px;
    }

    .menu-toggle {
        display: block;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 10px 12px;
    }

    .site-logo {
        max-width: 100px;
    }

    nav a {
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO SECTION RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Tablet ≤ 1024px ── */
@media (max-width: 1024px) {
  .hero-slider-section {
    height: 70vh;
    min-height: 500px;
  }
  .slide-headline,
  .slide-title {
    font-size: 48px !important;
  }
  .slide-content-container {
    padding: 0 32px;
  }
}

/* ── Mobile landscape / small tablet ≤ 768px ── */
@media (max-width: 768px) {
  .hero-slider-section {
    height: 90vh;
    min-height: 580px;
  }

  /* Cover full frame — anchor to top so face/subject is visible */
  .slide-bg,
  .hero-slide-img {
    object-fit: cover;
    object-position: center top;
  }

  /* Stronger gradient from bottom so text is always legible over image */
  .slide-overlay {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.55) 42%,
      rgba(0, 0, 0, 0.10) 100%
    ) !important;
  }

  /* Content anchored to bottom so image fills the view above it */
  .slide-content-container {
    align-items: flex-end !important;
    padding: 0 0 44px 0 !important;
  }

  .slide-content {
    margin-left: 0 !important;
    max-width: 100% !important;
    padding: 0 22px;
    text-align: left;
  }

  .slide-eyebrow {
    font-size: 10px;
    margin-bottom: 10px;
  }

  .slide-headline,
  .slide-title {
    font-size: 34px !important;
    line-height: 1.15;
    margin-bottom: 10px;
  }

  .slide-subheadline,
  .slide-description {
    font-size: 14px !important;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.88) !important;
  }

  /* Buttons — full width stacked on mobile */
  .slide-btn-group {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .slide-btn-primary,
  .slide-btn-secondary,
  .slide-btn {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    font-size: 12px;
    box-sizing: border-box;
  }

  /* Backward-compat: .slide-content as direct child (no container wrapper) */
  .slide > .slide-content,
  .hero-slide > .slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 22px 44px;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── Mobile portrait ≤ 480px ── */
@media (max-width: 480px) {
  .hero-slider-section {
    height: 92vh;
    min-height: 600px;
  }

  .slide-headline,
  .slide-title {
    font-size: 28px !important;
  }

  .slide-subheadline,
  .slide-description {
    font-size: 13px !important;
    margin-bottom: 18px;
  }

  .slide-content-container {
    padding: 0 0 32px 0 !important;
  }

  .slide-content {
    padding: 0 18px;
  }

  .slide > .slide-content,
  .hero-slide > .slide-content {
    padding: 0 18px 32px;
  }
}

/* ── Very small phones ≤ 375px ── */
@media (max-width: 375px) {
  .slide-headline,
  .slide-title {
    font-size: 24px !important;
  }

  .slide-eyebrow {
    font-size: 9px;
    margin-bottom: 8px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CAROUSEL/SWIPER RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

.swiper {
    width: 100%;
}

.swiper-slide {
    height: auto;
}

.carousel-product-card {
    padding: 0;
    margin: 0;
}

.carousel-product-img-container {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.carousel-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-product-info {
    padding: 16px;
}

.carousel-product-title {
    font-size: 16px;
    margin: 0 0 8px 0;
}

.carousel-product-desc {
    font-size: 13px;
}

.carousel-product-price-row {
    margin-top: 12px;
}

.carousel-purchase-btn {
    font-size: 12px;
    padding: 10px 16px !important;
}

@media (max-width: 1024px) {
    .carousel-product-title {
        font-size: 15px;
    }

    .carousel-product-info {
        padding: 14px;
    }
}

@media (max-width: 768px) {
    .carousel-product-info {
        padding: 12px;
    }

    .carousel-product-title {
        font-size: 14px;
        margin: 0 0 6px 0;
    }

    .carousel-product-desc {
        font-size: 12px;
        margin: 6px 0 !important;
    }

    .carousel-purchase-btn {
        font-size: 11px;
        padding: 8px 12px !important;
        margin-top: 8px !important;
    }
}

@media (max-width: 480px) {
    .carousel-product-info {
        padding: 10px;
    }

    .carousel-product-title {
        font-size: 13px;
    }

    .carousel-product-desc {
        font-size: 11px;
    }

    .carousel-purchase-btn {
        font-size: 10px;
        padding: 6px 10px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   GRID LAYOUTS RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

.product-grid,
.featured-works-grid,
.product-template-grid,
.reviews-grid {
    display: grid;
    gap: 20px;
    width: 100%;
}

.product-card,
.product-template-card,
.review-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-img-container,
.product-template-card-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.product-img,
.product-template-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

@media (max-width: 1200px) {
    .product-grid,
    .featured-works-grid,
    .product-template-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 18px;
    }
}

@media (max-width: 1024px) {
    .product-grid,
    .featured-works-grid,
    .product-template-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .product-grid,
    .featured-works-grid,
    .product-template-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .product-card,
    .product-template-card {
        border-radius: 4px;
    }

    .product-info,
    .product-template-card-info {
        padding: 14px;
    }

    .product-title,
    .product-template-card-title {
        font-size: 14px;
        margin: 0 0 8px 0;
    }

    .price,
    .product-template-card-price {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .product-grid,
    .featured-works-grid,
    .product-template-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .product-info,
    .product-template-card-info {
        padding: 12px;
    }

    .product-title,
    .product-template-card-title {
        font-size: 13px;
    }

    .product-category {
        font-size: 10px;
    }

    .price,
    .product-template-card-price {
        font-size: 13px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TESTIMONIALS/REVIEWS RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

.reviews-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.review-card {
    padding: 24px;
}

.review-text {
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.review-author {
    font-weight: 600;
    font-size: 14px;
    margin: 0;
}

@media (max-width: 1024px) {
    .reviews-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .review-card {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .review-card {
        padding: 16px;
    }

    .review-text {
        font-size: 13px;
        margin: 0 0 12px 0;
    }

    .review-author {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .review-card {
        padding: 14px;
    }

    .review-text {
        font-size: 12px;
    }

    .review-author {
        font-size: 12px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION PADDING RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

section {
    width: 100%;
}

@media (max-width: 1024px) {
    section {
        padding: 48px 0 !important;
    }
}

@media (max-width: 768px) {
    section {
        padding: 36px 0 !important;
    }
}

@media (max-width: 480px) {
    section {
        padding: 24px 0 !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TEXT RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

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

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

h3 {
    font-size: clamp(18px, 3vw, 24px);
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

button,
.button,
a.button {
    padding: 12px 24px;
    font-size: 14px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 768px) {
    button,
    .button,
    a.button {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    button,
    .button,
    a.button {
        padding: 8px 16px;
        font-size: 12px;
        width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

footer {
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.footer-widget {
    padding: 0 20px;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 0;
    }

    .footer-widget {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .footer-content {
        gap: 16px;
        padding: 20px 0;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FORMS RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

form {
    width: 100%;
}

.form-group {
    margin-bottom: 16px;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

@media (max-width: 768px) {
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 8px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 8px;
        font-size: 12px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MODAL/POPUP RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
        max-width: 95%;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 15px;
        max-width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FLEXBOX RESPONSIVE HELPERS
   ═══════════════════════════════════════════════════════════════════════════ */

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .flex-responsive {
        flex-direction: column;
    }

    .flex-responsive > * {
        width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   VISIBILITY HELPERS
   ═══════════════════════════════════════════════════════════════════════════ */

.hide-mobile {
    display: block;
}

.show-mobile {
    display: none;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }

    .show-mobile {
        display: block !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SPACING RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .margin-large {
        margin: 20px !important;
    }

    .padding-large {
        padding: 20px !important;
    }
}

@media (max-width: 480px) {
    .margin-large {
        margin: 12px !important;
    }

    .padding-large {
        padding: 12px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTACT PAGE — FULL RESPONSIVE STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Info Cards Grid ── */
.contact-info-section {
  padding: 64px 0 40px;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-info-card {
  text-align: center;
  padding: 36px 24px;
  background-color: var(--bg-alt, #FAF8F3);
  border: 1px solid var(--border-color, #E5E5E5);
  border-radius: 4px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.contact-info-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.07);
  transform: translateY(-3px);
}

.contact-info-icon {
  font-size: 34px;
  margin-bottom: 14px;
  line-height: 1;
}

.contact-info-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-headings);
  margin: 0 0 8px;
}

.contact-info-value {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-body);
  margin: 0;
}

.contact-info-value a {
  color: var(--text-body);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-info-value a:hover { color: var(--accent-primary); }

.contact-wa-link {
  color: #25D366 !important;
  font-weight: 600;
}

/* ── Form Section ── */
.contact-form-section {
  padding: 40px 0 64px;
}

.contact-form-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.contact-form-header {
  text-align: center;
  margin-bottom: 40px;
}

.contact-form-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted, #888);
  margin-bottom: 12px;
}

.contact-form-heading {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--text-headings);
  margin: 0;
}

/* Row of two fields side-by-side */
.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.contact-form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

/* Single-column fields (textarea, standalone) */
.contact-form-section .contact-form > .contact-form-field {
  margin-bottom: 20px;
}

.contact-label {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-headings);
  margin-bottom: 8px;
}

.contact-required {
  color: #CC2200;
}

.contact-input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border-color, #E5E5E5);
  background: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-body);
  border-radius: 2px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.contact-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(200, 134, 10, 0.12);
}

.contact-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.contact-textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form-submit {
  text-align: center;
  margin-top: 8px;
}

.contact-submit-btn {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #FFFFFF;
  padding: 16px 48px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 2px solid var(--accent-primary);
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-submit-btn:hover {
  background-color: transparent;
  color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 134, 10, 0.2);
}

/* ── WhatsApp CTA ── */
.contact-whatsapp-section {
  background-color: var(--bg-alt, #FAF8F3);
  padding: 72px 0;
  text-align: center;
}

.contact-wa-heading {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--text-headings);
  margin: 0 0 16px;
}

.contact-wa-desc {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-body);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.contact-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #25D366;
  color: #FFFFFF;
  padding: 18px 44px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-wa-btn:hover {
  background-color: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  color: #fff;
}

/* ══ RESPONSIVE BREAKPOINTS ══════════════════════════════════════════════ */

/* Tablet ≤ 768px */
@media (max-width: 768px) {
  .contact-info-section {
    padding: 48px 0 28px;
  }

  /* Cards: 3-col → 1-col single column */
  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-info-card {
    padding: 28px 20px;
    display: flex;
    align-items: center;
    text-align: left;
    gap: 20px;
  }

  .contact-info-icon {
    font-size: 28px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .contact-form-section {
    padding: 32px 0 48px;
  }

  .contact-form-heading {
    font-size: 28px;
  }

  /* Two-col rows → single column */
  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
  }

  .contact-wa-heading {
    font-size: 28px;
  }

  .contact-wa-desc {
    font-size: 14px;
    padding: 0 16px;
  }

  .contact-wa-btn {
    padding: 16px 32px;
    font-size: 13px;
  }
}

/* Mobile ≤ 480px */
@media (max-width: 480px) {
  .contact-info-section {
    padding: 36px 0 20px;
  }

  .contact-info-card {
    padding: 22px 16px;
    gap: 14px;
  }

  .contact-form-wrap {
    padding: 0 4px;
  }

  .contact-form-header {
    margin-bottom: 28px;
  }

  .contact-form-heading {
    font-size: 24px;
  }

  .contact-input {
    font-size: 16px; /* prevent iOS zoom on focus */
    padding: 12px;
  }

  .contact-submit-btn {
    width: 100%;
    padding: 16px 24px;
  }

  .contact-whatsapp-section {
    padding: 52px 0;
  }

  .contact-wa-heading {
    font-size: 24px;
  }

  .contact-wa-btn {
    width: calc(100% - 40px);
    max-width: 320px;
    justify-content: center;
    padding: 16px 20px;
  }
}
