/*
Theme Name: Merhaba
Theme URI: https://example.com/merhaba
Author: LimeClicks
Author URI: https://example.com
Description: A clean, responsive WordPress theme for healthcare procurement & operational support businesses. Converted from a custom Bootstrap 5 landing page with an editable navigation menu, custom logo support, and a site-wide contact/footer section.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: merhaba
Tags: business, healthcare, one-column, custom-logo, custom-menu, featured-images, sticky-post, translation-ready
*/

/* ===================================================================
   1. ROOT VARIABLES
   =================================================================== */
:root {
  --green:     #1a7a3c;
  --green-dk:  #0f5228;
  --green-lt:  #27a356;
  --green-pale:#e8f5ed;
  --blue:      #1e5fa8;
  --blue-lt:   #2e7fd4;
  --slate:     #1c2b3a;
  --muted:     #5c6b7a;
  --cream:     #f6f8f5;
  --border:    #e0e6e0;
  --white:     #ffffff;
}

/* ===================================================================
   2. BASE
   =================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--slate); background: var(--white); overflow-x: hidden; }
h1, h2, h3, h4 { font-family: 'DM Serif Display', serif; }

/* ===================================================================
   3. TOPBAR
   =================================================================== */
.topbar { background: var(--green-dk); padding: .45rem 0; font-size: .78rem; color: rgba(255,255,255,.7); }
.topbar a { color: rgba(255,255,255,.7); text-decoration: none; transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar .sep { opacity: .3; margin: 0 .6rem; }

/* ===================================================================
   4. NAVBAR
   =================================================================== */
#mainNav { background: var(--white); box-shadow: 0 2px 20px rgba(0,0,0,.07); padding: 0; transition: box-shadow .3s; }
#mainNav.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,.12); }
.navbar-brand img { height: 70px; width: auto; }
.custom-logo-link img { height: 70px; width: auto; }
.navbar-nav .nav-link {
  font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--slate) !important; padding: 1.3rem .9rem !important; position: relative; transition: color .2s;
}
.navbar-nav .nav-link::after {
  content: ''; position: absolute; bottom: 0; left: .9rem; right: .9rem;
  height: 3px; background: var(--green); border-radius: 2px 2px 0 0; transform: scaleX(0); transition: transform .25s;
}
.navbar-nav .nav-link:hover { color: var(--green) !important; }
.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after { transform: scaleX(1); }
.nav-phone {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--green); color: var(--white) !important; padding: .5rem 1.2rem !important;
  border-radius: 4px; font-size: .8rem !important; font-weight: 700 !important;
  letter-spacing: .04em !important; margin-left: .6rem; text-decoration: none; transition: background .2s !important;
}
.nav-phone::after { display: none !important; }
.nav-phone:hover { background: var(--green-lt) !important; color: #fff !important; }
/* Dropdown support added by the nav walker */
.navbar-nav .dropdown-menu { border: none; box-shadow: 0 10px 30px rgba(0,0,0,.12); border-radius: 8px; padding: .4rem 0; }
.navbar-nav .dropdown-item { font-size: .85rem; padding: .55rem 1.2rem; color: var(--slate); }
.navbar-nav .dropdown-item:hover { background: var(--green-pale); color: var(--green); }

/* ===================================================================
   5. HERO
   =================================================================== */
#home { min-height: 92vh; position: relative; display: flex; align-items: center; overflow: hidden; background: var(--green-dk); }
.hero-bg-img {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1584432810601-6c7f27d2362b?w=1800&auto=format&fit=crop&q=80') center/cover no-repeat;
  opacity: .13;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(10,62,30,.97) 0%, rgba(15,82,40,.92) 45%, rgba(30,95,168,.7) 100%);
}
.hero-circle-1 { position: absolute; top: -100px; right: -80px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(39,163,86,.18) 0%, transparent 70%); }
.hero-circle-2 { position: absolute; bottom: -140px; left: 10%; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(46,127,212,.2) 0%, transparent 70%); }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-content { position: relative; z-index: 2; padding: 6rem 0 4rem; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #a8e6c0; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  padding: .4rem 1.1rem; border-radius: 100px; font-weight: 600; margin-bottom: 1.8rem;
}
.hero-eyebrow span { width: 6px; height: 6px; background: var(--green-lt); border-radius: 50%; }
#home h1 { font-size: clamp(2.5rem, 5.5vw, 4.4rem); color: #fff; line-height: 1.12; margin-bottom: 1.6rem; }
#home h1 em { font-style: italic; color: #a8e6c0; }
#home .hero-desc { color: rgba(255,255,255,.72); font-size: 1.05rem; line-height: 1.9; max-width: 530px; margin-bottom: 2.8rem; font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 4rem; }
.btn-hg {
  background: var(--green-lt); color: #fff; padding: .9rem 2.2rem; font-size: .85rem;
  letter-spacing: .08em; text-transform: uppercase; border-radius: 5px; text-decoration: none;
  font-weight: 700; display: inline-flex; align-items: center; gap: .5rem; transition: background .2s, transform .2s;
}
.btn-hg:hover { background: #33c268; color: #fff; transform: translateY(-2px); }
.btn-ghost {
  border: 1.5px solid rgba(255,255,255,.35); color: #fff; padding: .9rem 2.2rem; font-size: .85rem;
  letter-spacing: .08em; text-transform: uppercase; border-radius: 5px; text-decoration: none;
  font-weight: 600; display: inline-flex; align-items: center; gap: .5rem; transition: background .2s;
}
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2rem; padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,.15); }
.h-stat-num { font-family: 'DM Serif Display', serif; font-size: 2.6rem; color: #fff; line-height: 1; }
.h-stat-lbl { font-size: .72rem; color: rgba(255,255,255,.5); letter-spacing: .12em; text-transform: uppercase; margin-top: .2rem; }
.hero-right { position: relative; z-index: 2; padding: 6rem 0 4rem; display: flex; align-items: center; justify-content: center; }
.hero-feature-card {
  background: rgba(255,255,255,.1); backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.18); border-radius: 20px; padding: 2.4rem 2rem; max-width: 310px; width: 100%;
}
.hfc-head { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: #a8e6c0; font-weight: 700; margin-bottom: 1.4rem; }
.hfc-item { display: flex; align-items: flex-start; gap: .9rem; padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.hfc-item:last-of-type { border-bottom: none; }
.hfc-icon { width: 38px; height: 38px; flex-shrink: 0; background: rgba(255,255,255,.12); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #a8e6c0; font-size: 1.1rem; }
.hfc-label { font-size: .88rem; color: rgba(255,255,255,.9); font-weight: 600; }
.hfc-sub { font-size: .78rem; color: rgba(255,255,255,.5); margin-top: .1rem; }

/* ===================================================================
   6. SECTION HELPERS
   =================================================================== */
.sec-tag { font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; font-weight: 700; color: var(--green); display: block; margin-bottom: .5rem; }
.sec-title { font-size: clamp(1.9rem, 3.2vw, 2.8rem); color: var(--slate); line-height: 1.2; }
.sec-title em { font-style: italic; color: var(--green); }
.title-bar { width: 48px; height: 3px; background: linear-gradient(90deg, var(--green), var(--blue)); border-radius: 2px; margin: 1rem 0 1.5rem; }
.title-bar.centered { margin: 1rem auto 1.5rem; }

/* ===================================================================
   7. ABOUT
   =================================================================== */
#about { padding: 7rem 0; background: var(--white); }
.about-img { width: 100%; height: 500px; object-fit: cover; border-radius: 18px; }
.about-badge {
  position: absolute; bottom: -28px; left: -24px;
  background: var(--blue); color: #fff; padding: 1.8rem 2rem; border-radius: 14px;
  text-align: center; box-shadow: 0 14px 40px rgba(30,95,168,.35);
}
.about-badge .big { font-family: 'DM Serif Display', serif; font-size: 2.8rem; line-height: 1; }
.about-badge .lbl { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.check-row { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .85rem; font-size: .92rem; color: var(--muted); line-height: 1.65; }
.check-row i { color: var(--green); font-size: 1rem; flex-shrink: 0; margin-top: .1rem; }
.btn-green { background: var(--green); color: #fff; padding: .85rem 2.2rem; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; border-radius: 5px; text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: .5rem; transition: background .2s, transform .2s; }
.btn-green:hover { background: var(--green-lt); color: #fff; transform: translateY(-2px); }
.btn-outline-green { border: 2px solid var(--green); color: var(--green); padding: .82rem 2rem; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; border-radius: 5px; text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: .5rem; transition: all .2s; }
.btn-outline-green:hover { background: var(--green); color: #fff; }

/* ===================================================================
   8. PRODUCTS
   =================================================================== */
#products { background: var(--cream); padding: 7rem 0; }
.prod-card { background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: 0 2px 18px rgba(0,0,0,.06); height: 100%; transition: box-shadow .3s, transform .3s; border: 1px solid var(--border); position: relative; }
.prod-card:hover { box-shadow: 0 18px 50px rgba(26,122,60,.14); transform: translateY(-6px); }
.prod-img { width: 100%; height: 210px; object-fit: cover; transition: transform .5s; }
.prod-card:hover .prod-img { transform: scale(1.04); }
.prod-img-wrap { overflow: hidden; }
.prod-body { padding: 1.7rem; }
.prod-icon { width: 44px; height: 44px; background: var(--green-pale); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--green); margin-bottom: 1rem; }
.prod-card h5 { font-size: 1.15rem; color: var(--slate); margin-bottom: .5rem; }
.prod-card p { font-size: .88rem; color: var(--muted); line-height: 1.78; }
.prod-tag { display: inline-block; background: var(--green-pale); color: var(--green); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; padding: .25rem .7rem; border-radius: 100px; font-weight: 700; margin-bottom: .8rem; }
.prod-num { position: absolute; top: 1rem; right: 1rem; width: 30px; height: 30px; background: rgba(255,255,255,.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'DM Serif Display', serif; font-size: .9rem; color: var(--green); z-index: 1; }

/* ===================================================================
   9. TESTIMONIALS
   =================================================================== */
#testimonials { padding: 7rem 0; background: var(--green-dk); }
#testimonials .sec-tag { color: #a8e6c0; }
.testi-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 2.4rem 2rem; height: 100%; transition: background .3s, transform .2s; position: relative; }
.testi-card:hover { background: rgba(255,255,255,.12); transform: translateY(-4px); }
.testi-card::before { content: '\201C'; font-family: 'DM Serif Display', serif; font-size: 8rem; color: rgba(255,255,255,.06); position: absolute; top: -1rem; left: 1.5rem; line-height: 1; }
.testi-stars { color: #fbbf24; font-size: .85rem; margin-bottom: 1.1rem; }
.testi-card p { font-size: .93rem; color: rgba(255,255,255,.75); line-height: 1.85; font-style: italic; position: relative; z-index: 1; margin-bottom: 1.5rem; }
.testi-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--green-lt), var(--blue-lt)); display: flex; align-items: center; justify-content: center; font-family: 'DM Serif Display', serif; font-size: 1.1rem; color: #fff; flex-shrink: 0; }
.testi-name { font-weight: 700; color: #fff; font-size: .88rem; }
.testi-role { font-size: .78rem; color: rgba(255,255,255,.45); }

/* ===================================================================
   10. CONTACT / FOOTER
   =================================================================== */
#contact { background: var(--slate); padding: 5rem 0 0; }
.contact-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 2rem 1.8rem; height: 100%; transition: background .3s; }
.contact-card:hover { background: rgba(255,255,255,.1); }
.contact-icon { width: 52px; height: 52px; background: var(--green); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff; margin-bottom: 1.2rem; }
.contact-card h6 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: .5rem; font-weight: 700; }
.contact-card p, .contact-card a { font-size: .93rem; color: rgba(255,255,255,.85); text-decoration: none; line-height: 1.7; }
.contact-card a:hover { color: #a8e6c0; }
.map-wrap { border-radius: 16px; overflow: hidden; box-shadow: 0 6px 40px rgba(0,0,0,.3); }
.map-wrap iframe { width: 100%; height: 380px; border: none; display: block; }
.form-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 2.5rem; }
.form-card label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); font-weight: 600; margin-bottom: .4rem; display: block; }
.form-card input, .form-card textarea {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 8px;
  color: #fff; padding: .8rem 1rem; font-size: .9rem; width: 100%; transition: border-color .2s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.form-card input::placeholder, .form-card textarea::placeholder { color: rgba(255,255,255,.3); }
.form-card input:focus, .form-card textarea:focus { outline: none; border-color: var(--green-lt); background: rgba(255,255,255,.12); }
.form-card textarea { resize: vertical; min-height: 120px; }
.btn-submit { background: var(--green-lt); color: #fff; border: none; padding: .9rem 2.4rem; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; border-radius: 8px; cursor: pointer; font-weight: 700; width: 100%; transition: background .2s, transform .2s; font-family: 'Plus Jakarta Sans', sans-serif; }
.btn-submit:hover { background: #33c268; transform: translateY(-2px); }
.footer-bar { background: rgba(0,0,0,.3); margin-top: 3.5rem; padding: 1.3rem 0; font-size: .8rem; color: rgba(255,255,255,.3); border-top: 1px solid rgba(255,255,255,.07); }
.footer-bar a { color: rgba(255,255,255,.3); text-decoration: none; }
.footer-bar a:hover { color: var(--green-lt); }

/* ===================================================================
   11. SCROLL TOP
   =================================================================== */
#scrollTop { position: fixed; bottom: 2rem; right: 2rem; width: 46px; height: 46px; background: var(--green); border: none; border-radius: 50%; color: #fff; font-size: 1.1rem; display: none; align-items: center; justify-content: center; cursor: pointer; z-index: 999; box-shadow: 0 4px 20px rgba(26,122,60,.45); transition: background .2s; }
#scrollTop:hover { background: var(--green-lt); }
#scrollTop.show { display: flex; }

/* ===================================================================
   12. ANIMATIONS
   =================================================================== */
.fade-up { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .7s ease; }
.fade-up.visible { opacity: 1; transform: none; }
.fade-up.d1 { transition-delay: .1s; } .fade-up.d2 { transition-delay: .2s; } .fade-up.d3 { transition-delay: .3s; } .fade-up.d4 { transition-delay: .4s; } .fade-up.d5 { transition-delay: .5s; }

/* ===================================================================
   13. WORDPRESS-SPECIFIC HELPERS (page.php / single.php / blog)
   =================================================================== */
.page-wrap { padding: 7rem 0; min-height: 60vh; }
.page-wrap .entry-title { color: var(--slate); margin-bottom: 1.2rem; }
.page-wrap .entry-content { color: var(--muted); line-height: 1.9; font-size: 1rem; }
.page-wrap .entry-content h2, .page-wrap .entry-content h3 { color: var(--slate); margin: 2rem 0 1rem; }
.page-wrap .entry-content a { color: var(--green); }
.page-wrap .entry-content img { max-width: 100%; height: auto; border-radius: 12px; }
.post-meta { font-size: .82rem; color: var(--muted); margin-bottom: 1.5rem; letter-spacing: .04em; }
.widget-title { color: var(--slate); margin-bottom: 1rem; font-size: 1.1rem; }
.widget { margin-bottom: 2rem; }
.comment-list { list-style: none; padding: 0; }
.sticky, .bypostauthor { display: block; }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
}
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: var(--muted); text-align: center; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1rem auto; }

/* ===================================================================
   14. RESPONSIVE
   =================================================================== */
@media (max-width: 991.98px) { .hero-right { padding: 2rem 0 4rem; } .hero-feature-card { max-width: 100%; } .about-badge { left: 0; bottom: 0; } }
@media (max-width: 767.98px) { .hero-actions { flex-direction: column; } .hero-actions a { justify-content: center; } }
