/*
Theme Name: Karsel Karavan
Theme URI: http://127.0.0.1:8080/
Author: Local Dev
Author URI: http://127.0.0.1:8080/
Description: Modern caravan and caravan interior furniture sales theme.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: karsel-karavan
*/

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f7f5ef;
  --bg-soft: #efe9dd;
  --text: #1d2a29;
  --muted: #5e6c68;
  --brand: #0f766e;
  --brand-deep: #0b4f4a;
  --accent: #f08a24;
  --surface: #ffffff;
  --line: #d9d4c7;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px rgba(16, 48, 45, 0.12);
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at 5% 5%, #fffef9 0%, var(--bg) 30%, #ece5d8 100%);
  font-family: 'Manrope', sans-serif;
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 12px;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-family: 'Bebas Neue', sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: min(var(--container), 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(217, 212, 199, 0.8);
  background: rgba(247, 245, 239, 0.88);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  display: grid;
  place-items: center;
  background: conic-gradient(from 180deg, var(--brand), var(--accent), var(--brand));
}

.brand-text {
  font-size: 30px;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  transition: 0.25s ease;
}

.nav-links a:hover {
  color: #fff;
  background: var(--brand);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(110deg, var(--brand-deep), var(--brand));
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.3);
}

.btn-secondary {
  border-color: var(--brand);
  background: rgba(15, 118, 110, 0.08);
  color: var(--brand-deep);
}

.hero {
  padding: 74px 0 58px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 30px;
  align-items: stretch;
}

.hero-copy {
  padding: 36px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #fefcf6 0%, #f5f1e5 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.hero h1 {
  font-size: clamp(44px, 7vw, 78px);
  margin-top: 10px;
}

.hero p {
  margin: 0 0 22px;
  max-width: 56ch;
  color: var(--muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-side {
  border-radius: var(--radius);
  border: 1px solid #183332;
  background: linear-gradient(145deg, #173b38, #0f2624);
  color: #eff8f7;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.hero-side::before {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -35px;
  top: -35px;
  border-radius: 50%;
  background: rgba(240, 138, 36, 0.22);
}

.hero-side h2 {
  font-size: clamp(30px, 4vw, 46px);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.metric strong {
  display: block;
  font-size: 26px;
  font-family: 'Bebas Neue', sans-serif;
}

.section {
  padding: 40px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: clamp(34px, 5vw, 58px);
}

.section-head p {
  margin: 0;
  max-width: 55ch;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-cats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(22, 44, 40, 0.08);
  overflow: hidden;
  transform: translateY(8px);
  opacity: 0;
}

.card.reveal {
  animation: reveal-up 0.75s ease forwards;
}

.card-inner {
  padding: 20px;
}

.card h3 {
  font-size: 30px;
  margin-bottom: 8px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.tag {
  display: inline-block;
  margin-top: 14px;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--brand-deep);
  background: rgba(15, 118, 110, 0.11);
}

.grid-products {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.price {
  margin-top: 16px;
  font-size: 30px;
  color: var(--brand-deep);
  font-family: 'Bebas Neue', sans-serif;
}

.cta-band {
  margin-top: 18px;
  border-radius: var(--radius);
  padding: 28px;
  color: #fff;
  background: linear-gradient(120deg, #1f4a46, #0f766e, #f08a24);
  box-shadow: var(--shadow);
}

.cta-band h2 {
  font-size: clamp(34px, 5vw, 58px);
}

.cta-band p {
  margin: 0 0 16px;
  max-width: 62ch;
}

.quote-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.quote-form,
.quote-result {
  opacity: 1;
  transform: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-group label,
.field-label {
  font-size: 13px;
  font-weight: 700;
  color: #30413d;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.field-group select,
.field-group input[type="number"],
.field-group input[type="text"],
.field-group input[type="email"],
.field-group input[type="tel"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  color: var(--text);
  font-size: 15px;
  font-family: 'Manrope', sans-serif;
}

.field-group small {
  color: var(--muted);
  font-size: 12px;
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-row label {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: #253532;
  background: #fff;
}

.option-row input {
  accent-color: var(--brand);
}

.quote-helper,
.quote-note {
  color: var(--muted);
}

.quote-status {
  min-height: 22px;
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 700;
}

.quote-status.success {
  color: #0b7a58;
}

.quote-status.error {
  color: #b13434;
}

.quote-lines {
  display: grid;
  gap: 8px;
}

.quote-lines div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 6px;
  font-size: 14px;
}

.quote-total {
  margin-top: 14px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px;
  line-height: 1;
  color: var(--brand-deep);
}

.quote-vat {
  margin: 4px 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #2f5853;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: #f0ebdf;
}

.footer-row {
  padding: 26px 0;
  color: #4b5955;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 600;
}

.woocommerce ul.products {
  margin-top: 8px;
}

.woocommerce ul.products li.product {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  padding: 14px;
  background: #fff;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1040px) {
  .hero-grid,
  .grid-cats,
  .grid-products,
  .quote-layout,
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-copy,
  .hero-side {
    padding: 24px;
  }
}

@media (max-width: 760px) {
  .header-row {
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-grid,
  .grid-cats,
  .grid-products,
  .metric-row,
  .quote-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 36px;
  }

  .hero h1 {
    font-size: clamp(38px, 13vw, 52px);
  }
}
