/*
Theme Name: Aastha Ortho-Derma
Theme URI: https://aasthaorthoderma.com
Author: Shravya
Description: A specialized medical theme for Aastha Ortho-Derma Centre covering Orthopaedics, Dermatology, and Cosmetology services in Bangalore.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: aastha-orthoderma
*/

/* ===================== RESET ===================== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
ul{list-style:none}

/* ===================== ROOT VARIABLES ===================== */
:root{
  --teal:         #0F6E56;
  --teal-light:   #E1F5EE;
  --teal-mid:     #1D9E75;
  --teal-dark:    #085041;
  --cream:        #FAF8F5;
  --dark:         #1A1A1A;
  --muted:        #666666;
  --border:       #E8E3DC;
  --white:        #ffffff;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    12px;

  --shadow-sm:    0 1px 3px rgba(0,0,0,.06);
  --shadow-md:    0 4px 16px rgba(0,0,0,.08);
}

/* ===================== GLOBAL ===================== */
body{
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--dark);
  line-height: 1.6;
  font-size: 16px;
}

h1,h2,h3,h4,h5,h6{
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
}

p{margin-bottom:1rem;color:var(--muted)}
strong{font-weight:600;color:var(--dark)}

/* ===================== LAYOUT ===================== */
.container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section{padding: 5rem 0}
.section--dark{background:var(--dark);color:#fff}
.section--white{background:var(--white)}
.section--cream{background:var(--cream)}
.section--teal{background:var(--teal)}

/* ===================== TYPOGRAPHY ===================== */
.section-label{
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: .75rem;
}
.section-title{
  font-size: clamp(30px, 4vw, 42px);
  margin-bottom: 1rem;
}
.section-title em{color:var(--teal);font-style:italic}
.section-desc{
  font-size: 16px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ===================== BUTTONS ===================== */
.btn{
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
  border: 1.5px solid transparent;
  text-align: center;
}
.btn:active{transform:scale(.98)}

.btn--primary{background:var(--teal);color:#fff;border-color:var(--teal)}
.btn--primary:hover{background:var(--teal-mid);border-color:var(--teal-mid)}

.btn--outline{background:transparent;color:var(--teal);border-color:var(--teal)}
.btn--outline:hover{background:var(--teal-light)}

.btn--white{background:#fff;color:var(--teal);border-color:#fff;width:100%}
.btn--white:hover{background:var(--teal-light)}

/* ===================== NAVIGATION ===================== */
.site-header{
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.site-logo .logo-name{
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--teal);
  display: block;
}
.site-logo .logo-sub{
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.main-nav{display:flex;gap:2rem;align-items:center}
.main-nav a{
  font-size: 14px;
  color: var(--dark);
  font-weight: 400;
  transition: color .2s;
}
.main-nav a:hover{color:var(--teal)}
.nav-cta{
  background: var(--teal);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
}
.nav-cta:hover{background:var(--teal-mid) !important}

/* ===================== HERO ===================== */
.hero{background:var(--white);overflow:hidden}
.hero-inner{
  max-width:1200px;margin:0 auto;padding:5rem 2rem;
  display:grid;grid-template-columns:1fr 1fr;gap:4rem;align-items:center;
}
.hero-badge{
  display:inline-flex;align-items:center;gap:8px;
  background:var(--teal-light);color:var(--teal);
  font-size:12px;font-weight:500;
  padding:6px 14px;border-radius:20px;
  letter-spacing:.04em;margin-bottom:1.5rem;
}
.hero-badge::before{content:'';width:6px;height:6px;border-radius:50%;background:var(--teal)}
.hero-title{font-size:clamp(36px,5vw,54px);margin-bottom:1.25rem}
.hero-title em{color:var(--teal);font-style:italic}
.hero-desc{font-size:17px;max-width:480px;margin-bottom:2rem;line-height:1.7}
.hero-actions{display:flex;gap:1rem;flex-wrap:wrap}
.hero-stats{display:flex;gap:2rem;margin-top:2.5rem}
.hero-stat .stat-number{
  display:block;
  font-family:var(--font-display);
  font-size:36px;font-weight:600;color:var(--teal);
}
.hero-stat .stat-label{font-size:13px;color:var(--muted)}
.hero-visual{
  background:var(--teal-light);border-radius:var(--radius-lg);
  height:440px;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:1rem;
}

/* ===================== CARDS ===================== */
.card{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:2rem 1.75rem;
  transition:border-color .2s, transform .2s;
}
.card:hover{border-color:var(--teal);transform:translateY(-3px)}

.card-icon{
  width:48px;height:48px;
  background:var(--teal-light);border-radius:var(--radius-md);
  display:flex;align-items:center;justify-content:center;
  font-size:22px;margin-bottom:1.25rem;
}
.card-title{
  font-family:var(--font-display);font-size:22px;
  margin-bottom:.5rem;color:var(--dark);
}
.card-desc{font-size:14px;color:var(--muted);line-height:1.6;margin-bottom:1rem}

/* ===================== TAGS ===================== */
.tag{
  font-size:11px;background:var(--teal-light);color:var(--teal);
  padding:4px 10px;border-radius:20px;font-weight:500;
  display:inline-block;
}
.tags{display:flex;flex-wrap:wrap;gap:6px}

/* ===================== GRIDS ===================== */
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:2rem}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem}

/* ===================== DOCTOR CARD ===================== */
.doctor-card{
  background:var(--white);border:1px solid var(--border);
  border-radius:var(--radius-lg);overflow:hidden;display:flex;
}
.doctor-avatar{
  width:140px;flex-shrink:0;background:var(--teal-light);
  display:flex;align-items:center;justify-content:center;
  font-family:var(--font-display);font-size:48px;color:var(--teal);font-weight:600;
}
.doctor-body{padding:1.75rem}
.doctor-name{font-family:var(--font-display);font-size:24px;margin-bottom:4px}
.doctor-quals{font-size:12px;color:var(--teal);font-weight:500;letter-spacing:.02em;margin-bottom:.75rem}
.doctor-bio{font-size:13px;color:var(--muted);line-height:1.65;margin-bottom:.5rem}
.doctor-exp{
  display:inline-block;background:var(--teal-light);color:var(--teal);
  font-size:12px;font-weight:600;padding:5px 12px;border-radius:20px;margin-top:8px;
}

/* ===================== SERVICES TABS ===================== */
.tab-buttons{display:flex;gap:1rem;margin:2.5rem 0;flex-wrap:wrap}
.tab-btn{
  background:transparent;border:1.5px solid rgba(255,255,255,.2);
  color:rgba(255,255,255,.7);padding:10px 20px;border-radius:var(--radius-sm);
  font-size:14px;cursor:pointer;transition:all .2s;
  font-family:var(--font-body);
}
.tab-btn.active,.tab-btn:hover{background:var(--teal);border-color:var(--teal);color:#fff}

.service-group h4{
  font-family:var(--font-display);font-size:22px;color:#fff;
  margin-bottom:1rem;border-bottom:1px solid rgba(255,255,255,.1);padding-bottom:.75rem;
}
.service-list li{
  display:flex;align-items:center;gap:10px;
  font-size:14px;color:#ccc;
  padding:8px 0;border-bottom:1px solid rgba(255,255,255,.05);
}
.service-list li::before{content:'→';color:var(--teal-mid);font-size:13px;flex-shrink:0}

/* ===================== INSURANCE ===================== */
.insurance-badge{
  border:1px solid var(--border);border-radius:var(--radius-md);
  padding:1rem 1.25rem;text-align:center;font-size:14px;
  font-weight:500;color:var(--dark);background:var(--white);
  transition:border-color .2s;
}
.insurance-badge:hover{border-color:var(--teal)}

/* ===================== CONTACT FORM ===================== */
.contact-form{display:flex;flex-direction:column;gap:1rem}
.contact-form input,
.contact-form select,
.contact-form textarea{
  width:100%;padding:12px 16px;
  border:1.5px solid rgba(255,255,255,.3);border-radius:6px;
  background:rgba(255,255,255,.1);color:#fff;
  font-family:var(--font-body);font-size:14px;
  outline:none;transition:border-color .2s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder{color:rgba(255,255,255,.6)}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus{border-color:rgba(255,255,255,.8)}
.contact-form select{
  appearance: none;
  -webkit-appearance: none;
  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 fill='rgba(255,255,255,0.7)' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.contact-form select option{color:var(--dark);background:#fff}
.contact-form textarea{resize:none;height:100px}

.contact-info-item{display:flex;align-items:flex-start;gap:12px;margin-bottom:1.75rem}
.ci-icon{
  width:40px;height:40px;background:rgba(255,255,255,.15);
  border-radius:8px;display:flex;align-items:center;justify-content:center;
  font-size:18px;flex-shrink:0;
}

/* ===================== FOOTER ===================== */
.site-footer{
  background:#111;color:#888;
  padding:2rem;text-align:center;font-size:13px;
}
.site-footer a{color:var(--teal-mid)}

/* ===================== RESPONSIVE ===================== */
@media(max-width:1024px){
  .grid-4{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:768px){
  .hero-inner,.grid-2,.grid-3{grid-template-columns:1fr}
  .grid-4{grid-template-columns:repeat(2,1fr)}
  .hero-visual{height:260px}
  .doctor-card{flex-direction:column}
  .doctor-avatar{width:100%;height:100px}
  .main-nav{display:none}
}
@media(max-width:480px){
  .grid-4{grid-template-columns:1fr}
  .hero-stats{flex-wrap:wrap;gap:1.25rem}
}
/* ==================================================
   WORDPRESS THEME FIXES
================================================== */

/* Header */
.site-header{
    background:#fff;
    border-bottom:1px solid var(--border);
    position:sticky;
    top:0;
    z-index:999;
}

.nav-inner{
    max-width:1200px;
    margin:0 auto;
    padding:0 2rem;
    display:flex;
    justify-content:space-between;
    align-items:center;
    min-height:80px;
}

/* Logo */
.site-logo{
    display:flex;
    align-items:center;
    gap:14px;
    flex-shrink:0;
}

.custom-logo-link{
    display:flex;
    align-items:center;
}

.custom-logo{
    max-height:60px !important;
    width:auto !important;
}

.logo-text{
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.logo-name{
    font-family:var(--font-display);
    font-size:22px;
    font-weight:600;
    color:var(--teal);
    line-height:1.1;
}

.logo-sub{
    font-size:11px;
    letter-spacing:.1em;
    text-transform:uppercase;
    color:var(--muted);
}

/* Navigation */
.main-nav{
    display:flex;
    align-items:center;
    gap:2rem;
}

.main-nav ul{
    display:flex;
    gap:2rem;
    align-items:center;
    margin:0;
    padding:0;
}

.main-nav li{
    list-style:none;
}

.main-nav a{
    font-size:14px;
    font-weight:500;
    color:var(--dark);
    transition:.2s;
}

.main-nav a:hover{
    color:var(--teal);
}

.nav-cta{
    background:var(--teal);
    color:#fff !important;
    padding:10px 22px;
    border-radius:6px;
}

.nav-cta:hover{
    background:var(--teal-mid);
}

/* Mobile Menu */
.hamburger{
    display:none;
    font-size:28px;
    border:none;
    background:none;
    cursor:pointer;
    color:var(--teal);
}

/* Services */
.service-card{
    display:block;
    color:inherit;
}

.service-card:hover{
    text-decoration:none;
}

.service-card .card{
    height:100%;
}

/* Experts */
.doctor-card{
    height:100%;
}

.doctor-card img{
    width:100%;
    height:250px;
    object-fit:cover;
}

/* Insurance */
.insurance-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:1rem;
}

/* CTA */
.contact-section{
    background:var(--teal);
    color:#fff;
}

.contact-section .section-title,
.contact-section p{
    color:#fff;
}

/* Footer */
.site-footer{
    background:#111;
    color:#999;
    padding:2rem 0;
    text-align:center;
}

.site-footer a{
    color:var(--teal-mid);
}

/* ==================================================
   RESPONSIVE
================================================== */

@media(max-width:992px){

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

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

    .hero-inner{
        grid-template-columns:1fr;
    }
}

@media(max-width:768px){

    .hamburger{
        display:block;
    }

    .main-nav{
        display:none;
        position:absolute;
        top:80px;
        left:0;
        width:100%;
        background:#fff;
        border-top:1px solid var(--border);
        padding:1rem;
    }

    .main-nav.open{
        display:block;
    }

    .main-nav ul{
        flex-direction:column;
        align-items:flex-start;
        gap:1rem;
    }

    .grid-2,
    .grid-3,
    .grid-4{
        grid-template-columns:1fr;
    }

    .doctor-card{
        flex-direction:column;
    }

    .hero-stats{
        flex-wrap:wrap;
    }

    .container{
        padding:0 1rem;
    }
}
/* ===================== CONTACT SECTION FIX (FULL OVERRIDE) ===================== */

.contact-section{
  background:var(--teal);
  color:#fff;
  padding:5rem 0;
}

.contact-section .container{
  position:relative;
  z-index:1;
}

/* layout stability */
.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:3rem;
  align-items:start;
}

/* ===================== LEFT SIDE TEXT ===================== */

.contact-section .section-label{
  color:rgba(255,255,255,0.85) !important;
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  margin-bottom:.75rem;
}

.contact-section .section-title{
  color:#fff !important;
  font-size:clamp(28px,4vw,40px);
  margin-bottom:1rem;
}

.contact-section .section-desc{
  color:rgba(255,255,255,0.85) !important;
  max-width:520px;
}

.contact-section .contact-details{
  margin-top:2rem;
}

.contact-section .contact-item{
  color:#fff !important;
  font-size:14px;
  margin-bottom:12px;
  display:flex;
  gap:8px;
}

/* ===================== RIGHT SIDE FORM BOX ===================== */

.contact-form-wrapper{
  background:#fff;
  color:#111;
  padding:2.5rem;
  border-radius:14px;
  border:1px solid rgba(0,0,0,0.08);
  box-shadow:0 10px 30px rgba(0,0,0,0.15);
}

/* ===================== CF7 RESET ===================== */

.wpcf7 form{
  display:block !important;
}

.wpcf7 p{
  margin:0 !important;
}

/* ===================== INPUTS ===================== */

.wpcf7 input,
.wpcf7 select,
.wpcf7 textarea{
  width:100%;
  padding:14px 16px;
  border:1px solid #e5e5e5;
  border-radius:10px;
  background:#fff;
  font-size:14px;
  font-family:var(--font-body);
  margin-bottom:14px;
  transition:.2s ease;
}

/* focus */
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus{
  border-color:var(--teal);
  box-shadow:0 0 0 3px rgba(15,110,86,0.15);
  outline:none;
}

/* textarea */
.wpcf7 textarea{
  min-height:120px;
  resize:vertical;
}

/* ===================== BUTTON ===================== */

.wpcf7 input[type="submit"]{
  background:var(--teal);
  color:#fff;
  border:none;
  padding:14px 20px;
  font-size:15px;
  font-weight:600;
  border-radius:10px;
  cursor:pointer;
  width:100%;
  transition:.2s ease;
}

.wpcf7 input[type="submit"]:hover{
  background:var(--teal-mid);
  transform:translateY(-1px);
}

/* ===================== ERRORS ===================== */

.wpcf7 .wpcf7-not-valid-tip{
  font-size:12px;
  color:#ffdddd;
}

.wpcf7-response-output{
  background:#fff;
  color:#111;
  border-radius:10px;
  padding:12px;
  margin-top:10px;
}

/* ===================== MOBILE ===================== */

@media(max-width:768px){
  .contact-grid{
    grid-template-columns:1fr;
    gap:2rem;
  }

  .contact-form-wrapper{
    padding:1.5rem;
  }
}