/* ============================================
   Alfons Haar Australia - Consolidated Stylesheet
   ============================================ */

/* CSS Variables for consistent theming */
:root {
  --primary-color: #005E70;
  --primary-light: #007189;
  --primary-dark: #00404e;
  --secondary-color: #6c757d;
  --accent-color: #ff6b35;
  --text-dark: #212529;
  --text-light: #6c757d;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #dee2e6;
  --shadow-light: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-medium: 0 4px 8px rgba(0,0,0,0.15);
  --shadow-heavy: 0 8px 16px rgba(0,0,0,0.2);
  --transition: all 0.3s ease;
  --border-radius: 4px;
  --font-primary: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-secondary: 'Lora', serif;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  margin: 0;
  padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem 0;
  color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin: 0 0 1rem 0;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* Layout Utilities */
.flex-row {
  display: flex;
  flex-direction: row;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation */
#mainNav {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  transform: none !important;
}

#mainNav.is-visible,
#mainNav.is-fixed {
  transform: none !important;
  top:0 !important;
}

.regions-wrapper {
  background: linear-gradient(135deg, var(--primary-color) 0%, #000000 100%);
  color: white;
  padding: 0.5rem 0;
}

.regions {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.regions-mast a {
  color: white;
  margin: 0 0.5rem;
  transition: var(--transition);
}

.regions-mast a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

.navbar-brand img {
  max-width: 124px;
  height: auto;
}

.navbar-nav .nav-link {
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.75rem 1rem;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color);
  background-color: var(--bg-light);
}

/* Header/Masthead */
header.masthead-h {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), no-repeat center center;
  background-size: cover;
  height: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin-top: 0;
  background-color:gainsboro;
}

header.masthead-h h2 {
  color: white;
  font-size: 2.5rem;
  /*text-shadow: 2px 2px 4px rgba(0,0,0,0.5);*/
  margin: 0;
}



/* Buttons */

.btn-callout {
  background-color: var(--text-dark);
  color: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin: 0 5px 10px;
  height: 72px;
  width: 270px;
  transition: var(--transition);
  text-align: center;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid white;
  border-top: 1px solid white;
}

.btn-callout:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.btn-callout.first {
  margin-left: 0;
}

.btn-callout.last {
  margin-right: 0;
}

.btn-callout a, 
.btn-callout a:hover {
  color: #FFF;
  text-decoration: none;
}

.btn-callout .strong {
  color: #FFF;
  font-weight: bold;
  font-size: 125%;
  margin-bottom: 0.5rem;
}

.btn-callout .shaded-bgx {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Content Sections */
section {
  padding: 3rem 0;
}

article {
  flex: 2;
  padding-right: 2rem;
}

aside {
  flex: 1;
  background-color: var(--bg-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  height: fit-content;
}

aside h3 {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

aside ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

aside li {
  margin-bottom: 0.5rem;
}

aside a {
  color: var(--text-dark);
  padding: 0.5rem 0;
  display: block;
  transition: var(--transition);
}

aside a:hover {
  color: var(--primary-color);
  padding-left: 0.5rem;
}

/* Footer */
.footer-links {
  background-color: var(--bg-light);
  padding: 3rem 0;
  margin-top: 3rem;
}

.quarter {
  width: 25%;
  padding: 0 1rem;
}

.quarter h3 {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
}

.quarter ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quarter li {
  margin-bottom: 0.5rem;
}

.quarter a {
  color: var(--text-dark);
  transition: var(--transition);
}

.quarter a:hover {
  color: var(--primary-color);
  padding-left: 0.5rem;
}

.quarter .contact-info {
  font-weight: 600;
}

.quarter .phone {
  color: var(--accent-color);
  font-size: 1.3rem;
  font-weight: bold;
}

footer {
  background-color: var(--text-dark);
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 2rem;
}

/* Utility Classes */
.shaded-bg {
  background-image: url('/web/20241007205915im_/https://alfons-haar.com.au/images/black50.png');
  background-repeat: repeat;
  padding-left: 10px;
  padding-right: 40px;
  background-color: rgba(0,0,0,0.7);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
}

.css3-shadow {
  position: relative;
  
}

.css3-shadow:after {
  content: "";
  position: absolute;
  z-index: -1;
  box-shadow: 0 0 40px rgba(0,0,0,0.4);
  bottom: 0;
  left: 10%;
  right: 10%;
  width: 80%;
  height: 50%;
  border-radius: 100%;
}

.css3-shadow:hover {
  
}

/* Flip Counter */
.flip-counter {
  
  color: white;
  padding: 1rem;
  border-radius: var(--border-radius);
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 1rem 0;
}

.flip-counter ul.cd {
  float: left;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.flip-counter li {
  background-image: url(/images/digits-new.png);
}

.flip-counter li.t {
  background-position: 0 0;
  width: 53px;
  height: 39px;
}

.flip-counter li.b {
  background-position: 0 0;
  width: 53px;
  height: 64px;
}

.flip-counter li.s {
  background-position: -53px -1030px;
  width: 14px;
  height: 103px;
}

.ticker-headline {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  
  margin: 1rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .flex-row {
    flex-direction: column;
  }
  
  article {
    padding-right: 0;
    margin-bottom: 2rem;
  }
  
  .quarter {
    width: 100%;
    margin-bottom: 2rem;
  }
  
  .btn-callout {
    margin: 0.5rem 0;
    width: 100%;
  }
  
  header.masthead-h {
    height: 200px;
  }
  
  header.masthead-h h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 0.5rem;
  }
}

/* Print Styles */
@media print {
  .btn-callout,
  .flip-counter {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
}
