/* WildSmiths - Custom Theme CSS */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;600&family=Open+Sans:ital,wght@0,400;0,600;1,400&display=swap');

/* ========================
   CUSTOM PROPERTIES
   ======================== */
:root {
  --accent: #BC926B;
  --accent-dark: #9a7050;
  --dark: #0F0F0F;
  --nav-bg: #2d2d2d;
  --bg: #FBFBFB;
  --text: #333;
  --text-muted: #777;
  --border: #e0d8d0;
  --max-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', 'Droid Sans', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  padding: 0;
}

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

/* ========================
   HEADER
   ======================== */
.site-header {
  background: white;
  border-bottom: 3px solid var(--accent);
  padding: 14px 0;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-title-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.site-logo {
  max-height: 72px;
  width: auto;
}

.site-name-block {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--dark);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0;
}

.site-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin: 0;
}

/* ========================
   NAVIGATION
   ======================== */
.main-nav {
  background: var(--nav-bg);
  position: relative;
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
}

/* Hidden checkbox hack for mobile */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  color: #ccc;
  padding: 14px 0;
  font-size: 1.3rem;
  user-select: none;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  display: block;
  color: #ccc;
  text-decoration: none;
  padding: 14px 16px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.nav-item > a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.07);
}

/* Dropdown arrow indicator */
.nav-item.has-children > a::after {
  content: ' ▾';
  font-size: 0.7em;
  opacity: 0.7;
}

/* Dropdown submenu */
.nav-sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #3c3c3c;
  min-width: 210px;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.nav-item.has-children:hover .nav-sub {
  display: block;
}

.nav-sub li a {
  display: block;
  color: #bbb;
  text-decoration: none;
  padding: 9px 18px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}

.nav-sub li a:hover {
  color: var(--accent);
}

/* ========================
   HERO BANNER
   ======================== */
.hero-banner {
  width: 100%;
  overflow: hidden;
  max-height: 300px;
  position: relative;
}

.hero-banner img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

/* ========================
   SITE CONTENT WRAPPER
   ======================== */
.site-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 36px 24px 60px;
}

/* ========================
   TYPOGRAPHY
   ======================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.3;
  margin-top: 1.6em;
  margin-bottom: 0.4em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; color: #444; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

.page-title {
  font-size: 2rem;
  color: var(--dark);
  margin-top: 0;
  margin-bottom: 4px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}

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

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

p {
  margin: 0 0 1.1em;
}

ul, ol {
  padding-left: 1.5em;
  margin: 0 0 1.1em;
}

li {
  margin-bottom: 0.3em;
}

/* ========================
   BLOCKQUOTES
   ======================== */
blockquote {
  margin: 2em 0;
  padding: 1.4em 2em 1.4em 1.8em;
  border-left: 4px solid var(--accent);
  background: rgba(188, 146, 107, 0.07);
  font-style: italic;
  color: #555;
  border-radius: 0 4px 4px 0;
}

blockquote p {
  margin: 0;
  font-size: 1.05rem;
}

blockquote cite {
  display: block;
  margin-top: 0.7em;
  font-size: 0.82rem;
  color: #999;
  font-style: normal;
  letter-spacing: 0.03em;
}

/* ========================
   FIGURES & IMAGES
   ======================== */
figure {
  margin: 1.5em 0;
}

figure img {
  border-radius: 2px;
}

figcaption,
.wp-element-caption {
  font-size: 0.78rem;
  color: #999;
  margin-top: 6px;
  font-style: italic;
  line-height: 1.4;
}

/* WordPress alignment classes */
.alignright {
  float: right;
  margin: 0.2em 0 1.2em 2em;
  max-width: 45%;
}

.alignleft {
  float: left;
  margin: 0.2em 2em 1.2em 0;
  max-width: 45%;
}

.aligncenter {
  display: block;
  margin: 1em auto;
  text-align: center;
}

.wp-block-image {
  margin: 1.5em 0;
}

.wp-block-image.is-style-default figure {
  margin: 0;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* ========================
   HORIZONTAL RULES
   ======================== */
hr,
.wp-block-separator {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2em 0;
}

/* ========================
   TABLES
   ======================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.9rem;
}

th {
  background: var(--nav-bg);
  color: white;
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  padding: 10px 14px;
  text-align: left;
}

td {
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
}

tr:nth-child(even) td {
  background: rgba(188, 146, 107, 0.06);
}

/* ========================
   POST / PAGE CONTENT
   ======================== */
.post-header {
  margin-bottom: 28px;
}

.post-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.03em;
}

.post-body,
.page-body {
  /* clearfix for floated images */
}

.post-body::after,
.page-body::after {
  content: "";
  display: table;
  clear: both;
}

/* ========================
   POST LIST
   ======================== */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-list-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}

.post-list-item:first-child {
  padding-top: 0;
}

.post-list-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0 0 4px;
}

.post-list-title a {
  color: var(--dark);
  text-decoration: none;
}

.post-list-title a:hover {
  color: var(--accent);
}

.post-list-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.post-list-summary {
  font-size: 0.93rem;
  color: #555;
  margin: 0;
  line-height: 1.7;
}

/* Section header for list pages */
.list-header {
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--accent);
}

/* ========================
   HOME PAGE
   ======================== */
.home-content {
  max-width: 800px;
}

/* WordPress text alignment classes */
.has-text-align-left { text-align: left; }
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }

/* WP large font paragraph */
p.has-large-font-size {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  color: #444;
}

/* ========================
   FOOTER
   ======================== */
.site-footer {
  background: var(--nav-bg);
  color: #aaa;
  margin-top: 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-social a {
  color: #bbb;
  text-decoration: none;
  margin-right: 18px;
  font-size: 0.88rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.footer-copy {
  font-size: 0.82rem;
  color: #888;
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 800px) {
  .site-title {
    font-size: 1.5rem;
  }

  .site-tagline {
    display: none;
  }

  .nav-toggle-label {
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .nav-toggle:checked ~ .nav-list {
    display: flex;
  }

  .nav-item > a {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-item.has-children > a::after {
    content: '';
  }

  .nav-sub {
    position: static;
    display: none;
    background: #444;
    box-shadow: none;
  }

  .nav-sub li a {
    padding-left: 32px;
  }

  .nav-item.has-children:hover .nav-sub {
    display: block;
  }

  .alignright,
  .alignleft {
    float: none;
    display: block;
    margin: 1em 0;
    max-width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-social a:last-child {
    margin-right: 0;
  }

  .hero-banner img {
    height: 180px;
  }

  .hero-banner {
    max-height: 180px;
  }
}
