/*
Theme Name: Blue Island Clinic
Theme URI: https://blueislandclinic.com/
Author: Blue Island Clinic
Description: Custom theme for Blue Island Medical Clinic — the first medical clinic on Gili Islands.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blue-island-clinic
Tags: clinic, medical, healthcare, responsive
*/

/* Blue Island Clinic — Stylesheet */

:root {
  --primary: #0a4099;
  --primary-dark: #07306f;
  --accent: #3dbaba;
  --yellow: #ffc000;
  --contrast: #212326;
  --contrast-2: #575760;
  --light: #f5f9ff;
  --white: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 4px 20px rgba(10, 64, 153, 0.08);
  --shadow-lg: 0 10px 40px rgba(10, 64, 153, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--contrast);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; color: var(--contrast); }
h1 { font-size: clamp(32px, 5vw, 48px); }
h2 { font-size: clamp(26px, 3.5vw, 36px); }
h3 { font-size: 20px; }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .25s ease;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); transform: translateY(-2px); }
.btn-white { background: var(--white); color: var(--primary); border-color: var(--white); }
.btn-white:hover { background: var(--yellow); border-color: var(--yellow); color: var(--contrast); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--primary); }

/* Top bar */
.top-bar {
  background: var(--contrast);
  color: var(--white);
  padding: 10px 0;
  font-size: 14px;
}
.top-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 500;
}
.top-bar-link:hover { color: var(--yellow); }

/* Header */
.site-header {
  background: var(--white);
  padding: 18px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 60px;
  width: auto;
  display: block;
}

.header-cta { display: flex; align-items: center; gap: 20px; }
.cta-call {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--contrast);
}
.cta-icon {
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-call strong { display: block; font-size: 14px; color: var(--primary); }
.cta-call span { font-size: 12px; color: var(--contrast-2); }

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 6px;
}

/* Main nav */
.main-nav {
  background: var(--primary);
  color: var(--white);
}
.nav-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  padding: 18px 22px;
  font-weight: 600;
  font-size: 15px;
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active { color: var(--yellow); }

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 240px;
  box-shadow: var(--shadow-lg);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .25s;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}
.has-children:hover .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu a {
  display: block;
  padding: 12px 20px;
  color: var(--contrast);
  font-weight: 500;
}
.sub-menu a:hover { background: var(--light); color: var(--primary); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--white);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,.15), transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  left: -150px;
  bottom: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,192,0,.1), transparent 70%);
  border-radius: 50%;
}
.hero-inner { position: relative; z-index: 2; }
.hero-content { max-width: 720px; }
.hero-centered { text-align: center; }
.hero-centered .hero-content { margin: 0 auto; }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero p { font-size: 18px; margin-bottom: 30px; opacity: .95; }

/* Sections */
.section {
  padding: 80px 0;
}
.section-light { background: var(--light); }

.section-title { text-align: center; max-width: 780px; margin: 0 auto 50px; }
.section-title h2 { margin-bottom: 16px; color: var(--primary); position: relative; display: inline-block; padding-bottom: 12px; }
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.section-title p { color: var(--contrast-2); font-size: 16px; }

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}
.section-title-row h2 { color: var(--primary); }
.view-all { font-weight: 600; color: var(--accent); }
.view-all:hover { color: var(--primary); }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all .3s ease;
  border: 1px solid transparent;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.service-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card h3 { color: var(--primary); margin-bottom: 12px; }
.service-card p { color: var(--contrast-2); font-size: 15px; margin-bottom: 20px; }
.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--accent);
  font-size: 14px;
}
.learn-more:hover { color: var(--primary); gap: 8px; }

/* Articles */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.article-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s;
  cursor: pointer;
}
.article-card:hover { transform: translateY(-4px); }
.article-image {
  width: 100%;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
}
.article-body { padding: 20px; }
.article-date { font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.article-card h3 { font-size: 17px; margin-bottom: 10px; color: var(--contrast); line-height: 1.35; }
.article-card p { font-size: 14px; color: var(--contrast-2); }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.gallery-item {
  aspect-ratio: 1;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  transition: transform .3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.gallery-item::after {
  content: '+';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 48px;
  font-weight: 300;
  background: rgba(10, 64, 153, 0);
  transition: all .3s;
  opacity: 0;
}
.gallery-item:hover { transform: scale(1.03); }
.gallery-item:hover::after { background: rgba(10, 64, 153, .5); opacity: 1; }

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testimonial {
  background: var(--white);
  padding: 32px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  position: relative;
}
.testimonial::before {
  content: '"';
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 80px;
  color: var(--accent);
  opacity: .15;
  line-height: 1;
  font-family: Georgia, serif;
}
.stars { color: var(--yellow); font-size: 20px; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial p { color: var(--contrast-2); margin-bottom: 20px; font-size: 14px; }
.testimonial-author strong { display: block; color: var(--primary); }
.testimonial-author span { font-size: 13px; color: var(--contrast-2); }

/* Partners */
.partners-section { background: var(--light); }
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  align-items: center;
}
.partner-logo {
  background: var(--white);
  padding: 30px 20px;
  border-radius: 12px;
  text-align: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 18px;
  box-shadow: var(--shadow);
  transition: all .3s;
  letter-spacing: 1px;
}
.partner-logo:hover { transform: translateY(-4px); color: var(--accent); }

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  text-align: center;
}
.cta-inner { max-width: 700px; margin: 0 auto; }
.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p { margin-bottom: 32px; opacity: .95; }
.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* Footer */
.site-footer {
  background: var(--contrast);
  color: #d1d5db;
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
}
.footer-col h3 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 18px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
}
.footer-col p { margin-bottom: 14px; font-size: 14px; line-height: 1.7; }
.footer-col a { color: #d1d5db; }
.footer-col a:hover { color: var(--accent); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; }

.social-links { display: flex; gap: 10px; margin-top: 20px; }
.social-links a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all .3s;
}
.social-links a:hover { background: var(--accent); transform: translateY(-2px); }

.footer-bottom {
  margin-top: 50px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: left;
  font-size: 13px;
}

/* Float WhatsApp */
.float-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, .4);
  z-index: 99;
  animation: pulse 2s infinite;
}
.float-whatsapp:hover { background: #1ebe5a; color: var(--white); transform: scale(1.1); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(37, 211, 102, .4); }
  50% { box-shadow: 0 6px 30px rgba(37, 211, 102, .7); }
}

/* Page hero (sub-pages) */
.page-hero {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 8px; }
.page-hero p { opacity: .9; font-size: 14px; letter-spacing: 1px; }

/* Two column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.two-col h2 { color: var(--primary); margin-bottom: 16px; }
.two-col p { color: var(--contrast-2); margin-bottom: 14px; }
.image-box {
  aspect-ratio: 4/3;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.about-illustration { padding: 0; }
.about-illustration svg { width: 100%; height: 100%; display: block; }

.about-text {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.about-text h2 { color: var(--primary); margin-bottom: 20px; }
.about-text p { color: var(--contrast-2); margin-bottom: 16px; }

/* Service cards grid */
.service-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.svc-card {
  background: var(--white);
  border-radius: 18px;
  padding: 36px 40px 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: all .3s ease;
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 80px 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 24px;
  align-items: start;
}
.svc-card .svc-icon { grid-row: 1 / span 3; }
.svc-card h3 { grid-column: 2; }
.svc-card > p { grid-column: 2; }
.svc-card .feature-list { grid-column: 2; }
.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.svc-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
}
.svc-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s;
}
.svc-card:hover .svc-icon { transform: scale(1.08) rotate(-4deg); }
.svc-card h3 {
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 22px;
}
.svc-card > p {
  color: var(--contrast-2);
  margin-bottom: 18px;
  font-size: 15px;
}
.svc-card .feature-list { margin-top: 0; }
.svc-card .feature-list li {
  padding: 8px 0 8px 28px;
  font-size: 14px;
}

.feature-list {
  list-style: none;
  margin-top: 20px;
}
.feature-list li {
  padding: 10px 0 10px 30px;
  position: relative;
  color: var(--contrast);
}
.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
}

/* Contact page */
.contact-info { margin-top: 30px; }
.info-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.info-item strong {
  display: block;
  color: var(--primary);
  margin-bottom: 4px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.info-item span, .info-item a { color: var(--contrast-2); }

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}
.contact-form h3 { color: var(--primary); margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--contrast);
}
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form button { width: 100%; justify-content: center; }

/* Honeypot — hidden from humans, visible to bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* Form status messages */
.form-status {
  min-height: 20px;
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 500;
}
.form-status[data-type="error"] { color: #c62828; }
.form-status[data-type="ok"] { color: #2e7d32; }

/* Responsive */
@media (max-width: 992px) {
  .header-cta .cta-call { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .header-cta .btn { display: none; }

  .nav-menu {
    display: none;
    flex-direction: column;
  }
  .nav-menu.open { display: flex; }
  .nav-menu > li > a { padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(0,0,0,.2);
  }
  .sub-menu a { color: var(--white); padding-left: 40px; }
  .sub-menu a:hover { background: rgba(0,0,0,.3); color: var(--yellow); }

  .section { padding: 60px 0; }
  .hero { padding: 60px 0 80px; }
  .hero p { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; max-width: 320px; justify-content: center; }
  .two-col { grid-template-columns: 1fr; gap: 30px; }
  .contact-form { padding: 28px; }
  .service-cards { grid-template-columns: 1fr; }
  .svc-card { grid-template-columns: 1fr; column-gap: 0; }
  .svc-card .svc-icon { grid-row: auto; margin-bottom: 18px; }
  .svc-card h3, .svc-card > p, .svc-card .feature-list { grid-column: 1; }
}

@media (max-width: 480px) {
  .logo-img { height: 48px; }
  .top-bar { font-size: 12px; }
  .btn { padding: 12px 22px; font-size: 14px; }
}
