/* Site-specific additions on top of the template stylesheet (style.css).
   Typography (font family and sizes) comes from the template; nothing here overrides it. */

/* ------------------------------------------------------------ brand: handwritten logo (Rouge Script, SIL OFL, self-hosted) */
@font-face {
  font-family: 'Rouge Script';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/rouge-script-latin.woff2) format('woff2');
}
.brand-wordmark { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1; color: var(--neutral--800); }
.brand-wordmark-name { font-family: 'Rouge Script', cursive; font-size: 50px; font-weight: 400; letter-spacing: 0; line-height: 1; white-space: nowrap; }
.brand-wordmark-title {
  margin-top: -2px;
  padding-left: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent--primary-2);
}
.footer-logo-wrapper .brand-wordmark-name { font-size: 62px; }
@media screen and (max-width: 991px) { .brand-wordmark-name { font-size: 42px; } .footer-logo-wrapper .brand-wordmark-name { font-size: 56px; } }

/* ------------------------------------------------------------ vertical rhythm (reduced template spacing) */
:root { --space-section: 96px; }
@media screen and (max-width: 991px) { :root { --space-section: 80px; } }
@media screen and (max-width: 767px) { :root { --space-section: 64px; } }
@media screen and (max-width: 479px) { :root { --space-section: 56px; } }
.section,
.section.layout-v1,
.section.layout-v3,
.section.layout-v4,
.section.layout-v6 { padding-top: var(--space-section); padding-bottom: var(--space-section); }
.section.layout-v1,
.section.layout-v4 { padding-bottom: calc(var(--space-section) + 64px); }
.section.hero.v2,
.section.hero.v3,
.section.hero.v5 { padding-top: 64px; padding-bottom: var(--space-section); }
.section.hero.v4 { padding-top: 64px; padding-bottom: 0; }
.section.pd-top-120px,
.section.pd-top-140px { padding-top: var(--space-section); }
.section.pd-bottom-120px { padding-bottom: var(--space-section); }
.section.pd-top-0 { padding-top: 0; }
.section.cta-v1 { padding-top: calc(var(--space-section) + 48px); padding-bottom: calc(var(--space-section) + 72px); }
.section.cta-v2 { padding-top: 72px; padding-bottom: 72px; }
.section.newsletter { padding-top: var(--space-section); padding-bottom: var(--space-section); }
@media screen and (max-width: 767px) {
  .section.hero.v2, .section.hero.v3, .section.hero.v4, .section.hero.v5 { padding-top: 40px; }
  .section.cta-v2 { padding-top: 56px; padding-bottom: 56px; }
}
/* Title-only heroes get a full cream band (the template's band covers only the top half). */
.position-absolute.hero-v3---bg.full { inset: 0; min-height: 0; }

/* ------------------------------------------------------------ section heading (template pattern: squiggle + title + text) */
.section-header { max-width: 640px; margin: 0 auto 56px; }
.section-header.center { text-align: center; }
.section-header.left { margin-left: 0; }
.section-header .display-2 { margin-bottom: 0; }
.section-header-text { margin: 16px 0 0; }
@media screen and (max-width: 767px) { .section-header { margin-bottom: 40px; } }

/* ------------------------------------------------------------ scroll reveal (site.js) */
html.js-reveal [data-reveal] { opacity: 0; transform: translate3d(0, 32px, 0); transition: opacity 0.8s ease, transform 0.8s ease; }
html.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------------------ floating decorative shapes (were Webflow interactions) */
@keyframes hb-float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -14px, 0); } }
@keyframes hb-float-tilt { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); } 50% { transform: translate3d(0, -12px, 0) rotate(-5deg); } }
@keyframes hb-drift { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(10px, -10px, 0) scale(1.03); } }
.floating-item.shape-cta-01 { animation: hb-float 6s ease-in-out infinite; }
.floating-item.shape-cta-02 { animation: hb-float 7s ease-in-out -2s infinite; }
.floating-item.shape-cta-03 { animation: hb-float-tilt 8s ease-in-out -1s infinite; }
.floating-item.shape-cta-04 { animation: hb-float 6.5s ease-in-out -3s infinite; }
.floating-item.cta-v1-image { animation: hb-float-tilt 9s ease-in-out infinite; transform-origin: 70% 90%; }
.floating-item.cta-v1-bg---01 { animation: hb-drift 12s ease-in-out infinite; }
.floating-item.cta-v1-bg---02 { animation: hb-drift 14s ease-in-out -5s infinite; }
@media (prefers-reduced-motion: reduce) {
  html.js-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
  .floating-item { animation: none !important; }
}

/* ------------------------------------------------------------ header */
.hamburger-menu-bar { transition: transform 0.3s ease; }
.w-nav-button.w--open .hamburger-menu-bar.top { transform: translateY(7.5px) rotate(45deg); }
.w-nav-button.w--open .hamburger-menu-bar.bottom { transform: translateY(-7.5px) rotate(-45deg); }
.w-nav-button.w--open { background-color: transparent; color: inherit; }
/* webflow.js used to size the overlay in JS; let the opened menu give it height instead. */
.w-nav-overlay [data-nav-menu-open] { position: relative; float: none; width: 100%; text-align: left; }
.dropdown-arrow { transition: transform 0.3s ease; }
.w-dropdown-toggle.w--open .dropdown-arrow { transform: rotate(180deg); }
.dropdown-pd.compact { padding: 28px 32px; }
.dropdown-pd.compact .dropdown-link-column { min-width: 220px; }
.header-nav-link, .text-dropdown, .header-btn-hidde-on-mb { white-space: nowrap; }
@media screen and (min-width: 992px) and (max-width: 1279px) {
  .header-nav-list-item { padding-left: 22px; }
  .btn-primary.small.header-btn-hidde-on-mb { margin-left: 24px; }
  .header-nav-link, .text-dropdown { font-size: 16px; }
}
@media screen and (min-width: 992px) and (max-width: 1099px) {
  .header-nav-list-item { padding-left: 16px; }
  .brand-wordmark-name { font-size: 44px; }
}

/* ------------------------------------------------------------ FAQ accordion (site.js) */
.acordion-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s ease; }
.acordion-body-inner { min-height: 0; overflow: hidden; }
.accordion-item-wrapper.is-open .acordion-body { grid-template-rows: 1fr; }

/* ------------------------------------------------------------ FAQ, split layout (questions | answer) */
.faq-q-heading { margin: 0; font-size: inherit; line-height: inherit; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%;
  padding: 22px 24px 22px 28px; border: 1px solid var(--neutral--300); background-color: var(--neutral--100);
  box-shadow: 0 2px 14px 0 var(--general--shadow-02); color: var(--neutral--700);
  font-family: inherit; font-size: 18px; font-weight: 500; line-height: 1.45em; text-align: left; cursor: pointer;
  transition: border-color .3s, background-color .3s, color .3s, box-shadow .3s;
}
.faq-q:hover { color: var(--neutral--800); box-shadow: 0 4px 18px 0 var(--general--shadow-01); }
.faq-q:focus-visible { outline: 2px solid var(--accent--primary-1); outline-offset: 2px; }
.faq-q.is-open { border-color: var(--accent--primary-1); background-color: var(--neutral--200); color: var(--neutral--800); }
.faq-q-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px;
  border: 1px solid var(--neutral--300); border-radius: 50%; background-color: var(--neutral--100);
  transition: background-color .3s, border-color .3s, transform .3s;
}
.faq-q-icon svg { width: 18px; height: 18px; fill: none; stroke: var(--neutral--800); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.faq-q.is-open .faq-q-icon { background-color: var(--accent--primary-1); border-color: var(--accent--primary-1); }
.faq-q.is-open .faq-q-icon svg { stroke: var(--neutral--100); }
.faq-a-card { color: var(--neutral--600); font-size: 18px; line-height: 1.7em; }
.faq-a-title { display: none; }

@media screen and (min-width: 992px) {
  .faq-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 40px; row-gap: 14px; align-items: start; }
  .faq-q-heading { grid-column: 1; }
  .faq-a { grid-column: 2; grid-row: 1 / span var(--faq-n); display: none; position: sticky; top: 120px; align-self: start; }
  .faq-a.is-open { display: block; animation: faq-fade .35s ease; }
  .faq-a-card {
    padding: 56px 64px 60px; border: 1px solid var(--neutral--300); background-color: var(--neutral--100);
    box-shadow: 0 2px 14px 0 var(--general--shadow-02); position: relative;
  }
  .faq-a-card::before { content: ""; position: absolute; left: 0; top: 56px; width: 4px; height: 48px; background-color: var(--accent--primary-1); }
  .faq-a-title { display: block; margin-bottom: 20px; color: var(--neutral--800); font-size: 28px; font-weight: 500; line-height: 1.3em; }
  .faq-q.is-open .faq-q-icon { transform: none; }
}
@keyframes faq-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media screen and (max-width: 991px) {
  .faq-split { display: grid; gap: 14px; }
  .faq-a { display: grid; grid-template-rows: 0fr; margin-top: -14px; transition: grid-template-rows .35s ease; }
  .faq-a.is-open { grid-template-rows: 1fr; }
  .faq-a-inner { min-height: 0; overflow: hidden; }
  .faq-a-card { padding: 20px 24px 24px 28px; border: 1px solid var(--accent--primary-1); border-top: 0; background-color: var(--neutral--200); font-size: 16px; }
  .faq-q.is-open { box-shadow: none; }
  .faq-q-icon svg { transform: rotate(90deg); transition: transform .3s, stroke .3s; }
  .faq-q.is-open .faq-q-icon svg { transform: rotate(-90deg); }
  .faq-a:not(.is-open) .faq-a-card { border-color: transparent; background: transparent; }
}
@media (prefers-reduced-motion: reduce) { .faq-a.is-open { animation: none; } .faq-a { transition: none; } }
.accordion-btn-line { transition: transform 0.3s ease; }
.accordion-item-wrapper.is-open .accordion-btn-line.vertical { transform: rotate(0deg); }
.accordion-item-wrapper:focus-visible { outline: 2px solid var(--accent--primary-1); outline-offset: 4px; }

/* ------------------------------------------------------------ two-tone icons (Healthicons, see src/lib/icons.ts) */
:root {
  --icon-line: #1f4a1b;
  --icon-green-bg: #eef8e8;
  --icon-orange-bg: #fff1e6;
}
.icon-badge { display: inline-grid; place-items: center; flex: none; border-radius: 50%; aspect-ratio: 1; }
.icon-badge svg { width: 62%; height: 62%; display: block; }
.icon-badge .i-line { fill: var(--icon-line); }
.icon-badge.tone-green { background-color: var(--icon-green-bg); }
.icon-badge.tone-green .i-soft { fill: var(--accent--primary-1); }
.icon-badge.tone-orange { background-color: var(--icon-orange-bg); }
.icon-badge.tone-orange .i-soft { fill: var(--accent--primary-2); }
.icon-badge.sm { width: 58px; }
.icon-badge.md { width: 76px; }
.icon-badge.lg { width: 96px; }
/* Service cards: same size and position as the template's card icons (.layout-v1-icon). */
.icon-badge.layout-v1-icon { width: 180px; }
.icon-badge.layout-v1-icon svg { width: 52%; height: 52%; }
@media screen and (max-width: 767px) { .icon-badge.layout-v1-icon { width: 140px; } }
@media screen and (max-width: 479px) { .icon-badge.layout-v1-icon { width: 120px; } }
.icon-list-item-wrapper { gap: 16px; }
.icon-list-item-wrapper > .icon-badge { margin-top: 2px; }
.value-icon-wrap { display: block; margin-bottom: 24px; }
@media screen and (max-width: 767px) { .value-icon-wrap { margin-bottom: 0; margin-right: 24px; } }
@media screen and (max-width: 479px) { .value-icon-wrap { margin-bottom: 16px; margin-right: 0; } }
/* Values cards: keep icon + title on the same line in every card of a row. */
.card.card-content-values-behind { justify-content: flex-start; }

/* ------------------------------------------------------------ home: 4 service cards (template card style) */
/* flex so that an incomplete last row is centred (e.g. 5 services = 4 + 1) */
.grid-services { --cols: 4; --gap: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.grid-services .card { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); color: inherit; text-decoration: none; }
@media screen and (max-width: 991px) { .grid-services { --cols: 2; } }
@media screen and (max-width: 767px) { .grid-services { --cols: 1; } }

/* ------------------------------------------------------------ image + text split (class copy of the template's id rules) */
.split-image { align-self: stretch; }
.split-content { justify-self: end; }
.image-left-grid.reverse .split-content { justify-self: start; }
@media screen and (min-width: 992px) { .image-left-grid.reverse .split-image { order: 2; } }
@media screen and (max-width: 991px) {
  .split-content,
  .image-left-grid.reverse .split-content { order: -9999; justify-self: auto; }
}
.split-image .image-left-grid---image { height: auto; min-height: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.split-image .image-left-grid---image img { width: 100%; height: 100%; object-fit: cover; }
@media screen and (max-width: 991px) { .split-image .image-left-grid---image { aspect-ratio: 4 / 3; } }

/* ------------------------------------------------------------ services page */
.service-section { scroll-margin-top: 24px; }
.section.service-section { padding-top: 0; padding-bottom: var(--space-section); }
.section.service-section.first { padding-top: var(--space-section); }
.service-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.service-title { display: flex; align-items: center; gap: 18px; font-size: 38px; line-height: 1.2em; font-weight: 500; }
.service-title .icon-badge { width: 64px; }
@media screen and (max-width: 991px) { .service-title { font-size: 32px; } }
@media screen and (max-width: 479px) { .service-title { font-size: 26px; gap: 14px; } .service-title .icon-badge { width: 52px; } }
.check-list { margin: 0 0 40px; padding: 0; list-style: none; display: grid; gap: 14px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; padding-left: 0; color: var(--neutral--700); }
.check-list li::before {
  content: '\e813';
  font-family: Line Rounded Icons, sans-serif;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  line-height: 1;
  color: var(--neutral--800);
  background-color: var(--accent--primary-1);
  margin-top: 1px;
}
@media screen and (max-width: 991px) {
  .check-list { justify-items: start; text-align: left; }
  .check-list li { text-align: left; }
}

/* ------------------------------------------------------------ process steps (Online Diyet) */
.grid-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media screen and (max-width: 991px) { .grid-steps { grid-template-columns: repeat(2, 1fr); } }
@media screen and (max-width: 479px) { .grid-steps { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ photos */
/* Home hero: cut-out portrait in front of a brand-green arch (the template had the arch baked into its image). */
.hero-portrait { position: relative; display: flex; align-items: flex-end; justify-content: center; }
.hero-portrait::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 17%;
  background-color: var(--accent--primary-1);
  border-radius: 1000px 1000px 0 0;
}
.hero-portrait-img { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
/* Contact: portrait in an arch-topped frame (same arch motif as the template's contact image). */
.contact-photo { overflow: hidden; border-radius: 1000px 1000px 0 0; aspect-ratio: 4 / 5; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; display: block; }
/* Newsletter (blog) photo: rounded arch frame. */
.newsletter-photo { overflow: hidden; border-radius: 1000px 1000px 0 0; aspect-ratio: 4 / 5; }
.newsletter-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.photo-pos-top { object-position: 50% 18%; }
.photo-pos-office { object-position: 50% 62%; }
.photo-pos-sofa { object-position: 50% 55%; }
.video-bg-image.photo-wide { height: 560px; }
@media screen and (max-width: 991px) { .video-bg-image.photo-wide { height: 440px; } }
@media screen and (max-width: 479px) { .video-bg-image.photo-wide { height: 320px; } }
.avatar-photo { display: block; width: 100%; height: auto; }

/* ------------------------------------------------------------ social items without a link (YouTube, LinkedIn) */
.link-wrapper.is-static,
.social-icon-square.is-static { cursor: default; }

/* ------------------------------------------------------------ blog */
.rich-text blockquote {
  margin: 0 0 32px;
  padding: 4px 0 4px 20px;
  border: 0;
  border-left: 3px solid var(--accent--primary-1);
  border-radius: 0;
  background: none;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6em;
  text-align: left;
  color: var(--neutral--600);
}
.rich-text blockquote p { margin: 0; font-size: inherit; line-height: inherit; }
.blog-list-header { display: flex; flex-direction: column; gap: 24px; margin-bottom: 56px; }
@media screen and (max-width: 991px) { .blog-list-header { align-items: center; text-align: center; } }
.blog-search-empty { margin: 24px 0 0; text-align: center; }
.badge-secondary.category-badges { padding: 10px 18px; font-size: 15px; line-height: 1.3em; }
.categories-badges-wrapper.left,
.categories-badges-wrapper.center { column-gap: 12px; row-gap: 12px; }
@media screen and (min-width: 992px) { .blog-list-header .categories-badges-wrapper.left { justify-content: flex-start; } }
@media screen and (max-width: 991px) { .blog-list-header .categories-badges-wrapper { justify-content: center; } }
@media screen and (max-width: 479px) {
  .badge-secondary.category-badges { width: auto; }
  .categories-badges-wrapper { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; }
}

/* ------------------------------------------------------------ footer bottom bar: small and quiet */
.footer-bottom { font-size: 14px; line-height: 1.6em; }
.footer-bottom p { font-size: 14px; }
.footer-bottom-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px 32px; }
.footer-bottom-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 24px; }
.footer-credit { display: inline-flex; align-items: center; gap: 6px; color: var(--neutral--600); white-space: nowrap; }
.footer-credit-name { font-weight: 500; color: var(--neutral--800); text-decoration: none; transition: color .2s ease; }
.footer-credit-name:hover { color: var(--accent--primary-1); }
.footer-credit-heart { width: 14px; height: 14px; fill: var(--accent--primary-2); transform-origin: center; animation: hb-heartbeat 2.4s ease-in-out infinite; }
@keyframes hb-heartbeat { 0%, 60%, 100% { transform: scale(1); } 10%, 30% { transform: scale(1.22); } 20% { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .footer-credit-heart { animation: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media screen and (max-width: 991px) {
  .footer-bottom-row { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-bottom-links { justify-content: center; }
  .footer-credit { order: 3; }
}
.footer-bottom-links a.text-link { font-size: 14px; font-weight: 400; color: var(--neutral--600); text-decoration: none; }
.footer-bottom-links a.text-link:hover { color: var(--neutral--800); text-decoration: underline; }
@media screen and (max-width: 767px) {
  .footer-bottom-row { justify-content: center; text-align: center; }
  .footer-bottom-links { justify-content: center; }
}

/* ------------------------------------------------------------ legal pages: compact long-form text */
.legal-text { max-width: 760px; margin: 0 auto; font-size: 16px; line-height: 1.75em; color: var(--neutral--700); }
.legal-text h2 { margin: 40px 0 12px; font-size: 20px; line-height: 1.4em; }
.legal-text p { margin: 0 0 16px; }
.legal-text ul { margin: 0 0 16px; padding-left: 20px; }
.legal-text li { margin-bottom: 6px; padding-left: 4px; }
.legal-text a { color: var(--neutral--800); text-decoration: underline; }
.legal-updated { font-size: 14px; color: var(--neutral--500); }

/* ------------------------------------------------------------ floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background-color: #25d366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(20, 20, 43, 0.18);
  transition: transform 0.3s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; }
@media screen and (max-width: 479px) { .whatsapp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; } }

/* Contact "Takipte kalın": on tablet/mobile the template frame has no height of its own, so let the photo set it. */
@media screen and (max-width: 991px) {
  .image-wrapper.layout-v6-image img { height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
}

/* ------------------------------------------------------------ form placeholders: lighter than the template's neutral-600 */
.input::placeholder, .text-area::placeholder, .w-input::placeholder { color: var(--neutral--500); opacity: 1; }

/* ------------------------------------------------------------ About hero: keep the card (and its -180px background) in front of the photo,
   as in the template. Without this the card drops behind the photo once the reveal transform ends. */
@media screen and (min-width: 992px) { .inner-container.hero-v2-content { position: relative; z-index: 1; isolation: isolate; } }

/* ------------------------------------------------------------ blog newsletter: Turkish e-book cover keeps its proportions */
.image-wrapper.newsletter---image img { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; }

/* ------------------------------------------------------------ blog post cover: crop instead of stretching */
.image.blog-cover { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 50%; }
@media screen and (max-width: 767px) { .image.blog-cover { aspect-ratio: 4 / 3; } }

/* ------------------------------------------------------------ blog cards: equal height in a row, date + arrow pinned to the bottom */
.w-dyn-items > .w-dyn-item:has(> .card.blog-post) { display: flex; }
.w-dyn-item > .card.blog-post { display: flex; flex-direction: column; width: 100%; height: 100%; }
.card.blog-post .card-content-blog-posts { display: flex; flex-direction: column; flex: 1; }
.card.blog-post .card-content-blog-posts > .flex-horizontal { margin-top: auto; }
