@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ===========================
   TOKENS
   =========================== */
:root {
  --cream:        #F9F6F1;
  --cream-dark:   #F0EBE3;
  --primary:      #4A7C59;
  --primary-light:#8FAF7E;
  --primary-dark: #3A6347;
  --text:         #2D2D2D;
  --text-muted:   #6B6B6B;
  --border:       #E2D9CE;
  --white:        #FFFFFF;
  --shadow-sm:    0 1px 4px rgba(0,0,0,.06);
  --shadow:       0 4px 20px rgba(0,0,0,.08);
  --shadow-lg:    0 8px 40px rgba(0,0,0,.12);
  --radius:       12px;
  --radius-sm:    6px;
  --transition:   .25s ease;
}

/* ===========================
   RESET
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ===========================
   TYPOGRAPHY
   =========================== */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
p  { color: var(--text-muted); }

/* ===========================
   CONTAINER
   =========================== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* ===========================
   HEADER
   =========================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(249,246,241,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.logo span { display: block; font-size: .75rem; font-weight: 400; color: var(--primary); font-family: 'Inter', sans-serif; letter-spacing: .05em; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-size: .875rem; font-weight: 500; color: var(--text-muted);
  transition: color var(--transition); position: relative; padding-bottom: 2px;
}
.nav a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--primary);
  transition: width var(--transition);
}
.nav a:hover, .nav a.active { color: var(--primary); }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav .btn-nav {
  background: var(--primary); color: var(--white);
  padding: .5rem 1.25rem; border-radius: 50px;
  font-size: .875rem; transition: background var(--transition);
}
.nav .btn-nav:hover { background: var(--primary-dark); }
.nav .btn-nav::after { display: none; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: .5rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ===========================
   HERO
   =========================== */
.hero {
  padding: 6rem 0 5rem;
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(74,124,89,.12); color: var(--primary);
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .4rem 1rem; border-radius: 50px; margin-bottom: 1.5rem;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero p { font-size: 1.05rem; margin-bottom: 2rem; max-width: 480px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #d4e8d5 0%, #a8c9a0 100%);
  display: flex; align-items: center; justify-content: center;
}
.hero-image-placeholder {
  text-align: center; color: var(--primary);
}
.hero-image-placeholder .big-icon { font-size: 5rem; margin-bottom: 1rem; }
.hero-image-placeholder p { color: var(--primary); font-weight: 500; }

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem; border-radius: 50px;
  font-size: .9rem; font-weight: 600;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
}
.btn-primary {
  background: var(--primary); color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline {
  background: transparent; color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-1px); }
.btn-sm { padding: .5rem 1.25rem; font-size: .8rem; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }

/* ===========================
   SERVICES
   =========================== */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem;
  margin-top: 3rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 3px; background: var(--primary);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.service-card:hover::before { transform: scaleX(1); }
.service-card .icon { font-size: 2rem; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.1rem; margin-bottom: .5rem; color: var(--text); }
.service-card p { font-size: .875rem; line-height: 1.6; }
.service-card .read-more {
  display: inline-flex; align-items: center; gap: .3rem;
  color: var(--primary); font-size: .85rem; font-weight: 600;
  margin-top: 1rem; transition: gap var(--transition);
}
.service-card .read-more:hover { gap: .6rem; }

/* ===========================
   SECTION HEADINGS
   =========================== */
.section-label {
  display: inline-block;
  font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--primary); margin-bottom: .75rem;
}
.section-title { margin-bottom: 1rem; }
.section-desc { color: var(--text-muted); max-width: 540px; }

/* ===========================
   ARTICLES
   =========================== */
.articles-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem;
  margin-top: 3rem;
}
.article-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  transition: all var(--transition);
}
.article-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.article-card-img {
  height: 200px; background: linear-gradient(135deg, var(--cream-dark), var(--cream));
  display: flex; align-items: center; justify-content: center; font-size: 3rem;
}
.article-card-body { padding: 1.5rem; }
.article-date { font-size: .78rem; color: var(--text-muted); margin-bottom: .5rem; }
.article-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.article-card p { font-size: .875rem; }
.article-card .read-more {
  display: inline-flex; align-items: center; gap: .3rem;
  color: var(--primary); font-size: .85rem; font-weight: 600;
  margin-top: 1rem; transition: gap var(--transition);
}
.article-card .read-more:hover { gap: .6rem; }

/* ===========================
   FAQ
   =========================== */
.faq-list { margin-top: 2.5rem; max-width: 760px; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%; background: none; border: none; text-align: left;
  padding: 1.25rem 0; display: flex; justify-content: space-between; align-items: center;
  font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 600; color: var(--text);
  cursor: pointer; transition: color var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-question .faq-icon { font-size: 1.2rem; flex-shrink: 0; transition: transform var(--transition); color: var(--primary); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease; }
.faq-answer-inner { padding: 0 0 1.25rem; color: var(--text-muted); font-size: .95rem; }
.faq-item.open .faq-answer { max-height: 400px; }

/* ===========================
   ASK QUESTION STICKY BAR
   =========================== */
.ask-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 99;
  background: var(--primary); color: var(--white);
  padding: .9rem 1.5rem;
  display: flex; align-items: center; justify-content: center; gap: 1.5rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,.15);
  transform: translateY(100%); transition: transform .4s ease;
}
.ask-bar.visible { transform: translateY(0); }
.ask-bar p { font-size: .95rem; font-weight: 500; color: var(--white); }
.ask-bar .btn-ask {
  background: var(--white); color: var(--primary);
  padding: .5rem 1.5rem; border-radius: 50px;
  font-weight: 700; font-size: .875rem; flex-shrink: 0;
  transition: background var(--transition);
}
.ask-bar .btn-ask:hover { background: var(--cream); }
.ask-bar-close {
  background: none; border: none; color: rgba(255,255,255,.7);
  font-size: 1.3rem; line-height: 1; padding: .25rem;
  transition: color var(--transition);
}
.ask-bar-close:hover { color: var(--white); }

/* ===========================
   APPOINTMENT CALENDAR
   =========================== */
.randevu-layout {
  display: grid; grid-template-columns: 1fr 380px; gap: 3rem; align-items: start;
  margin-top: 3rem;
}
.calendar-wrap {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.cal-header {
  background: var(--primary); color: var(--white);
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.cal-header h3 { color: var(--white); font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 600; margin: 0; }
.cal-nav { background: rgba(255,255,255,.2); border: none; color: var(--white); width: 32px; height: 32px; border-radius: 50%; font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: background var(--transition); }
.cal-nav:hover { background: rgba(255,255,255,.35); }
.cal-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  background: var(--cream-dark);
}
.cal-weekdays span { text-align: center; font-size: .72rem; font-weight: 600; color: var(--text-muted); padding: .6rem 0; }
.cal-days {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 1rem;
}
.cal-day {
  aspect-ratio: 1; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 500; cursor: pointer;
  transition: all var(--transition); position: relative; color: var(--text);
  border: 2px solid transparent;
}
.cal-day:hover:not(.disabled):not(.empty) { background: rgba(74,124,89,.12); color: var(--primary); }
.cal-day.today { border-color: var(--primary-light); }
.cal-day.selected { background: var(--primary); color: var(--white) !important; }
.cal-day.disabled { color: var(--border); cursor: not-allowed; background: none; }
.cal-day.empty { cursor: default; }
.cal-day.has-slots::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--primary-light);
}
.cal-day.selected::after { background: rgba(255,255,255,.7); }

.slots-wrap { padding: 1rem 1.5rem 1.5rem; border-top: 1px solid var(--border); }
.slots-title { font-size: .85rem; font-weight: 600; color: var(--text-muted); margin-bottom: .75rem; }
.slots-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.slot-btn {
  padding: .4rem .85rem; border-radius: 50px; border: 1.5px solid var(--border);
  font-size: .82rem; font-weight: 500; background: var(--white); color: var(--text);
  transition: all var(--transition);
}
.slot-btn:hover { border-color: var(--primary); color: var(--primary); }
.slot-btn.selected { background: var(--primary); color: var(--white); border-color: var(--primary); }
.slot-btn.booked { background: var(--cream-dark); color: var(--border); cursor: not-allowed; }

.booking-form-wrap {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
}
.booking-form-wrap h3 { margin-bottom: 1.5rem; font-size: 1.1rem; }
.form-row { margin-bottom: 1.25rem; }
.form-row label { display: block; font-size: .8rem; font-weight: 600; color: var(--text); margin-bottom: .4rem; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: .75rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif; font-size: .9rem; color: var(--text);
  background: var(--cream); transition: border-color var(--transition);
  outline: none;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--primary); background: var(--white); }
.form-row textarea { height: 100px; resize: vertical; }
.selected-slot-display {
  background: rgba(74,124,89,.08); border-radius: var(--radius-sm);
  padding: .75rem 1rem; margin-bottom: 1.25rem;
  font-size: .875rem; color: var(--primary); font-weight: 600;
  display: none;
}
.selected-slot-display.visible { display: block; }

/* ===========================
   CONTACT / QUESTION FORM
   =========================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 2rem; }
.contact-info-item .ci-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: .1rem; }
.contact-info-item h4 { font-size: .9rem; font-weight: 600; margin-bottom: .25rem; font-family: 'Inter', sans-serif; }
.contact-info-item p { font-size: .875rem; }
.form-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.5rem;
}

/* ===========================
   ARTICLE DETAIL
   =========================== */
.article-detail { max-width: 800px; margin: 0 auto; }
.article-meta { font-size: .85rem; color: var(--text-muted); margin-bottom: 2rem; display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.article-content h2, .article-content h3 { margin: 2rem 0 1rem; }
.article-content p { margin-bottom: 1rem; }
.article-content ul, .article-content ol { margin: 1rem 0 1rem 1.5rem; }
.article-content li { margin-bottom: .4rem; color: var(--text-muted); }
.article-content img { border-radius: var(--radius); margin: 1.5rem 0; width: 100%; }

/* Comments */
.comment { padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
.comment-header { display: flex; gap: 1rem; align-items: center; margin-bottom: .5rem; }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; flex-shrink: 0; }
.comment-author { font-weight: 600; font-size: .9rem; }
.comment-date { font-size: .78rem; color: var(--text-muted); }
.comment-body { font-size: .9rem; color: var(--text-muted); margin-left: 3.25rem; }

/* ===========================
   FOOTER
   =========================== */
.site-footer { background: #2D2D2D; color: rgba(255,255,255,.75); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .logo { color: var(--white); margin-bottom: 1rem; }
.footer-brand p { font-size: .875rem; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-family: 'Inter', sans-serif; font-size: .875rem; font-weight: 600; margin-bottom: 1rem; letter-spacing: .05em; text-transform: uppercase; }
.footer-col a { display: block; font-size: .875rem; margin-bottom: .6rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.25rem 0; text-align: center; font-size: .8rem; }

/* ===========================
   PAGE HEADER
   =========================== */
.page-header { background: var(--cream-dark); padding: 4rem 0 3rem; border-bottom: 1px solid var(--border); }
.page-header h1 { margin-bottom: .5rem; }
.breadcrumb { font-size: .82rem; color: var(--text-muted); }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 .4rem; }

/* ===========================
   BADGES & MISC
   =========================== */
.badge { display: inline-block; padding: .25rem .75rem; border-radius: 50px; font-size: .75rem; font-weight: 600; }
.badge-pending   { background: #fff3cd; color: #856404; }
.badge-confirmed { background: #d1fae5; color: #065f46; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }

.alert { padding: 1rem 1.25rem; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 1.5rem; }
.alert-success { background: #d1fae5; color: #065f46; border-left: 4px solid #059669; }
.alert-error    { background: #fee2e2; color: #991b1b; border-left: 4px solid #dc2626; }
.alert-info     { background: #dbeafe; color: #1e40af; border-left: 4px solid #3b82f6; }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .hero-inner         { grid-template-columns: 1fr; }
  .hero-image         { display: none; }
  .randevu-layout     { grid-template-columns: 1fr; }
  .contact-grid       { grid-template-columns: 1fr; }
  .footer-grid        { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav { display: none; flex-direction: column; position: fixed; top: 72px; left: 0; right: 0; background: var(--cream); padding: 1.5rem; border-bottom: 1px solid var(--border); gap: 1.25rem; }
  .nav.open { display: flex; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; }
  .ask-bar { flex-direction: column; gap: .75rem; text-align: center; }
}
