/*
Theme Name:   GlacierLite Child
Theme URI:    https://glacierlite.co.nz
Description:  GlacierLite child theme for Astra
Author:       GlacierLite
Author URI:   https://glacierlite.co.nz
Template:     astra
Version:      1.2.3
Text Domain:  glacierlite-child
*/

/* Brand colour variables */
:root {
  --gl-navy:       #1e3a5f;
  --gl-blue:       #2e86ab;
  --gl-blue-light: #e8f4f8;
  --gl-surface:    #f8f9fa;
}

/* Prose styles for blog posts */
.gl-prose {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  color: #374151;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
}

.gl-prose h1 { font-size: 2.25rem; font-weight: 700; color: var(--gl-navy); margin-bottom: 1rem; }
.gl-prose h2 { font-size: 1.5rem; font-weight: 700; color: var(--gl-navy); margin-top: 2rem; margin-bottom: 0.75rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--gl-blue-light); }
.gl-prose h3 { font-size: 1.25rem; font-weight: 600; color: var(--gl-navy); margin-top: 1.5rem; margin-bottom: 0.5rem; }
.gl-prose p  { margin-bottom: 1.25rem; }
.gl-prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.gl-prose ul li { margin-bottom: 0.4rem; }
.gl-prose ul li::marker { color: var(--gl-blue); }
.gl-prose ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.gl-prose a { color: var(--gl-blue); }
.gl-prose a:hover { color: var(--gl-navy); }

/* Blog single post */
.gl-post-meta { font-size: 0.85rem; color: #9ca3af; margin-bottom: 0.5rem; }
.gl-post-thumb { width: 100%; border-radius: 12px; margin-bottom: 2rem; max-height: 480px; object-fit: cover; }
.gl-post-nav { display: flex; justify-content: space-between; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #e5e7eb; font-size: 0.9rem; }
.gl-post-nav a { color: var(--gl-blue); text-decoration: none; }
.gl-post-nav a:hover { color: var(--gl-navy); }

/* Blog archive */
.gl-blog { max-width: 960px; margin: 0 auto; padding: 3rem 1.5rem; }
.gl-blog-header { margin-bottom: 2.5rem; }
.gl-blog-title { font-size: 2rem; font-weight: 700; color: var(--gl-navy); }
.gl-blog-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 640px) { .gl-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gl-blog-grid { grid-template-columns: repeat(3, 1fr); } }
.gl-card { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; transition: box-shadow 0.2s; }
.gl-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.gl-card-img-wrap { display: block; aspect-ratio: 16/9; overflow: hidden; }
.gl-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gl-card:hover .gl-card-img { transform: scale(1.05); }
.gl-card-body { padding: 1.25rem; }
.gl-card-title { font-size: 1.1rem; font-weight: 700; color: var(--gl-navy); margin: 0.25rem 0 0.75rem; }
.gl-card-title a { text-decoration: none; color: inherit; }
.gl-card-title a:hover { color: var(--gl-blue); }
.gl-card-excerpt { font-size: 0.875rem; color: #6b7280; line-height: 1.6; margin-bottom: 1rem; }
.gl-card-link { font-size: 0.875rem; font-weight: 600; color: var(--gl-blue); text-decoration: none; }
.gl-card-link:hover { color: var(--gl-navy); }
.gl-pagination { margin-top: 3rem; text-align: center; }
.gl-pagination .page-numbers { display: inline-block; padding: 0.5rem 0.875rem; margin: 0 0.2rem; border: 1px solid #e5e7eb; border-radius: 6px; color: var(--gl-navy); text-decoration: none; font-size: 0.9rem; }
.gl-pagination .page-numbers.current { background: var(--gl-navy); color: #fff; border-color: var(--gl-navy); }
.gl-pagination .page-numbers:hover:not(.current) { background: var(--gl-blue-light); }
.gl-prose table { width: 100%; border-collapse: collapse; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.08); margin-bottom: 2rem; }
.gl-prose table thead tr { background-color: var(--gl-navy); color: #fff; }
.gl-prose table th, .gl-prose table td { padding: 12px 20px; text-align: left; font-size: 0.9rem; border: 1px solid #e5e7eb; }
.gl-prose table tbody tr:nth-child(even) { background-color: var(--gl-surface); }

/* Hide site name text in header when logo is present */
.site-header .ast-site-title-wrap { display: none !important; }

/* Header "Get a Free Quote" CTA button */
.gl-cta-item a.gl-header-cta {
  display: inline-block;
  padding: 8px 20px;
  border: 2px solid var(--gl-navy);
  border-radius: 4px;
  color: var(--gl-navy) !important;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.gl-cta-item a.gl-header-cta:hover {
  background: var(--gl-navy);
  color: #fff !important;
}

/* Footer — 2-column layout matching live site */
.gl-footer { background: var(--gl-navy); color: #ccc; font-size: 0.9rem; }
.gl-footer-inner { max-width: 1200px; margin: 0 auto; padding: 56px 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
@media (max-width: 768px) { .gl-footer-inner { grid-template-columns: 1fr; gap: 40px; padding: 40px 24px; } }

.gl-footer-logo { max-width: 160px; display: block; margin-bottom: 16px; filter: brightness(0) invert(1); }
.gl-footer-tagline { font-style: italic; color: #bbb; margin: 0 0 20px; line-height: 1.5; font-weight: 500; }
.gl-footer-service-links { list-style: none; padding: 0; margin: 0; }
.gl-footer-service-links li { margin-bottom: 8px; }

.gl-footer a { color: #aaa; text-decoration: none; transition: color 0.15s; }
.gl-footer a:hover { color: #fff; }

.gl-footer-contact-btn {
  display: inline-block;
  border: 2px solid #aaa;
  color: #fff !important;
  padding: 9px 24px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9em;
  margin-bottom: 18px;
  text-decoration: none;
}
.gl-footer-contact-btn:hover { border-color: #fff; }

.gl-footer-regions { color: #888; font-size: 0.82em; margin: 0 0 12px; }
.gl-footer-contact p { margin: 5px 0; font-size: 0.9em; }
.gl-footer-qr { width: 100px; height: 100px; object-fit: cover; margin-top: 16px; border-radius: 4px; display: block; }

/* Footer bar: social icons */
.gl-footer-bar { border-top: 1px solid rgba(255,255,255,0.12); padding: 20px 40px; display: flex; align-items: center; gap: 16px; }
.gl-footer-social { display: flex; gap: 14px; align-items: center; }
.gl-footer-social a { color: #aaa; display: flex; align-items: center; transition: color 0.15s; }
.gl-footer-social a:hover { color: #fff; }
.gl-footer-social svg { display: block; }

/* CF7 form: side-by-side first/last name */
.gl-cf7-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 0; }
@media (max-width: 480px) { .gl-cf7-row { grid-template-columns: 1fr; } }

/* Service cards — constrain portrait images to consistent height */
.elementor-element-s004 .elementor-widget-image img {
  height: 260px;
  width: 100%;
  object-fit: cover;
  display: block;
}

/* Hero image column: stretch image to fill full column height */
.elementor-element-c001 { padding: 0 !important; }
.elementor-element-c001 .elementor-widget-wrap { padding: 0 !important; height: 100%; }
.elementor-element-c001 .elementor-widget-image { height: 100%; }
.elementor-element-c001 .elementor-widget-image .elementor-widget-container { height: 100%; }
.elementor-element-c001 .elementor-widget-image img,
img.gl-hero-img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 400px; }
