/*
Theme Name: Lidingö Naprapaterna
Theme URI: https://lidingonaprapaterna.se
Author: Lidingö Naprapaterna
Description: Officiellt tema för Lidingö Naprapaterna
Version: 1.1.0
License: GPL-2.0-or-later
Text Domain: lidingo
*/

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:        #3ecfba;
  --teal-dark:   #1a9e96;
  --teal-deeper: #157a74;
  --text:        #2d3748;
  --text-light:  #5a6a7a;
  --white:       #ffffff;
  --bg:          #f8fafb;
  --border:      #e2e8f0;
  --radius:      6px;
  --shadow:      0 2px 16px rgba(0,0,0,0.08);
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--teal-deeper); }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4,h5 { line-height: 1.25; color: var(--text); font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1.2rem; color: var(--text-light); }
p:last-child { margin-bottom: 0; }
ul,ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
li { margin-bottom: 0.4rem; color: var(--text-light); }
blockquote { border-left: 4px solid var(--teal); padding: 1rem 1.5rem; margin: 1.5rem 0; background: #f0fdfb; border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; color: var(--text); }
strong { color: var(--text); }

/* LAYOUT */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section--gray { background: var(--bg); }

/* BUTTONS */
.btn { display: inline-block; padding: 0.75rem 1.75rem; border-radius: 50px; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: all 0.2s ease; border: 2px solid transparent; text-decoration: none; letter-spacing: 0.02em; }
.btn--primary { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn--primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.8); }
.btn--outline:hover { background: rgba(255,255,255,0.15); color: var(--white); }
.btn--outline-dark { background: transparent; color: var(--teal-dark); border-color: var(--teal-dark); }
.btn--outline-dark:hover { background: var(--teal-dark); color: var(--white); }

/* HEADER */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--white); border-bottom: 1px solid var(--border); box-shadow: 0 1px 8px rgba(0,0,0,0.06); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 2rem; }
.site-logo { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; gap: 0.75rem; }
.site-logo img { height: 44px; width: auto; }
.site-logo__text { font-size: 1.05rem; font-weight: 800; color: var(--text); line-height: 1.2; letter-spacing: -0.01em; }
.site-logo__text span { color: var(--teal-dark); display: block; font-weight: 400; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; }
.site-nav ul { display: flex; list-style: none; margin: 0; padding: 0; }
.site-nav li { position: relative; }
.site-nav > ul > li > a { display: block; padding: 0.6rem 0.85rem; font-size: 0.82rem; font-weight: 600; color: var(--text); text-transform: uppercase; letter-spacing: 0.07em; transition: color 0.15s; white-space: nowrap; }
.site-nav > ul > li > a:hover, .site-nav > ul > li.current-menu-item > a, .site-nav > ul > li.current-menu-parent > a { color: var(--teal-dark); }
.site-nav .sub-menu { position: absolute; top: 100%; left: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 210px; padding: 0.5rem 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all 0.2s ease; z-index: 100; }
.site-nav li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.site-nav .sub-menu a { display: block; padding: 0.5rem 1.25rem; font-size: 0.875rem; color: var(--text); font-weight: 500; transition: all 0.15s; }
.site-nav .sub-menu a:hover { background: #f0fdfb; color: var(--teal-dark); padding-left: 1.5rem; }
.header-cta { margin-left: 1rem; flex-shrink: 0; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; flex-direction: column; gap: 5px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

/* HERO */
.hero { background: url('https://lidingonaprapaterna.se/wp-content/uploads/2026/06/entre-lnab-scaled.jpeg') center/cover no-repeat; min-height: 88vh; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.hero__inner { position: relative; z-index: 1; max-width: 680px; }
.hero__tagline { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; color: rgba(255,255,255,0.75); margin-bottom: 1.25rem; }
.hero h1 { color: var(--white); font-size: clamp(2.4rem, 6vw, 3.8rem); margin-bottom: 1.25rem; line-height: 1.12; }
.hero p { color: rgba(255,255,255,0.9); font-size: 1.15rem; margin-bottom: 2.5rem; max-width: 540px; }
.hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* SERVICES GRID */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.service-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 1.75rem; transition: all 0.25s ease; text-decoration: none; display: block; }
.service-card:hover { border-color: var(--teal); box-shadow: 0 8px 32px rgba(62,207,186,0.15); transform: translateY(-2px); }
.service-card__icon { width: 46px; height: 46px; background: linear-gradient(135deg, #e0faf6, #b8f0e8); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; font-size: 1.4rem; }
.service-card h3 { color: var(--text); font-size: 1.05rem; margin-bottom: 0.4rem; }
.service-card p { color: var(--text-light); font-size: 0.875rem; margin: 0; }

/* TRUST */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-top: 3rem; }
.trust-item { text-align: center; padding: 1.5rem; }
.trust-item__num { font-size: 2.8rem; font-weight: 800; color: var(--teal-dark); line-height: 1; margin-bottom: 0.5rem; }
.trust-item h3 { font-size: 0.95rem; color: var(--text); margin-bottom: 0.4rem; }
.trust-item p { font-size: 0.85rem; color: var(--text-light); }

/* CTA BAND */
/* Blog preview */
.blog-preview { display: flex; flex-direction: column; gap: 2rem; }
.blog-preview--has-image { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.blog-preview__img-wrap { display: block; border-radius: var(--radius); overflow: hidden; }
.blog-preview__img { width: 100%; height: 320px; object-fit: cover; display: block; transition: transform 0.3s ease; }
.blog-preview__img-wrap:hover .blog-preview__img { transform: scale(1.03); }
.blog-preview__body { display: flex; flex-direction: column; align-items: flex-start; }
.blog-preview__label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 0.5rem; }
.blog-preview__date { font-size: 0.875rem; color: var(--text-light); margin-bottom: 1rem; }
.blog-preview__body h2 { margin-bottom: 0.25rem; }

.cta-band { background: linear-gradient(135deg, #4dd9c8, #1a9090); padding: 5rem 0; text-align: center; }
.cta-band h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-band p { color: rgba(255,255,255,0.9); font-size: 1.1rem; margin-bottom: 2rem; }

/* PAGE */
.page-hero { background: linear-gradient(135deg, #4dd9c8 0%, #1a9090 100%); padding: 4rem 0 3rem; }
.page-hero h1 { color: var(--white); margin: 0; }
.page-hero p { color: rgba(255,255,255,0.9); margin: 0.75rem 0 0; font-size: 1.05rem; }
.page-content { padding: 4rem 0; }
.page-content h2 { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 2px solid var(--border); }
.page-content h2:first-child { border-top: none; margin-top: 0; }
.page-content a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }
.page-layout { display: grid; grid-template-columns: 1fr 300px; gap: 4rem; align-items: start; }
.sidebar-box { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 1.75rem; position: sticky; top: 88px; }
.sidebar-box h3 { color: var(--text); font-size: 1rem; margin-bottom: 1rem; }
.sidebar-box .btn { width: 100%; text-align: center; display: block; margin-bottom: 0.75rem; }
.sidebar-box .btn:last-child { margin-bottom: 0; }
.sidebar-contact { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.sidebar-contact p { font-size: 0.85rem; margin-bottom: 0.25rem; }

/* FOOTER */
.site-footer { background: #1e2a32; color: rgba(255,255,255,0.7); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .site-logo__text { color: var(--white); }
.footer-brand .site-logo__text span { color: var(--teal); }
.footer-brand p { margin-top: 1rem; font-size: 0.875rem; color: rgba(255,255,255,0.55); }
.footer-col h4 { color: var(--white); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: rgba(255,255,255,0.55); font-size: 0.875rem; transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--teal); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: rgba(255,255,255,0.35); flex-wrap: wrap; gap: 0.5rem; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .page-layout { grid-template-columns: 1fr; }
  .sidebar-box { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  /* Header */
  .site-header__inner { gap: 0.75rem; }
  .site-logo img { height: 32px; }
  .menu-toggle { display: flex; }
  .header-cta { margin-left: auto; margin-top: 0; }
  .header-cta .btn { padding: 0.5rem 1rem; font-size: 0.8rem; }

  /* Mobile nav */
  .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 1rem 1.5rem 1.5rem; flex-direction: column; align-items: flex-start; box-shadow: var(--shadow); max-height: calc(100vh - 72px); overflow-y: auto; }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; width: 100%; }
  .site-nav > ul > li > a { padding: 0.85rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
  .site-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; border-radius: 0; padding: 0.25rem 0 0.5rem 1rem; background: transparent; min-width: auto; }
  .site-nav .sub-menu a { padding: 0.4rem 0; font-size: 0.85rem; color: var(--text-light); }

  /* Hero – använd svh för iOS Safari-kompatibilitet */
  .hero { min-height: 75svh; min-height: 75vh; padding: 3rem 0 4rem; }
  .hero h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  .hero p { font-size: 1rem; }
  .hero__ctas { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .hero__ctas .btn { width: 100%; text-align: center; }

  /* Grid */
  .services-grid { grid-template-columns: 1fr; gap: 1rem; }
      .blog-preview--has-image { grid-template-columns: 1fr; }
      .blog-preview__img { height: 220px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 3.5rem 0; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
  .container { padding: 0 1rem; }
  .hero { padding: 2.5rem 0 3.5rem; }
  .trust-grid { grid-template-columns: 1fr; }
  .service-card { padding: 1.25rem; }
}
