/*
Theme Name: Infotheme
Theme URI: http://perthinfo.net.au
Author: Info Team
Description: A modern, fast, and awesome city guide theme.
Version: 1.0.3
Text Domain: infotheme
*/

/* ==========================================================================
   1. CSS Variables & Reset
   ========================================================================== */
:root {
  --color-primary: #006551;
  --color-primary-hover: #007f66;
  --color-primary-light: #e6f0ee;
  --color-text-main: #232323;
  --color-text-muted: #666666;
  --color-border: #e2e8f0;
  --color-bg-light: #f8fafc;
  --color-bg-white: #ffffff;
  
  --font-heading: 'Sarabun', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --container-max-width: 1272px;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.entry-content a:hover{text-decoration:underline;}

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

/* ==========================================================================
   2. Utility Classes
   ========================================================================== */
.container {
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-md);
  padding-right: var(--spacing-md);
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.w-full { width: 100%; }
.h-full { height: 100%; }
.object-cover { object-fit: cover; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10; }

.section-padding {
  padding-top: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 500;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

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

/* ==========================================================================
   3. Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  z-index: 60;
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text-main);
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.main-navigation a {
  font-weight: 500;
  font-family: var(--font-heading);
}

.main-navigation a:hover {
  color: var(--color-primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .main-navigation {
    display: none; /* simple hide for mobile by default */
  }
  .menu-toggle {
    display: block;
  }
  .header-actions {
    display: none;
  }
}

/* ==========================================================================
   4. Footer
   ========================================================================== */
.site-footer {
  background-color: var(--color-bg-light);
  padding: var(--spacing-xl) 0 2rem;
  border-top: 1px solid var(--color-border);
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.widget-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.widget ul {
  list-style: none;
}

.widget ul li {
  margin-bottom: 0.5rem;
}

.widget ul li a:hover {
  color: var(--color-primary);
}

/* ==========================================================================
   5. WordPress Core Classes
   ========================================================================== */
.alignnone { margin: 5px 20px 20px 0; }
.aligncenter, div.aligncenter { display: block; margin: 5px auto 5px auto; }
.alignright { float: right; margin: 5px 0 20px 20px; }
.alignleft { float: left; margin: 5px 20px 20px 0; }
a img.alignright { float: right; margin: 5px 0 20px 20px; }
a img.alignnone { margin: 5px 20px 20px 0; }
a img.alignleft { float: left; margin: 5px 20px 20px 0; }
a img.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { background: #fff; border: 1px solid #f0f0f0; max-width: 96%; padding: 5px 3px 10px; text-align: center; }
.wp-caption.alignnone { margin: 5px 20px 20px 0; }
.wp-caption.alignleft { margin: 5px 20px 20px 0; }
.wp-caption.alignright { margin: 5px 0 20px 20px; }
.wp-caption img { border: 0 none; height: auto; margin: 0; max-width: 98.5%; padding: 0; width: auto; }
.wp-caption p.wp-caption-text { font-size: 11px; line-height: 17px; margin: 0; padding: 0 4px 5px; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.wp-block-list { margin-left:25px;}


/* ==========================================================================
   6. Amendments
   ========================================================================== */
.entry-content h2 {
  margin-top: var(--spacing-lg);
  font-size: 1.9rem;  
}
.entry-content p {
    margin-top: var(--spacing-md);  
}
.entry-content h3 {
  margin-top: var(--spacing-md);
  }

/* ==========================================================================
   7. Archive Pages
   ========================================================================== */
.archive-header {
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--color-border);
}

.archive-title {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
}

.archive-description {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.archive-description p {
  margin-bottom: var(--spacing-md);
}

.archive-post-card {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
  border-bottom: 1px solid var(--color-border);
}

.archive-post-card:last-child {
  border-bottom: none;
}

@media (min-width: 992px) {
  .archive-post-card {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--spacing-xl);
  }
  
  .archive-post-card .post-thumbnail {
    flex: 0 0 400px;
  }
  
  .archive-post-card .post-content {
    flex: 1;
  }
}

.archive-post-card .post-thumbnail img {
  border-radius: var(--radius-md);
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.archive-post-card .post-thumbnail a:hover img {
  transform: scale(1.02);
}

.archive-post-card .entry-title {
  font-size: 1.75rem;
  margin-top: 0;
  margin-bottom: var(--spacing-sm);
}

.archive-post-card .entry-title a:hover {
  color: var(--color-primary);
}

.archive-post-card .entry-summary {
  color: var(--color-text-muted);
}

.archive-post-card .read-more {
  display: inline-flex;
  align-items: center;
  color: var(--color-primary);
  font-weight: 600;
  margin-top: var(--spacing-md);
}

.archive-post-card .read-more:hover {
  text-decoration: underline;
}
/* ==========================================================================
   8. Suburbs Page
   ========================================================================== */
h3:has(+ .lga-meta) {
    margin:40px 0 0 0;
     border-bottom:1px solid #ccc;
    padding-bottom:8px;
}