/*
Theme Name: Ryda Torpes Gården
Theme URI: https://example.com/
Author: OpenAI
Description: Ett mobilanpassat WordPress-tema för Ryda Torpes Gården med fokus på gårdsförsäljning och maskintjänster.
Version: 1.0.7
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: ryda-torpes
*/

:root {
  --bg: #f7f4ec;
  --surface: #fffdf8;
  --text: #23251f;
  --muted: #6b6f63;
  --green: #2f5136;
  --green-dark: #203c28;
  --earth: #9a6e45;
  --line: #ded8ca;
  --shadow: 0 14px 40px rgba(34, 42, 32, .10);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247,244,236,.96);
  border-bottom: 1px solid rgba(222,216,202,.75);
  backdrop-filter: blur(12px);
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display:flex; align-items:center; gap:14px; font-weight:800; }
.brand img { width: 240px; height: 72px; object-fit: contain; }
.brand-text { font-family: Georgia, serif; letter-spacing: .04em; }

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 24px;
}
.main-nav ul { list-style:none; display:flex; align-items:center; gap:24px; margin:0; padding:0; }
.main-nav a { font-weight:700; font-size:15px; }
.main-nav a:hover { color: var(--green); }

.hero {
  padding: 74px 0 64px;
  background:
    radial-gradient(circle at 80% 20%, rgba(154,110,69,.12), transparent 30%),
    linear-gradient(180deg, #fbfaf5 0%, var(--bg) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display:inline-block;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--earth);
  margin-bottom: 14px;
}
h1,h2,h3 { font-family: Georgia, "Times New Roman", serif; line-height:1.08; margin:0 0 16px; }
h1 { font-size: clamp(44px, 7vw, 78px); }
h2 { font-size: clamp(34px, 5vw, 52px); }
h3 { font-size: 25px; }
.lead { font-size: 20px; color: var(--muted); max-width: 700px; }
.cta-row { display:flex; flex-wrap:wrap; gap:14px; margin-top:28px; }
.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: .2s ease;
}
.btn-primary { background: var(--green); color:#fff; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-secondary { border-color: var(--green); color: var(--green); background: transparent; }
.btn-secondary:hover { background: rgba(47,81,54,.07); }
.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.hero-logo { background:transparent; border-radius:0; padding:0; }
.hero-logo img { width: 100%; max-width: 460px; margin: 0 auto; }
.hero-note { margin-top:18px; color:var(--muted); font-size:15px; }

.section { padding: 76px 0; }
.section.alt { background: #efeadf; }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head p { color:var(--muted); font-size:18px; }
.services-grid {
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--surface);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  min-height: 220px;
  box-shadow: 0 8px 24px rgba(34,42,32,.06);
}
.service-icon { font-size: 34px; margin-bottom: 15px; }
.service-card p { color:var(--muted); margin:0; }

.split {
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.checklist { list-style:none; padding:0; margin:24px 0 0; }
.checklist li { position:relative; padding-left:30px; margin:10px 0; }
.checklist li::before { content:"✓"; position:absolute; left:0; color:var(--green); font-weight:900; }


.ridhus-section { background: #f8f5ed; }
.ridhus-card { position: relative; overflow: hidden; }
.ridhus-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  background: #efe8da;
  color: var(--green-dark);
  font-weight: 800;
  letter-spacing: .03em;
  margin-bottom: 18px;
}

.contact-box {
  background: var(--green-dark);
  color:#fff;
  border-radius: 28px;
  padding: 34px;
}
.contact-box p { color: rgba(255,255,255,.82); }

.contact-grid {
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:16px;
  margin-top:24px;
}
.contact-person {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  padding: 18px;
}
.contact-person h3 { margin-bottom:6px; color:#fff; }
.contact-person p { margin:0 0 6px; }
.contact-person a { color:#fff; font-weight:800; text-decoration:underline; text-underline-offset:3px; }

.contact-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:22px; }
.contact-actions .btn-primary { background:#fff; color:var(--green-dark); }
.contact-actions .btn-secondary { border-color:#fff; color:#fff; }

.site-footer { background:#18261c; color:#e9efe9; padding:28px 0; }
.footer-inner { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.footer-inner small { color:#b9c6bb; }

.entry-content { padding: 60px 0; }
.entry-content > * { max-width: 820px; margin-left:auto; margin-right:auto; }

@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 54px; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, 1180px); }
  .header-inner { min-height: 68px; }
  .brand img { width: 190px; height: 58px; }
  .brand-text { display:none; }
  .menu-toggle { display:block; }
  .main-nav {
    display:none;
    position:absolute;
    left:14px;
    right:14px;
    top:68px;
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:16px;
    box-shadow:var(--shadow);
    padding:12px;
  }
  .main-nav.open { display:block; }
  .main-nav ul { flex-direction:column; align-items:stretch; gap:4px; }
  .main-nav a { display:block; padding:12px 10px; border-radius:10px; }
  .main-nav a:hover { background:#f2eee4; }
  .hero { padding: 42px 0 46px; }
  h1 { font-size: clamp(38px, 13vw, 56px); }
  .lead { font-size:18px; }
  .cta-row, .contact-actions { flex-direction:column; }
  .contact-grid { grid-template-columns:1fr; }
  .btn { width:100%; }
  .services-grid { grid-template-columns:1fr; }
  .section { padding: 56px 0; }
  .hero-card, 
.ridhus-section { background: #f8f5ed; }
.ridhus-card { position: relative; overflow: hidden; }
.ridhus-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  background: #efe8da;
  color: var(--green-dark);
  font-weight: 800;
  letter-spacing: .03em;
  margin-bottom: 18px;
}

.contact-box { padding:22px; border-radius:20px; }
  .footer-inner { flex-direction:column; align-items:flex-start; }
}


/* Ved */
.wood-section {
  background: linear-gradient(180deg, #f7f4ec 0%, #f1eadc 100%);
}
.wood-split { align-items: center; }
.wood-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.wood-product {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
.wood-product h3 { font-size: 21px; margin: 0 0 4px; }
.wood-product p { margin: 0; color: var(--muted); font-weight: 700; }
.wood-icon { font-size: 34px; line-height: 1; }
.wood-card { position: relative; overflow: hidden; }
.wood-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 48px;
  padding: 0 16px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: #efe2cc;
  color: var(--green-dark);
  font-weight: 900;
  letter-spacing: .05em;
}

/* Ridhusbokning */
.booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 24px;
  align-items: stretch;
}
.calendar-card,
.booking-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(34,42,32,.06);
}
.calendar-frame { position: relative; width: 100%; min-height: 520px; }
.calendar-frame iframe { width: 100%; height: 520px; border: 0; display: block; }
.calendar-placeholder {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 42px;
  color: var(--muted);
}
.calendar-placeholder h3 { color: var(--text); margin-bottom: 10px; }
.calendar-placeholder p { max-width: 560px; margin: 0; }
.calendar-placeholder-icon { font-size: 48px; margin-bottom: 14px; }
.booking-card { padding: 28px; }
.booking-card .btn { margin-top: 22px; }

@media (max-width: 900px) {
  .booking-grid { grid-template-columns: 1fr; }
  .calendar-frame, .calendar-frame iframe { min-height: 460px; height: 460px; }
}

@media (max-width: 720px) {
  .wood-products { grid-template-columns: 1fr; }
  .calendar-placeholder { min-height: 300px; padding: 28px 20px; }
  .calendar-frame, .calendar-frame iframe { min-height: 420px; height: 420px; }
  .booking-card { padding: 22px; }
}

