/*
Theme Name: Berrak Su
Theme URI: https://example.com/berrak-su
Author: Berrak Su
Description: Su arıtma cihazı satışı ve servis hizmeti veren işletmeler için hazır kurumsal tema. Ürünler, hizmetler, iletişim formu, WhatsApp butonu ve talep kayıtları içerir.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: berrak-su
Tags: business, one-column, custom-menu, featured-images, translation-ready
*/

:root {
  --navy: #0c2340;
  --ocean: #1a4a6e;
  --teal: #2d8a9e;
  --aqua: #5cbdb9;
  --aqua-soft: #d8f0ee;
  --mist: #eef5f7;
  --paper: #ffffff;
  --ink: #0f1f2e;
  --muted: #5b7083;
  --line: #dbe6ec;
  --wa: #25d366;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -18px rgba(12, 35, 64, 0.35);
  --shadow-soft: 0 8px 24px -12px rgba(12, 35, 64, 0.18);
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--ocean); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--navy); margin: 0 0 .6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 999; top: 8px; left: 8px; background: var(--paper); padding: 8px 14px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.section { padding: 96px 0; }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: #cfe0ea; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--teal);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--aqua); border-radius: 2px; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--aqua); color: var(--navy); box-shadow: 0 10px 24px -10px rgba(92,189,185,.8); }
.btn--primary:hover { background: #74cfca; color: var(--navy); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--ocean); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--wa { background: var(--wa); color: #073b1d; }
.btn--wa:hover { color: #073b1d; filter: brightness(1.05); }
.btn--block { width: 100%; }

/* Top bar + header */
.topbar { background: var(--navy); color: #a9c3d3; font-size: .86rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; flex-wrap: wrap; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 7px; color: #a9c3d3; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; color: var(--aqua); }
.topbar__group { display: flex; gap: 22px; flex-wrap: wrap; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--navy); }
.brand__mark { width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(140deg, var(--teal), var(--navy)); display: grid; place-items: center; color: #fff; }
.brand__mark svg { width: 22px; height: 22px; }
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .74rem; color: var(--muted); letter-spacing: .02em; }
.custom-logo { max-height: 52px; width: auto; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.main-nav a { display: block; padding: 10px 14px; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: .96rem; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a { background: var(--mist); color: var(--ocean); }
.header-cta { display: flex; gap: 10px; align-items: center; }
.header-phone { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-family: var(--font-head); font-weight: 700; }
.header-phone svg { width: 20px; height: 20px; color: var(--teal); }
.header-phone small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .72rem; color: var(--muted); }
.nav-toggle { display: none; background: var(--mist); border: 0; border-radius: 12px; width: 46px; height: 46px; cursor: pointer; color: var(--navy); }
.nav-toggle svg { width: 22px; height: 22px; margin: auto; }

/* Hero */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--navy); }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: 30% center; transform: scale(1.03); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(12,35,64,.96) 0%, rgba(12,35,64,.86) 38%, rgba(26,74,110,.35) 70%, rgba(26,74,110,.15) 100%); }
.hero .wrap { position: relative; z-index: 2; padding: 110px 0 150px; }
.hero__content { max-width: 620px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--aqua); }
.hero .lead { color: #c7dbe6; font-size: 1.2rem; max-width: 540px; }
.hero .eyebrow { color: var(--aqua); }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero__trust { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 40px; padding: 0; list-style: none; }
.hero__trust li { display: flex; align-items: center; gap: 9px; color: #dbe9f0; font-weight: 600; font-size: .95rem; }
.hero__trust svg { width: 20px; height: 20px; color: var(--aqua); }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3; line-height: 0; }
.wave svg { width: 100%; height: 90px; }

/* Highlights overlapping hero */
.highlights { position: relative; z-index: 5; margin-top: -70px; }
.highlights__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hl-card { background: var(--paper); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; gap: 18px; align-items: flex-start; border: 1px solid var(--line); }
.hl-card h3 { margin-bottom: 6px; }
.hl-card p { margin: 0; color: var(--muted); font-size: .95rem; }

.icon-badge { flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--aqua-soft); color: var(--teal); }
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge--dark { background: rgba(92,189,185,.14); color: var(--aqua); }

/* Services */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.service-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; overflow: hidden; }
.service-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--mist); transition: transform .4s ease; z-index: 0; }
.service-card > * { position: relative; z-index: 1; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::after { transform: scale(1.6); }
.service-card .icon-badge { margin-bottom: 22px; }
.service-card p { color: var(--muted); margin-bottom: 0; }
.service-card .more { display: inline-flex; gap: 6px; align-items: center; margin-top: 16px; font-weight: 700; font-family: var(--font-head); font-size: .92rem; }

/* Products */
.product-card { background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-card__img { aspect-ratio: 1 / 1; background: #dfe8ee; overflow: hidden; }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-card__img img { transform: scale(1.05); }
.product-card__body { padding: 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card__body h3 { margin: 0; }
.product-card__body h3 a { color: var(--navy); }
.product-card__body p { color: var(--muted); margin: 0; font-size: .95rem; }
.price { font-family: var(--font-head); font-weight: 700; color: var(--ocean); font-size: 1.2rem; }
.product-card__actions { margin-top: auto; padding-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.product-card__actions .btn { padding: 12px 18px; font-size: .9rem; flex: 1; }
.tag { display: inline-block; align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--aqua-soft); color: var(--ocean); font-size: .76rem; font-weight: 700; letter-spacing: .04em; }
.checklist { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist svg { flex: none; width: 20px; height: 20px; margin-top: 4px; color: var(--teal); }

/* Split / steps */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split__media { position: relative; }
.split__media img { border-radius: 26px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3.4; object-fit: cover; }
.float-badge { position: absolute; left: -24px; bottom: 28px; background: var(--paper); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; max-width: 280px; }
.float-badge strong { display: block; font-family: var(--font-head); color: var(--navy); }
.float-badge span { color: var(--muted); font-size: .88rem; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; }
.steps li::before { counter-increment: s; content: "0" counter(s); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; background: var(--navy); color: var(--aqua); }
.steps h3 { margin: 4px 0 4px; font-size: 1.08rem; }
.steps p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Navy feature band */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.feature h3 { font-size: 1.05rem; margin: 18px 0 6px; }
.feature p { color: #a9c3d3; font-size: .95rem; margin: 0; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 4px 24px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-family: var(--font-head); font-weight: 600; color: var(--navy); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--teal); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 14px; margin: 0; }

/* CTA */
.cta { background: linear-gradient(120deg, var(--ocean), var(--navy)); border-radius: 28px; padding: 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; color: #cfe0ea; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; right: -120px; top: -160px; background: radial-gradient(circle, rgba(92,189,185,.45), transparent 70%); }
.cta h2 { color: #fff; margin-bottom: 10px; }
.cta p { margin: 0; }
.cta__actions { display: flex; flex-direction: column; gap: 12px; position: relative; }

/* Page hero */
.page-hero { background: var(--navy); color: #c7dbe6; padding: 72px 0 96px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -160px; top: -260px; background: radial-gradient(circle, rgba(92,189,185,.35), transparent 70%); }
.page-hero h1 { color: #fff; margin-bottom: 10px; position: relative; }
.page-hero p { max-width: 620px; margin: 0; position: relative; font-size: 1.1rem; }
.breadcrumb { font-size: .86rem; margin-bottom: 14px; color: #8fb0c3; position: relative; }
.breadcrumb a { color: var(--aqua); }

/* Content */
.entry-content { max-width: 780px; }
.entry-content h2 { margin-top: 1.4em; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content ul { padding-left: 1.2em; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.info-list li { display: flex; gap: 16px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.info-list strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: .95rem; }
.info-list span, .info-list a { color: var(--muted); }
.form-card { background: var(--paper); border-radius: 24px; padding: 36px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-card h3 { font-size: 1.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: .9rem; color: var(--navy); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--mist); color: var(--ink); transition: border-color .2s, background .2s; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: var(--paper); }
.field textarea { min-height: 120px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-weight: 600; }
.notice--ok { background: var(--aqua-soft); color: var(--ocean); }
.notice--err { background: #fde8e8; color: #9b1c1c; }
.form-note { font-size: .82rem; color: var(--muted); margin: 10px 0 0; }
.map { margin-top: 24px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); line-height: 0; }
.map iframe { width: 100%; height: 300px; border: 0; }

/* Single product */
.product-single { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.product-single__img img { border-radius: 24px; box-shadow: var(--shadow-soft); width: 100%; }
.product-single .price { font-size: 1.6rem; margin: 6px 0 18px; display: block; }
.product-single__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Posts list */
.post-list { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); }
.post-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.post-item h2 { font-size: 1.3rem; }
.pagination { margin-top: 40px; display: flex; gap: 8px; }
.pagination .page-numbers { padding: 8px 14px; border-radius: 10px; background: var(--mist); }

/* Footer */
.site-footer { background: #081a30; color: #93afc1; padding: 80px 0 0; font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand small { color: #7f9db0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #93afc1; }
.site-footer a:hover { color: var(--aqua); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--aqua); flex: none; margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 60px; padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(37,211,102,.7); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .wa-float::after { animation: none; } }

/* WP core */
.alignwide { max-width: 1100px; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text { font-size: .85rem; color: var(--muted); }

/* Responsive */
@media (max-width: 1080px) {
  .header-phone { display: none; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); display: none; padding: 12px 20px 20px; box-shadow: var(--shadow-soft); }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .header-cta .btn { display: none; }
  .highlights__grid, .grid--3, .grid--2, .split, .contact-grid, .product-single, .post-list, .cta { grid-template-columns: 1fr; }
  .split { gap: 40px; }
  .float-badge { left: 16px; }
  .cta { padding: 36px; }
  .section { padding: 72px 0; }
  .topbar__group--right { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { min-height: 560px; }
  .hero .wrap { padding: 80px 0 130px; }
  .features, .footer-grid, .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .hero__actions .btn { width: 100%; }
}
.form-intro { color: var(--muted); margin-bottom: 22px; }
.section-more { margin: 36px 0 0; }

/* Düzeltmeler */
.brand > span:last-child { line-height: 1.15; white-space: nowrap; }
.brand small { margin-top: 3px; }
.main-nav a, .btn, .header-phone { white-space: nowrap; }
.header-phone span { line-height: 1.2; }
.service-card .more svg { width: 16px; height: 16px; }
.site-footer .btn--wa, .site-footer .btn--wa:hover { color: #073b1d; }
@media (max-width: 1240px) { .header-phone { display: none; } }
@media (max-width: 600px) {
  .brand { font-size: 1.05rem; }
  .brand__mark { width: 38px; height: 38px; }
  .hero::after { background: linear-gradient(180deg, rgba(12,35,64,.92) 0%, rgba(12,35,64,.85) 60%, rgba(12,35,64,.75) 100%); }
  .topbar span:last-child { display: none; }
}
