/*
Theme Name: Solatea
Theme URI: https://solatea.dk
Author: Teatret Solatea
Description: Et custom WordPress-tema til Teatret Solatea — amatørteater i Solrød. Mørk header med hvidt logo, ren typografi, og footer med kort og kontaktinfo. Designet til at flere personer i foreningen nemt kan opdatere indhold.
Version: 1.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: solatea
Tags: theater, custom-menu, featured-images, threaded-comments
*/

/* ==========================================================================
   Variables — juster farver her hvis du vil ændre temaets udseende
   ========================================================================== */
:root {
  --color-bg: #ffffff;
  --color-text: #2b2b2b;
  --color-muted: #6b6b6b;
  --color-header-bg: #1a1a1a;
  --color-header-text: #ffffff;
  --color-accent: #a8324a;            /* burgundy — teatralsk */
  --color-accent-hover: #862637;
  --color-footer-bg: #1a1a1a;
  --color-footer-text: #e5e5e5;
  --color-divider: #e3e3e3;
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 1100px;
}

/* ==========================================================================
   Base
   ========================================================================== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 17px;
  line-height: 1.65;
}

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

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-hover); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.6em;
  letter-spacing: 0.02em;
}

h1 { font-size: 2.6rem; text-transform: uppercase; }
h2 { font-size: 2rem; text-transform: uppercase; color: var(--color-accent); }
h3 { font-size: 1.4rem; text-transform: uppercase; color: var(--color-header-bg); }

p { margin: 0 0 1.2em; }

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

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  background: var(--color-header-bg);
  color: var(--color-header-text);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo — force size with !important so WP's inline width/height attrs
   and any caching/CDN images can't make it big again */
.site-header .site-logo,
.site-header .custom-logo-link,
.site-header .custom-logo,
.site-header .site-logo img,
.site-header img.custom-logo {
  max-height: 60px !important;
  height: 60px !important;
  width: auto !important;
  max-width: 280px !important;
  display: inline-block !important;
}

.site-header .custom-logo-link { line-height: 0 !important; }

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
}

.main-nav a {
  color: var(--color-header-text);
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.main-nav a:hover { color: var(--color-accent); text-decoration: none; }

.main-nav .current-menu-item a { color: var(--color-accent); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ==========================================================================
   Main content
   ========================================================================== */
.site-main { padding: 60px 0; }

.page-title { text-align: center; margin-bottom: 40px; }

.entry-content { max-width: 760px; margin: 0 auto; }

.entry-content img {
  margin: 24px auto;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Info boxes (spilletider / priser) */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 40px 0;
}

.info-box {
  background: #f7f4f0;
  border-left: 4px solid var(--color-accent);
  padding: 24px 28px;
}

.info-box h3 { margin-top: 0; color: var(--color-accent); }

/* Button */
.btn,
.wp-block-button__link {
  display: inline-block;
  background: var(--color-accent);
  color: white !important;
  padding: 14px 32px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  border-radius: 4px;
  transition: background 0.2s;
}

.btn:hover,
.wp-block-button__link:hover { background: var(--color-accent-hover); text-decoration: none; }

.btn-wrapper { text-align: center; margin: 40px 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 60px 0 24px;
  margin-top: 60px;
}

.site-footer h2,
.site-footer h3 { color: white; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-map iframe { width: 100%; height: 280px; border: 0; }

.footer-info p { margin-bottom: 0.6em; }

.footer-info a { color: var(--color-footer-text); }
.footer-info a:hover { color: var(--color-accent); }

.social-icons { margin-top: 16px; display: flex; gap: 14px; }
.social-icons a img { height: 32px; width: 32px; }

.footer-menu {
  border-top: 1px solid #333;
  padding-top: 24px;
  text-align: center;
}

.footer-menu ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.footer-menu a {
  color: var(--color-footer-text);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.footer-copyright {
  text-align: center;
  font-size: 0.85rem;
  color: #999;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 800px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .menu-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-header-bg);
    padding: 16px 24px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 12px; }

  .info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
