/*!
Theme Name: Ciputra Cardiac Center
Theme URI: https://cardiac.ciputraresidence.net/
Author: Ciputra Cardiac Center
Author URI: https://cardiac.ciputraresidence.net/
Description: A modern, Elementor-friendly WordPress theme for Ciputra Cardiac Center. Built with Tailwind CSS for production-ready performance.
Version: 1.1.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: ccc
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, elementor, full-width-template

This theme is designed for Ciputra Cardiac Center.

=== BUILD INSTRUCTIONS ===
This theme uses Tailwind CSS compiled from source.
To rebuild the CSS after changes:

1. Install dependencies: npm install
2. Build for production: npm run build
3. Watch during development: npm run dev

The compiled CSS is output to: assets/css/tailwind.css
*/

/*--------------------------------------------------------------
# Additional Theme Styles
# Note: Most styles are compiled from src/css/input.css
# This file is for additional overrides or WordPress-specific styles
--------------------------------------------------------------*/

/* Global container override */
.max-w-7xl {
  max-width: 90rem !important;
}

/* Global typography — Albert Sans for all text */
html,
body,
body :where(p, h1, h2, h3, h4, h5, h6, a, button, input, textarea, select, li, label, summary, th, td),
.font-heading,
.font-serif,
.font-sans,
.font-bold,
.font-semibold,
.font-medium,
.font-extrabold,
.font-black,
.prose,
.prose :where(p, h1, h2, h3, h4, h5, h6, li, a, strong, b),
#primary-menu,
#primary-menu a,
#mobile-menu,
#mobile-menu a,
.sub-menu,
.sub-menu a,
.footer-nav,
.footer-nav a,
.footer-menu-link,
.btn,
.footer-accordion summary,
.ccc-partners-band__title {
  font-family: "Albert Sans", sans-serif !important;
}

/* Header nav links match body paragraph size (1rem) — intentional UX choice */
#primary-menu a,
#mobile-menu a,
#primary-menu .sub-menu a,
#mobile-menu .ccc-mobile-submenu a {
  font-size: 1rem !important;
}

/* Footer nav stays smaller — it's supplementary navigation, not primary content */
.footer-menu-link--primary,
.footer-menu-link--list {
  font-size: 0.875rem !important;
}

/* WordPress Admin Bar Adjustment */
.admin-bar .fixed {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .fixed {
    top: 46px;
  }
}

/* Doctor detail header: square (1:1) photo frame */
.ccc-doctor-detail-photo-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
}

.ccc-doctor-detail-photo-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Hero description paragraphs - hidden on mobile only (under 768px) */
@media screen and (max-width: 767px) {
  .front-page-hero .hero-mobile-hide {
    display: none !important;
  }
}

/* Header logo: keep space for the mobile menu toggle */
.site-logo {
  max-width: calc(100% - 4.5rem);
}

.site-logo img,
.site-logo .custom-logo,
.custom-logo-link img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 48px;
  object-fit: contain;
}

@media screen and (min-width: 640px) {
  .site-logo {
    max-width: none;
  }

  .site-logo img,
  .site-logo .custom-logo,
  .custom-logo-link img {
    height: 66px;
  }
}

/* Homepage doctor section desktop container width override */
@media screen and (min-width: 1024px) {
  .ccc-home-wide-container {
    width: 100%;
    max-width: 90rem !important;
  }
}

/**
 * Card surfaces — shared clean styling (see also input.css .ccc-card).
 */
.ccc-brand-silverline {
  position: relative;
}

/**
 * Home — section-level luminous band between blocks (light background).
 */
.ccc-home-section-accent {
  position: relative;
}
.ccc-home-section-accent::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 57, 117, 0.28),
    rgba(0, 129, 96, 0.22),
    transparent
  );
  pointer-events: none;
}

/**
 * Home — section accent on dark bands (subtle silver / brand glint).
 */
.ccc-home-section-accent-dark {
  position: relative;
}
.ccc-home-section-accent-dark::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    rgba(0, 129, 96, 0.45),
    rgba(255, 255, 255, 0.28),
    transparent
  );
  pointer-events: none;
}

/**
 * Hero — bottom silver cap under the banner.
 */
.front-page-hero.ccc-home-hero-silvercap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    rgba(0, 129, 96, 0.35),
    rgba(255, 255, 255, 0.45),
    transparent
  );
  pointer-events: none;
  z-index: 5;
}

/**
 * Homepage partner / affiliation logo band.
 */
.ccc-partners-band {
  border-bottom: 1px solid #f1f5f9;
  padding: 1.5rem 0;
}

@media (min-width: 768px) {
  .ccc-partners-band {
    padding: 1.8rem 0;
  }
}

@media (min-width: 1024px) {
  .ccc-partners-band {
    padding: 1.2rem 0;
  }
}

.ccc-partners-band__inner {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.ccc-partners-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  width: 100%;
}

@media (min-width: 1024px) {
  .ccc-partners-band__grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    column-gap: 1.5rem;
    max-width: 90rem;
    margin-left: auto;
    margin-right: auto;
  }
}

.ccc-partners-band__heading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

@media (min-width: 1024px) {
  .ccc-partners-band__heading {
    justify-content: flex-start;
    padding-right: 0.5rem;
  }
}

.ccc-partners-band__title {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #003975;
  text-align: center;
  max-width: 14rem;
}

@media (min-width: 768px) {
  .ccc-partners-band__title {
    font-size: 1.875rem;
  }
}

@media (min-width: 1024px) {
  .ccc-partners-band__title {
    font-size: 2.25rem;
    text-align: left;
    max-width: 20rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
}

.ccc-partners-band__carousel {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

@media (min-width: 1024px) {
  .ccc-partners-band__carousel {
    justify-content: flex-end;
  }
}

.ccc-partners-band__carousel--full {
  grid-column: 1 / -1;
}

.ccc-partners-band__swiper {
  width: 100%;
  max-width: 100%;
  padding: 0.25rem 0.5rem;
}

@media (min-width: 640px) {
  .ccc-partners-band__swiper {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

.ccc-partners-band__slide {
  width: auto !important;
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.ccc-partners-band__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ccc-partners-band__logo {
  display: block;
  height: 2rem;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

@media (min-width: 768px) {
  .ccc-partners-band__logo {
    height: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .ccc-partners-band__logo {
    height: 3rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

.ccc-partners-band .partnersSwiper .swiper-wrapper {
  align-items: center;
  transition-timing-function: linear !important;
}

.ccc-partners-band .partner-logo-img {
  filter: none;
  opacity: 1;
}

/**
 * Homepage doctor profile swipers (dark band): Swiper defaults use dim inactive dots
 * and dark green active bullets — both are hard to see on bg-slate-900.
 */
.doctorsSwiper-pagination .swiper-pagination-bullet,
.doctorsDesktopSwiper-pagination .swiper-pagination-bullet {
  background-color: rgba(255, 255, 255, 0.45) !important;
  opacity: 1 !important;
}

.doctorsSwiper-pagination .swiper-pagination-bullet-active,
.doctorsDesktopSwiper-pagination .swiper-pagination-bullet-active {
  background-color: #ffffff !important;
  opacity: 1 !important;
  box-shadow: 0 0 0 2px rgba(0, 129, 96, 0.5);
}

/* WordPress Block Editor Styles */
.wp-block-separator {
  border-color: rgba(0, 129, 96, 0.2);
}

.wp-block-quote {
  border-left-color: #008160;
}

/* WordPress Comments */
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment-body {
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: #f8fafc;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
}

.comment-author {
  font-weight: 600;
  color: #003975;
}

.comment-metadata {
  font-size: 0.875rem;
  color: #64748b;
}

.comment-content {
  margin-top: 1rem;
}

.reply {
  margin-top: 1rem;
}

.reply a {
  color: #008160;
  font-weight: 500;
  text-decoration: none;
}

.reply a:hover {
  color: #003975;
}

/* WordPress Search Form */
.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-field {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 9999px;
  font-size: 1rem;
}

.search-field:focus {
  outline: none;
  border-color: #003975;
}

.search-submit {
  padding: 0.75rem 1.5rem;
  background-color: #008160;
  color: white;
  border: none;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-submit:hover {
  background-color: #006a4f;
}

/* WordPress Widgets */
.widget {
  margin-bottom: 2rem;
}

.widget-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #003975;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(0, 129, 96, 0.2);
}

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

.widget li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.widget li:last-child {
  border-bottom: none;
}

.widget a {
  color: #1A1A1A;
  text-decoration: none;
  transition: color 0.2s;
}

.widget a:hover {
  color: #008160;
}

/* WordPress Gallery */
.gallery {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

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

.gallery-columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

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

.gallery-item {
  margin: 0;
}

.gallery-item img {
  border-radius: 0.5rem;
  width: 100%;
  height: auto;
}

.gallery-caption {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.5rem;
}

/* WordPress Navigation Links (Pagination) */
.nav-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 0.5rem;
  color: #1A1A1A;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.page-numbers:hover {
  border-color: #008160;
  color: #008160;
}

.page-numbers.current {
  background-color: #008160;
  border-color: #008160;
  color: white;
}

.page-numbers.dots {
  border: none;
  background: none;
}

/* Accessibility - Focus States (Ateneo Blue for form active states) */
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #003975;
  outline-offset: 2px;
}

a:not(.skip-link):focus,
a:not(.skip-link):focus-visible {
  outline: none;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 999;
  padding: 1rem 2rem;
  background: #008160;
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}
