/*
Theme Name: Gothia Golfresor
Theme URI: https://www.gothiasportstravel.se
Author: Gothia Sportstravel
Author URI: https://www.gothiasportstravel.se
Description: Skräddarsytt tema för Gothia Golfresor – golfresor till Spanien, Portugal, Italien och Cypern. Byggt för landningssidan Golfresor, destinationssidorna och golfbloggen.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.9
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: gothia-golfresor
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root{
  --fairway:      #1E3B2B; /* deep green - headers, footer, primary buttons */
  --fairway-mid:  #3B6E52; /* mid green - links, hovers, secondary accents */
  --fairway-pale: #E7EEE7; /* pale green - card backgrounds, hairlines */
  --sand:         #F4EEDD; /* warm sand background */
  --sand-deep:    #E9DFC4; /* deeper sand for cards / stripes */
  --ink:          #1B1B16; /* body text */
  --ink-soft:     #55564C; /* secondary text */
  --gold:         #C79A3E; /* sun / flag accent */
  --coastal:      #2E5266; /* secondary accent, used sparingly */
  --paper:        #FBF9F2; /* near-white surface */

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body:    "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  --radius: 3px;
  --container: 1120px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body{
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; height: auto; display: block; }
a{ color: var(--fairway-mid); text-decoration: underline; text-decoration-color: rgba(59,110,82,0.35); text-underline-offset: 3px; }
a:hover{ text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible, input:focus-visible{ outline: 3px solid var(--gold); outline-offset: 2px; }

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--fairway);
  margin: 0 0 0.5em;
}
h1{ font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 500; }
h2{ font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 2.2em; }
h3{ font-size: 1.2rem; }

p{ margin: 0 0 1.2em; }
ul{ padding-left: 1.2em; }
li{ margin-bottom: 0.4em; }

.container{ max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 0.9em;
}

.btn{
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-primary{ background: var(--gold); color: var(--fairway); }
.btn-primary:hover{ background: #d9ac4c; text-decoration: none; transform: translateY(-1px); }
.btn-outline{ border-color: rgba(251,249,242,0.55); color: var(--paper); }
.btn-outline:hover{ background: rgba(251,249,242,0.12); text-decoration: none; }

/* ==========================================================================
   Site header
   ========================================================================== */
.site-header{
  background: var(--fairway);
  color: var(--paper);
  padding: 18px 0;
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-branding a{
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.site-branding .tagline{
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}

.primary-nav ul{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.primary-nav a{
  display: inline-block;
  color: var(--paper);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: background 0.15s ease;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a{
  background: rgba(251,249,242,0.14);
}
.nav-toggle{ display: none; }

@media (max-width: 780px){
  .site-header .container{ flex-wrap: wrap; }
  .nav-toggle{
    display: inline-block;
    margin-left: auto;
    background: transparent;
    border: 1px solid rgba(251,249,242,0.4);
    color: var(--paper);
    border-radius: var(--radius);
    padding: 8px 12px;
    font-family: var(--font-body);
    font-size: 0.85rem;
  }
  .primary-nav{ flex-basis: 100%; display: none; margin-top: 14px; }
  .primary-nav.is-open{ display: block; }
  .primary-nav ul{ flex-direction: column; }
}

/* ==========================================================================
   Page hero (generic)
   ========================================================================== */
.page-hero{
  background: var(--fairway);
  color: var(--paper);
  padding: 64px 0 56px;
}
.page-hero h1{ color: var(--paper); }
.page-hero .lede{ max-width: 640px; color: rgba(251,249,242,0.85); font-size: 1.08rem; }
.breadcrumbs{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(251,249,242,0.6);
  margin-bottom: 1.4em;
}
.breadcrumbs a{ color: rgba(251,249,242,0.75); text-decoration: none; }
.breadcrumbs a:hover{ text-decoration: underline; }

/* ==========================================================================
   Golfresor landing: routing strip (signature element)
   ========================================================================== */
.routing{
  background: var(--paper);
  padding: 8px 0 64px;
  margin-top: -1px;
}
.routing-intro{ max-width: 640px; margin: 0 auto 32px; text-align: center; }
.routing-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius);
  overflow: hidden;
}
.routing-hole{
  padding: 28px 20px;
  border-right: 1px solid var(--sand-deep);
  background: var(--sand);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s ease;
}
.routing-hole:last-child{ border-right: none; }
.routing-hole:hover{ background: var(--fairway-pale); text-decoration: none; }
.routing-hole .hole-no{
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}
.routing-hole h3{ color: var(--fairway); margin-bottom: 14px; }
.routing-stat{
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-soft);
  border-top: 1px dashed var(--sand-deep);
  padding-top: 8px;
  margin-top: 8px;
}
.routing-stat strong{ color: var(--fairway-mid); }

@media (max-width: 900px){
  .routing-grid{ grid-template-columns: 1fr 1fr; }
  .routing-hole{ border-bottom: 1px solid var(--sand-deep); }
}
@media (max-width: 560px){
  .routing-grid{ grid-template-columns: 1fr; }
}

/* ==========================================================================
   Content area
   ========================================================================== */
.content-area{
  background: var(--paper);
  padding: 56px 0 72px;
}
.content-area .container{ max-width: 760px; }
.content-area .wp-block-list{ background: var(--sand); border-radius: var(--radius); padding: 20px 20px 20px 40px; }
.content-area strong{ color: var(--fairway); }

.page-links-out{
  margin-top: 3em;
  padding: 24px;
  background: var(--fairway-pale);
  border-left: 3px solid var(--fairway-mid);
  border-radius: var(--radius);
}

/* ==========================================================================
   Blog / archive
   ========================================================================== */
.blog-hero{ background: var(--coastal); color: var(--paper); padding: 56px 0 48px; }
.blog-hero h1{ color: var(--paper); }

.post-list{
  padding: 48px 0 72px;
}
.post-card{
  border-top: 1px solid var(--sand-deep);
  padding: 28px 0;
}
.post-card:first-child{ border-top: none; }
.post-card .eyebrow{ margin-bottom: 0.4em; }
.post-card h2{ margin-top: 0; font-size: 1.4rem; }
.post-card h2 a{ color: var(--fairway); text-decoration: none; }
.post-card h2 a:hover{ text-decoration: underline; }
.post-card .excerpt{ color: var(--ink-soft); }
.post-card .read-more{ font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }

.single-post-header{ background: var(--fairway); color: var(--paper); padding: 56px 0 44px; }
.single-post-header h1{ color: var(--paper); max-width: 760px; margin-left: auto; margin-right: auto; }
.single-post-header .container{ max-width: 760px; }
.post-meta{
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.pagination{
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.pagination a, .pagination span{
  padding: 8px 14px;
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--fairway);
}
.pagination .current{ background: var(--fairway); color: var(--paper); }

/* ==========================================================================
   Front page: hero
   ========================================================================== */
.hero{
  background: var(--fairway);
  color: var(--paper);
  padding: 88px 0 76px;
  background-image:
    radial-gradient(circle at 82% 18%, rgba(199,154,62,0.18), transparent 55%),
    radial-gradient(circle at 6% 92%, rgba(46,82,102,0.28), transparent 45%);
}
.hero h1{ color: var(--paper); max-width: 15ch; }
.hero .lede{ max-width: 640px; font-size: 1.1rem; color: rgba(251,249,242,0.86); }
.hero-cta{ display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.6em; }

.section-lede{ color: var(--ink-soft); max-width: 620px; margin-top: -0.6em; }

/* ==========================================================================
   Front page: why + quickfacts
   ========================================================================== */
.why{ background: var(--paper); padding: 64px 0; }
.why .container{ max-width: 780px; }

.quickfacts{
  margin-top: 2.4em;
  background: var(--sand);
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.quickfacts-title{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fairway-mid);
  margin-bottom: 0.9em;
}
.quickfacts ul{ margin: 0; padding-left: 1.1em; }
.quickfacts li{ margin-bottom: 0.5em; }

/* ==========================================================================
   Front page: destination grid
   ========================================================================== */
.destinations{ background: var(--sand); padding: 64px 0; }
.destination-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 2em;
}
.destination-card{
  background: var(--paper);
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius);
  padding: 24px 22px;
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.destination-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(30,59,43,0.12);
  text-decoration: none;
}
.destination-card h3{ margin-bottom: 6px; }
.destination-season{
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--coastal);
  margin-bottom: 14px;
}

@media (max-width: 900px){ .destination-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .destination-grid{ grid-template-columns: 1fr; } }

/* ==========================================================================
   Front page: destination guides
   ========================================================================== */
.guides{ background: var(--paper); padding: 64px 0; }
.guides .container{ max-width: 780px; }
.guide-block{
  padding: 22px 0;
  border-top: 1px solid var(--sand-deep);
  scroll-margin-top: 90px;
}
.guide-block:first-of-type{ border-top: none; }
.guide-block h3{ margin-bottom: 0.5em; }

/* ==========================================================================
   Front page: travel tips
   ========================================================================== */
.tips{ background: var(--sand); padding: 64px 0; }
.tips .container{ max-width: 780px; }

.recommendation{
  margin-top: 1.6em;
  background: var(--fairway);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.recommendation-title{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7em;
}
.recommendation p:last-child{ margin: 0; color: rgba(251,249,242,0.9); }

/* ==========================================================================
   Front page: blog feed
   ========================================================================== */
.blog-feed{ background: var(--paper); padding: 64px 0; }
.blog-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 2em;
}
.blog-grid-card img{ border-radius: var(--radius); margin-bottom: 14px; aspect-ratio: 16/9; object-fit: cover; }
.blog-grid-card h3{ font-size: 1.1rem; margin-bottom: 6px; }
.blog-grid-card h3 a{ color: var(--fairway); text-decoration: none; }
.blog-grid-card h3 a:hover{ text-decoration: underline; }
.blog-grid-card .excerpt{ color: var(--ink-soft); font-size: 0.95rem; }
.blog-feed-more{ margin-top: 2em; }
.blog-feed-more a{ font-family: var(--font-mono); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.blog-feed-empty{ color: var(--ink-soft); font-style: italic; }

@media (max-width: 900px){ .blog-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px){ .blog-grid{ grid-template-columns: 1fr; } }

/* ==========================================================================
   Front page: final CTA
   ========================================================================== */
.final-cta{
  background: var(--coastal);
  color: var(--paper);
  padding: 64px 0;
  text-align: center;
}
.final-cta h2{ color: var(--paper); }
.final-cta p{ max-width: 520px; margin: 0 auto 1.4em; color: rgba(251,249,242,0.85); }
.final-cta .hero-cta{ justify-content: center; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{
  background: var(--fairway);
  color: rgba(251,249,242,0.82);
  padding: 56px 0 28px;
  font-size: 0.92rem;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(251,249,242,0.15);
}
.footer-grid h4{
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1em;
}
.footer-grid p{ color: rgba(251,249,242,0.7); max-width: 32em; }
.footer-grid ul{ list-style: none; padding: 0; margin: 0; }
.footer-grid li{ margin-bottom: 0.6em; }
.footer-grid a{ color: rgba(251,249,242,0.82); text-decoration: none; }
.footer-grid a:hover{ text-decoration: underline; }
.footer-bottom{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  font-size: 0.8rem;
  color: rgba(251,249,242,0.55);
}

@media (max-width: 760px){
  .footer-grid{ grid-template-columns: 1fr; }
}
