/* ============================================================
   BASE.CSS — Golfakademi
   Reset, CSS-variabler, typografi
   Mobile first
   ============================================================ */

/* --- Google Fonts --- */
/* --- Typsnitt --- */
:root {
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
}

/* --- CSS-variabler --- */
:root {
  /* Färger */
  --color-dark:        #1e1a14;
  --color-dark-mid:    #2a2118;
  --color-dark-light:  #3d3020;
  --color-gold:        #c8a96e;
  --color-gold-light:  #dfc28e;
  --color-white:       #ffffff;
  --color-off-white:   #f5f2ed;
  --color-gray:        #6b6560;
  --color-gray-light:  #b0aba5;
  --color-green:       #3a5c2e;
  --color-green-light: #4e7a3e;

  /* Bakgrund & yta */
  --bg-page:           var(--color-off-white);
  --bg-header:         var(--color-white);
  --bg-footer:         var(--color-dark);
  --bg-card:           var(--color-white);
  --bg-overlay:        rgba(30, 26, 20, 0.72);

  /* Text */
  --text-primary:      var(--color-dark);
  --text-secondary:    var(--color-gray);
  --text-inverted:     var(--color-white);
  --text-gold:         var(--color-gold);

  /* Typsnitt */
  --font-display:      'Cormorant Garamond', Georgia, serif;
  --font-body:         'DM Sans', sans-serif;

  /* Storlekar */
  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-md:    1.125rem;
  --text-lg:    1.375rem;
  --text-xl:    1.75rem;
  --text-2xl:   2.25rem;
  --text-3xl:   3rem;
  --text-4xl:   4rem;

  /* Spacing */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;

  /* Radier */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-pill: 999px;

  /* Skuggor */
  --shadow-sm:  0 1px 3px rgba(30,26,20,0.10);
  --shadow-md:  0 4px 16px rgba(30,26,20,0.14);
  --shadow-lg:  0 8px 32px rgba(30,26,20,0.18);
  --shadow-xl:  0 16px 48px rgba(30,26,20,0.22);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Header & bottom nav */
  --header-height:     64px;
  --bottom-nav-height: 64px;

  /* Layout */
  --max-width:         1280px;
  --content-padding:   var(--space-4);
}

/* Större skärmar */
@media (min-width: 600px) {
  :root {
    --content-padding: var(--space-6);
  }
}

@media (min-width: 1024px) {
  :root {
    --content-padding: var(--space-8);
    --header-height:   72px;
  }
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Plats för bottom nav på mobil */
  padding-bottom: var(--bottom-nav-height);
}

@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }
}

/* App-känsla – ta bort tap highlight */
* {
  -webkit-tap-highlight-color: transparent;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--color-gold);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* --- Typografi --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-md); }
h5 { font-size: var(--text-base); }
h6 { font-size: var(--text-sm); }

@media (min-width: 600px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }
}

@media (min-width: 1024px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-2xl); }
}

p {
  margin-bottom: var(--space-4);
  max-width: 68ch;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
}

/* --- Knappar --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-dark);
  color: var(--color-white);
  border: 2px solid var(--color-dark);
}

.btn-primary:hover {
  background: var(--color-dark-light);
  color: var(--color-white);
  border-color: var(--color-dark-light);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-dark);
}

.btn-gold {
  background: var(--color-gold);
  color: var(--color-dark);
  border: 2px solid var(--color-gold);
}

.btn-gold:hover {
  background: var(--color-gold-light);
  border-color: var(--color-gold-light);
  color: var(--color-dark);
}

/* --- Drupal-specifikt reset --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.block {
  margin: 0;
}