/*
Theme Name: Jurija Jermaka Doktorāts
Theme URI: https://example.com/
Author: Jurija Jermaka Doktorāts
Description: Minimāla vienas lapas WordPress tēma ģimenes ārsta praksei ar kontaktinformāciju, darba laiku un jaunumu sadaļu.
Version: 2.8.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: jermaka-doktorats
*/

:root {
  --bg: #f6f2e8;
  --paper: #fffdf8;
  --text: #24231f;
  --muted: #6d6a5f;
  --accent: #8c8351;
  --accent-dark: #716941;
  --line: #ddd7c7;
  --card: #f2eee3;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(43, 39, 27, .08);
  --radius: 20px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.site-wrap { overflow: hidden; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.site-header {
  background: rgba(255,253,248,.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(9px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; padding: 18px 0 15px; }
.language-switcher { display: flex; align-items: center; gap: 8px; }
.language-switcher a {
  min-width: 38px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  text-align: center;
  text-decoration: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .04em;
  background: var(--paper);
}
.language-switcher a:hover,
.language-switcher a.is-current {
  color: var(--white);
  background: var(--accent);
  border-color: var(--accent);
}
.brand-main, .hero h1, .section-title, .news-title, .footer-brand-main {
  font-family: Georgia, "Times New Roman", serif;
}
.brand-main { font-size: 27px; line-height: 1; letter-spacing: .01em; }
.brand-sub { margin-top: 6px; color: var(--accent-dark); font-size: 12px; letter-spacing: .31em; text-transform: uppercase; }

.hero {
  background: linear-gradient(90deg, #f7f1e5 0%, #f7f1e5 43%, #ece6d7 100%);
}
.hero-grid {
  min-height: 540px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: stretch;
}
.hero-copy { padding: 84px 50px 70px 0; align-self: center; }
.hero h1 { margin: 0; font-size: clamp(46px, 6vw, 82px); font-weight: 500; line-height: .98; letter-spacing: -.03em; }
.hero h1 span { display: block; color: var(--accent-dark); margin-top: 10px; }
.hero-photo { min-height: 540px; position: relative; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 34%; }

.action-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 38px;
}
.action-item { width: min(100%, 410px); }
.action-item .btn { width: 100%; }
.action-note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  background: #f5f0e4;
}
.btn-primary { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn:hover { transform: translateY(-1px); }


.availability-section { padding: 22px 0 6px; }
.availability-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: start;
  background: #fbf8ef;
  border: 1px solid var(--accent);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 10px 28px rgba(43, 39, 27, .05);
}
.availability-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 23px;
  line-height: 1;
}
.availability-copy { font-size: 16px; line-height: 1.48; }
.availability-copy p { margin: 0 0 9px; }
.availability-copy p:last-child { margin-bottom: 0; }
.availability-main { font-weight: 650; }
.availability-secondary {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}

.contact-section { padding: 34px 0 20px; }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 22px; min-height: 145px; }
.info-label { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.info-value { font-size: 20px; font-weight: 750; line-height: 1.35; }
.info-value.small { font-size: 18px; }
.info-note { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; font-weight: 500; }

.details-section { padding: 34px 0 26px; }
.details-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: 24px; align-items: stretch; }
.hours-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.section-title, .news-title { margin: 0 0 20px; font-size: 38px; font-weight: 500; }
.hours-list { margin: 0; padding: 0; list-style: none; }
.hours-list li { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hours-list li:last-child { border-bottom: 0; }
.hours-list strong { font-weight: 700; }
.entrance-photo { min-height: 420px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.entrance-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.news-section { padding: 48px 0; }
.news-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.news-title { margin: 0; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 24px; min-height: 235px; display: flex; flex-direction: column; }
.news-date { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.news-card h3 { margin: 0 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: 26px; line-height: 1.15; font-weight: 500; }
.news-card h3 a { text-decoration: none; }
.news-excerpt { color: #47443d; margin: 0 0 20px; }
.read-more { margin-top: auto; color: var(--accent-dark); font-weight: 750; text-decoration: none; }
.news-empty { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 24px; color: var(--muted); }

.location-section { padding: 24px 0 56px; }
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.location-photo, .map-wrap { min-height: 390px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.location-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 390px; border: 0; display: block; }

.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 34px 0 42px; }
.footer-brand-main { font-size: 26px; }
.footer-brand-sub { margin-top: 5px; color: var(--accent-dark); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; }

/* Posts */
.content-page { padding: 54px 0 70px; }
.post-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 28px; margin-bottom: 18px; }
.post-card h2, .single-post h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.post-card h2 { margin: 4px 0 10px; }
.post-card h2 a { text-decoration: none; }
.post-meta { color: var(--muted); font-size: 13px; }
.single-post { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 34px; }
.single-post h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.05; margin: 0 0 12px; }
.entry-content { margin-top: 28px; font-size: 18px; }
.entry-content img { border-radius: 14px; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 58px 0 34px; }
  .hero-photo { min-height: 430px; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .details-grid, .location-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .availability-section { padding-top: 16px; }
  .availability-card { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
  .availability-icon { width: 42px; height: 42px; }
  .availability-copy { font-size: 15px; }

  .container { width: min(100% - 28px, var(--max)); }
  .brand-main { font-size: 23px; }
  .header-inner { gap: 12px; }
  .language-switcher { gap: 5px; }
  .language-switcher a { min-width: 34px; padding: 6px 7px; }
  .hero-copy { padding-top: 46px; }
  .hero h1 { font-size: clamp(44px, 14vw, 60px); }
  .hero-photo { min-height: 360px; margin: 0 -14px; }
  .action-item { width: 100%; }
  .btn { width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  .details-section { padding-top: 20px; }
  .hours-card { padding: 24px 20px; }
  .section-title, .news-title { font-size: 34px; }
  .hours-list li { font-size: 15px; }
  .news-grid { grid-template-columns: 1fr; } /* mobile: one column */
  .news-card { min-height: auto; }
  .location-photo, .map-wrap, .map-wrap iframe { min-height: 310px; }
  .site-header { position: static; }
}


/* News links and featured images */
.news-title a { color: inherit; text-decoration: none; }
.all-news-link { color: var(--accent-dark); font-weight: 750; text-decoration: none; white-space: nowrap; }
.news-card { padding: 0; overflow: hidden; }
.news-card > .news-date,
.news-card > h3,
.news-card > .news-excerpt,
.news-card > .read-more { margin-left: 24px; margin-right: 24px; }
.news-card > .news-date { margin-top: 20px; }
.news-card > .read-more { margin-bottom: 24px; }
.news-image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--card); }
.news-image img { width: 100%; height: 100%; object-fit: cover; }
.post-card { padding: 0; overflow: hidden; }
.post-card-image { display: block; width: 100%; max-height: 520px; overflow: hidden; background: var(--card); }
.post-card-image img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; }
.post-card-body { padding: 28px; }
.single-featured-image { margin: 26px 0 0; border-radius: 14px; overflow: hidden; }
.single-featured-image img { width: 100%; height: auto; }

.back-news-link { display:inline-block; margin-bottom:18px; text-decoration:none; font-weight:700; }

.easter-copy {
  width: min(100%, 520px);
  margin: 18px 0 2px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}
.easter-action .btn { border-style: dashed; }


.ddx-page {
  background: #111;
  color: #f3efe6;
}
.ddx-wrap {
  min-height: 100vh;
  padding: 42px 18px 54px;
  background:
    radial-gradient(circle at top, rgba(68, 48, 104, 0.48), transparent 38%),
    linear-gradient(180deg, #111 0%, #18131e 52%, #111 100%);
}
.ddx-container {
  width: min(100%, 980px);
  margin: 0 auto;
}
.ddx-title {
  margin: 0 0 24px;
  text-align: center;
  color: #f3efe6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 6vw, 58px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.02em;
}
.ddx-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.ddx-card {
  margin: 0;
}
.ddx-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(0,0,0,.35);
}
.ddx-copy {
  margin-top: 28px;
  text-align: center;
  font-size: 22px;
  line-height: 1.55;
}
.ddx-copy p {
  margin: 0 0 10px;
}
.ddx-youtube {
  position: relative;
  width: min(100%, 820px);
  aspect-ratio: 16 / 9;
  margin: 34px auto 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(0,0,0,.35);
  background: #000;
}
.ddx-youtube iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.ddx-youtube-link {
  margin: 12px 0 0;
  text-align: center;
}
.ddx-youtube-link a {
  color: #ded5b7;
  text-decoration: none;
  font-size: 14px;
}
.ddx-youtube-link a:hover {
  text-decoration: underline;
}
@media (max-width: 700px) {
  .ddx-wrap {
    padding: 24px 12px 38px;
  }
  .ddx-duo {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .ddx-copy {
    margin-top: 22px;
    font-size: 19px;
  }
}
