/*
Theme Name: KOROW
Theme URI: https://korow.be
Author: KOROW
Author URI: https://korow.be
Description: Art-center for cultural decontamination, social diagnostic & social correction
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: korow
*/

/* ===========================
   CSS VARIABLES
=========================== */
@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');
:root {
  --bg: #c8bfb0;
  --text: #1a1a1a;
  --nav-bg: #d9d2c5;
  --nav-active: #2a2a2a;
  --nav-active-text: #fff;
  --white: #f5f2ed;
  --font-display: 'Anton', 'Impact', sans-serif;
  --font-body: 'Courier New', 'Courier', monospace;
  --letter-spacing: 0.18em;
}

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

html {
  width: 100%;
  min-height: 100vh;
}

body {
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  /* background set by WordPress custom-background feature */
  background-attachment: fixed !important;
  background-repeat: repeat !important;
}

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

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

/* ===========================
   COBBLESTONE BACKGROUND
   Photo set via Appearance > Customize > Background Image
   Falls back to CSS pattern when no photo is uploaded
=========================== */
.korow-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--bg);
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 58px,
      rgba(0,0,0,0.07) 58px,
      rgba(0,0,0,0.07) 60px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 58px,
      rgba(0,0,0,0.07) 58px,
      rgba(0,0,0,0.07) 60px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 28px,
      rgba(0,0,0,0.04) 28px,
      rgba(0,0,0,0.04) 30px
    );
  background-size: 120px 120px, 120px 120px, 60px 60px;
}

/* SVG cobblestone overlay */
.korow-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Crect x='2' y='2' width='54' height='54' rx='3' fill='none' stroke='rgba(0,0,0,0.06)' stroke-width='1.5'/%3E%3Crect x='64' y='2' width='54' height='54' rx='3' fill='none' stroke='rgba(0,0,0,0.06)' stroke-width='1.5'/%3E%3Crect x='2' y='64' width='54' height='54' rx='3' fill='none' stroke='rgba(0,0,0,0.06)' stroke-width='1.5'/%3E%3Crect x='64' y='64' width='54' height='54' rx='3' fill='none' stroke='rgba(0,0,0,0.06)' stroke-width='1.5'/%3E%3Cline x1='20' y1='2' x2='24' y2='56' stroke='rgba(80,120,60,0.10)' stroke-width='1'/%3E%3Ccircle cx='35' cy='30' r='4' fill='rgba(80,120,60,0.09)'/%3E%3Ccircle cx='90' cy='85' r='5' fill='rgba(80,120,60,0.08)'/%3E%3Ccircle cx='15' cy='90' r='3' fill='rgba(80,120,60,0.09)'/%3E%3Ccircle cx='100' cy='20' r='4' fill='rgba(80,120,60,0.08)'/%3E%3C/svg%3E");
  background-size: 120px 120px;
  opacity: 0.9;
}

/* When no photo uploaded — add no-photo class keeps CSS pattern working */
.korow-bg.no-photo {
  background-image:
    repeating-linear-gradient(0deg,transparent,transparent 58px,rgba(0,0,0,0.07) 58px,rgba(0,0,0,0.07) 60px),
    repeating-linear-gradient(90deg,transparent,transparent 58px,rgba(0,0,0,0.07) 58px,rgba(0,0,0,0.07) 60px),
    repeating-linear-gradient(0deg,transparent,transparent 28px,rgba(0,0,0,0.04) 28px,rgba(0,0,0,0.04) 30px);
  background-size: 120px 120px, 120px 120px, 60px 60px;
  background-attachment: scroll;
}

/* Per-page: disable the background photo */
.korow-no-photo-page .korow-bg {
  background-image: none !important;
  background-color: var(--bg);
}

/* ===========================
   FOOTER INNER LAYOUT
=========================== */
#colophon {
  background: rgba(200, 191, 176, 0.55);
  border-top: 1px solid rgba(0,0,0,0.08);
}
.footer-inner {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 12px 30px;
  width: 100%;
  gap: 12px;
}
.footer-inner .site-info {
  flex: 1 1 auto;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.78rem;
  opacity: 0.75;
}
.footer-social {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 14px;
  align-items: center;
  flex: 0 0 auto;
}
.footer-social a {
  display: flex;
  align-items: center;
  color: var(--text);
  opacity: 0.7;
  transition: opacity 0.2s;
}
.footer-social a:hover { opacity: 1; }










/* ===========================
   TRANSPARENCY — ensure photo shows through all containers
=========================== */
#page,
#content,
#primary,
.page-home,
.entry-content,
.korow-intro,
article {
  background: transparent !important;
}

/* ===========================
   SITE WRAPPER
=========================== */
#page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ===========================
   HEADER
=========================== */
#masthead {
  padding: 0;
  background: transparent;
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
  margin-bottom: 0;
  overflow: hidden;
  background: rgba(232, 226, 216, 0.88);
  width: 100%;
  min-height: 80px;
}

.site-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--text);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  background: transparent;
  padding: 0 20px;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-description {
  font-family: var(--font-body);
  font-size: clamp(0.55rem, 1vw, 0.78rem);
  font-weight: normal;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--text);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  background: transparent;
  padding: 0 20px 0 0;
}

/* ===========================
   NAVIGATION
=========================== */
#site-navigation {
  background: rgba(210, 200, 185, 0.88);
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  margin-top: 8px;
}

#site-navigation ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

#site-navigation ul li a {
  display: block;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  transition: background 0.15s, color 0.15s;
}

#site-navigation ul li a:hover,
#site-navigation ul li.current-menu-item > a,
#site-navigation ul li.current_page_item > a {
  background: var(--nav-active);
  color: var(--nav-active-text);
}

/* Mobile hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--text);
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  cursor: pointer;
  text-transform: uppercase;
  margin: 8px 20px;
}

/* ===========================
   MAIN CONTENT
=========================== */
#primary {
  flex: 1;
  padding: 30px 30px 40px;
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
  background: transparent !important;
}

/* ===========================
   PAGE CONTENT
=========================== */
.entry-content {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}

.entry-content p {
  margin-bottom: 1.2em;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6em;
}

/* ===========================
   HOME PAGE KOROW INTRO
=========================== */
.korow-intro {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  line-height: 1.8;
  color: var(--text);
  max-width: 680px;
  margin: 0 auto;
}

.korow-intro p {
  margin-bottom: 0;
}

/* ===========================
   COMING SOON / MORE SOON
=========================== */
.more-soon {
  display: inline-block;
  background: rgba(240, 235, 225, 0.82);
  padding: 16px 36px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  margin: 60px 0 40px;
}

.page-subtitle {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
}

/* ===========================
   CONTACT PAGE
=========================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  margin-top: 20px;
}

.contact-info h3,
.contact-form-section h3 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: var(--text);
}

.contact-info address {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 2.2;
  color: var(--text);
}

.contact-info a {
  border-bottom: 1px solid currentColor;
}

/* Contact form */
.korow-form .form-row {
  margin-bottom: 10px;
}

.korow-form input[type="text"],
.korow-form input[type="email"],
.korow-form textarea {
  width: 100%;
  padding: 10px 14px;
  background: rgba(240, 235, 225, 0.75);
  border: 1px solid rgba(0,0,0,0.2);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.korow-form input::placeholder,
.korow-form textarea::placeholder {
  color: rgba(0,0,0,0.4);
  font-size: 0.85rem;
  font-style: italic;
}

.korow-form input:focus,
.korow-form textarea:focus {
  background: rgba(240, 235, 225, 0.95);
  border-color: var(--text);
}

.korow-form textarea {
  height: 120px;
  resize: vertical;
}

.korow-form .submit-row {
  margin-top: 12px;
  text-align: right;
}

.korow-form button[type="submit"] {
  background: rgba(160,152,140,0.85);
  color: var(--text);
  border: none;
  padding: 10px 28px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.korow-form button[type="submit"]:hover {
  background: var(--nav-active);
  color: #fff;
}

/* ===========================
   FOOTER
=========================== */

.site-info {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text);
  opacity: 0.75;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {
  .site-header-inner {
    flex-direction: column;
    flex-wrap: wrap;
    gap: 6px;
  }
  .site-description {
    white-space: normal;
    font-size: 0.72rem;
  }

  .menu-toggle {
    display: block;
  }

  #site-navigation .nav-menu {
    display: none;
    flex-direction: column;
  }

  #site-navigation .nav-menu.toggled {
    display: flex;
  }

  #site-navigation ul li a {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  #primary {
    padding: 40px 20px 60px;
  }
}
