/* ==========================================================================
   AU Trade Pages - Directory Styles
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1B3A2D;
  background-color: #F5F0E8;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Manrope', 'Inter', system-ui, sans-serif;
  line-height: 1.2;
}

a {
  color: #2A5940;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

/* ---------- Containers ---------- */
.header-container,
.footer-container,
.hero-container,
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ---------- Header ---------- */
.site-header {
  background-color: #1B3A2D;
}

.header-nav {
  width: 100%;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.header-logo {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #FFFFFF;
  text-decoration: none;
}

.header-logo:hover {
  text-decoration: none;
  opacity: 0.9;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-link {
  color: #FFFFFF;
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.9;
  transition: opacity 0.15s;
}

.header-link:hover {
  opacity: 1;
  text-decoration: none;
}

.header-cta-btn {
  display: inline-block;
  background-color: #D4910A;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  transition: background-color 0.15s;
}

.header-cta-btn:hover {
  background-color: #B87A08;
  text-decoration: none;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: #1B3A2D;
  color: #FFFFFF;
  padding: 2.5rem 0;
  margin-top: 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-link-group h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #D4910A;
}

.footer-link-group ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.footer-link-group ul li a {
  color: #FFFFFF;
  font-size: 0.85rem;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.footer-link-group ul li a:hover {
  opacity: 1;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left p,
.footer-right p {
  font-size: 0.875rem;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.footer-links a {
  color: #FFFFFF;
  font-size: 0.875rem;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: none;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  padding: 1rem 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
  content: "›";
  margin-left: 0.5rem;
  margin-right: 0.25rem;
  color: #2A5940;
  opacity: 0.5;
}

.breadcrumb-list a {
  color: #2A5940;
}

.breadcrumb-list li:last-child {
  color: #1B3A2D;
  opacity: 0.7;
}

/* ---------- Hero Sections ---------- */
.blog-hero,
.hub-hero,
.location-hero {
  padding: 3.5rem 0 3rem;
}

.blog-hero {
  text-align: center;
  background: linear-gradient(135deg, #2A5940 0%, #1B3A2D 100%);
  color: #FFFFFF;
  padding: 4rem 0;
}

.blog-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.blog-hero p {
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto;
  opacity: 0.9;
}

.hub-hero {
  text-align: center;
  background: linear-gradient(135deg, #2A5940 0%, #1B3A2D 100%);
  color: #FFFFFF;
  padding: 3.5rem 0;
}

.hub-hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.hub-hero p {
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto 1rem;
  opacity: 0.9;
}

.hub-meta {
  margin-top: 1rem;
}

.meta-badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.location-hero {
  text-align: center;
  background: linear-gradient(135deg, #2A5940 0%, #1B3A2D 100%);
  color: #FFFFFF;
  padding: 3.5rem 0;
}

.location-hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ---------- Browse Sections ---------- */
.browse-section {
  padding: 3rem 0;
}

.browse-section--alt {
  background-color: #E8E3DA;
}

.browse-section h2,
.services-section h2,
.listings-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* ---------- Card Grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.hub-card {
  display: block;
  background-color: #FFFFFF;
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  color: #1B3A2D;
}

.hub-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  text-decoration: none;
}

.hub-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hub-card p {
  font-size: 0.9rem;
  opacity: 0.75;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.card-link {
  display: inline-block;
  color: #D4910A;
  font-weight: 600;
  font-size: 0.875rem;
}

/* ---------- Services Section ---------- */
.services-section {
  padding: 2.5rem 0;
  background-color: #FFFFFF;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.service-tag {
  display: inline-block;
  background-color: #E8E3DA;
  color: #1B3A2D;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ---------- Guide Article (Location Pages) ---------- */
.guide-article {
  padding: 3rem 0;
}

.article-container {
  max-width: 780px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.guide-intro-content {
  margin-bottom: 2.5rem;
}

.guide-intro-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.guide-article h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  margin-top: 0.5rem;
  color: #1B3A2D;
}

/* Cost Guide */
.cost-guide {
  margin-bottom: 3rem;
}

.cost-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.cost-card {
  background-color: #FFFFFF;
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.cost-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2A5940;
  margin-bottom: 0.5rem;
}

.cost-value {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #1B3A2D;
}

/* Tips - numbered blocks */
.guide-tips {
  margin-bottom: 3rem;
}

.tips-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tip-block {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.tip-number {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #2A5940;
  color: #FFFFFF;
  border-radius: 50%;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

.tip-block p {
  font-size: 1.05rem;
  line-height: 1.75;
  flex: 1;
}

/* Checklist */
.guide-checklist {
  margin-bottom: 3rem;
}

.checklist-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checklist-item {
  padding-left: 1.5rem;
  position: relative;
}

.checklist-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 0.5rem;
  height: 0.5rem;
  background-color: #D4910A;
  border-radius: 50%;
}

.checklist-item p {
  font-size: 1.05rem;
  line-height: 1.75;
}

/* Regulations */
.guide-regulations {
  background-color: #FFFFFF;
  border-radius: 0.75rem;
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.regulations-content p {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.regulations-content p:last-child {
  margin-bottom: 0;
}

/* Bottom Line */
.guide-bottom-line {
  background: linear-gradient(135deg, #2A5940 0%, #1B3A2D 100%);
  color: #FFFFFF;
  border-radius: 0.75rem;
  padding: 2rem;
  margin-bottom: 2rem;
}

.guide-bottom-line h2 {
  color: #D4910A;
  margin-bottom: 0.75rem;
}

.guide-bottom-line p {
  font-size: 1.1rem;
  line-height: 1.75;
  opacity: 0.95;
}

/* ---------- Author Box ---------- */
.author-box {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background-color: #FFFFFF;
  border-radius: 0.75rem;
  padding: 1.75rem;
  margin-top: 2.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #2A5940;
}

.author-avatar {
  flex-shrink: 0;
}

.author-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background-color: #2A5940;
  color: #FFFFFF;
  border-radius: 50%;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.author-info {
  flex: 1;
}

.author-byline {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #D4910A;
  margin-bottom: 0.2rem;
}

.author-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1B3A2D;
  margin-bottom: 0.15rem;
}

.author-role {
  font-size: 0.85rem;
  color: #2A5940;
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.author-bio {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #1B3A2D;
  opacity: 0.8;
}

@media (max-width: 480px) {
  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-left: none;
    border-top: 4px solid #2A5940;
  }
}

/* ---------- Listings Section ---------- */
.listings-section {
  padding: 3rem 0;
  background-color: #E8E3DA;
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

/* ---------- Listing Card ---------- */
.listing-card {
  background-color: #FFFFFF;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s;
}

.listing-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.listing-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.listing-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.listing-established {
  font-size: 0.75rem;
  font-weight: 600;
  background-color: #E8E3DA;
  color: #2A5940;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  white-space: nowrap;
}

.listing-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.listing-stars {
  color: #D4910A;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.listing-rating-value {
  font-weight: 700;
  font-size: 0.9rem;
}

.listing-review-count {
  font-size: 0.8rem;
  opacity: 0.6;
}

.listing-phone,
.listing-address {
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}

.listing-label {
  font-weight: 600;
}

.listing-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.service-badge {
  display: inline-block;
  background-color: #F5F0E8;
  color: #2A5940;
  padding: 0.2rem 0.65rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
}

/* ---------- CTA Section ---------- */
.cta-section {
  padding: 3.5rem 0;
  background-color: #D4E8DC;
}

.cta-container {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1.5rem;
}

.cta-heading {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: #1B3A2D;
}

.cta-subtext {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.cta-button {
  display: inline-block;
  background-color: #D4910A;
  color: #FFFFFF;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.85rem 2.25rem;
  border-radius: 0.75rem;
  transition: background-color 0.15s, transform 0.15s;
}

.cta-button:hover {
  background-color: #B87A08;
  transform: translateY(-1px);
  text-decoration: none;
}

/* ---------- Internal Links ---------- */
.internal-links-section {
  padding: 2.5rem 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.internal-links-group {
  margin-bottom: 2rem;
}

.internal-links-group h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #1B3A2D;
}

.internal-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.internal-links-list li a {
  display: inline-block;
  background-color: #FFFFFF;
  color: #2A5940;
  padding: 0.4rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.15s, background-color 0.15s;
}

.internal-links-list li a:hover {
  background-color: #D4E8DC;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .blog-hero h1,
  .hub-hero h1,
  .location-hero h1 {
    font-size: 1.75rem;
  }

  .blog-hero p,
  .hub-hero p {
    font-size: 1rem;
  }

  .browse-section h2,
  .services-section h2,
  .listings-section h2 {
    font-size: 1.4rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .listings-grid {
    grid-template-columns: 1fr;
  }

  .cost-grid {
    grid-template-columns: 1fr;
  }

  .tip-block {
    flex-direction: column;
    gap: 0.5rem;
  }

  .guide-article h2 {
    font-size: 1.3rem;
  }

  .footer-links-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cta-heading {
    font-size: 1.4rem;
  }

  .header-links {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .header-container {
    flex-direction: column;
    gap: 0.75rem;
  }

  .blog-hero {
    padding: 2.5rem 0;
  }

  .blog-hero h1,
  .hub-hero h1,
  .location-hero h1 {
    font-size: 1.5rem;
  }
}
