/* Dean Fowler Consulting - Static Site
   Matching Avada Theme Design
   ================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* CSS Variables - Matching Avada/original site */
:root {
  /* Primary Colors from original site */
  --awb-color-1: #ffffff;
  --awb-color-2: #f6f6f6;
  --awb-color-3: #ebecec;
  --awb-color-6: #65bc7b;  /* Green accent */
  --awb-color-7: #747474;
  --awb-color-8: #333333;
  
  /* Custom blues from site */
  --blue-light: #415b86;
  --blue-dark: #37507a;
  
  /* Footer */
  --footer-bg: #363839;
  --footer-text: #8c8c8c;
  --footer-copyright-bg: #282a2b;
  
  /* Typography - Avada defaults */
  --body-font: 'PT Sans', Arial, Helvetica, sans-serif;
  --heading-font: 'PT Sans', Arial, Helvetica, sans-serif;
  --nav-font-size: 14px;
  --body-font-size: 13px;
  
  /* Layout */
  --site-width: 1100px;
  --header-bg: #ffffff;
  --header-border: #e0dede;
}

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--body-font-size);
  font-weight: 400;
  line-height: 1.5;
  color: var(--awb-color-8);
  background-color: var(--awb-color-1);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 400;
  line-height: 1.4;
  color: var(--awb-color-8);
  margin: 0 0 0.67em;
}

h1 { font-size: 2em; font-weight: 700; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.17em; }
h4 { font-size: 1em; font-weight: 700; }

p {
  margin: 0 0 1.5em;
}

a {
  color: var(--awb-color-8);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--awb-color-6);
}

ul, ol {
  margin: 0 0 1.5em 2.5em;
}

li {
  margin-bottom: 0.5em;
}

strong, b {
  font-weight: 700;
}

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

/* ===============================
   HEADER - Avada v1 Style
   =============================== */
.site-header {
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
}

.container {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0 30px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

/* Logo */
.site-logo a {
  display: block;
}

.site-logo img {
  max-height: 55px;
  width: auto;
  vertical-align: middle;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--blue-dark);
}

/* Navigation - Avada style */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--awb-color-8);
  cursor: pointer;
  padding: 10px;
}

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

.nav-menu li {
  margin: 0;
  position: relative;
}

.nav-menu a {
  display: block;
  padding: 25px 14px;
  font-size: var(--nav-font-size);
  color: var(--awb-color-8);
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  border-bottom-color: var(--awb-color-6);
}

/* Dropdown Menu */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  cursor: pointer;
}

.nav-dropdown > a::after {
  content: ' ▾';
  font-size: 10px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border: 1px solid var(--header-border);
  z-index: 1001;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: var(--awb-color-8);
  border-bottom: 1px solid var(--awb-color-3);
  font-size: 13px;
}

.dropdown-menu a:hover {
  background: var(--awb-color-2);
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

/* Show dropdown on hover (desktop) */
@media (min-width: 801px) {
  .nav-dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* Search Box */
.search-wrapper {
  position: relative;
  margin-left: 15px;
}

.search-wrapper input {
  padding: 8px 12px;
  border: 1px solid var(--header-border);
  border-radius: 3px;
  font-size: 13px;
  width: 180px;
  font-family: var(--body-font);
}

.search-wrapper input:focus {
  outline: none;
  border-color: var(--awb-color-6);
}

#search-results {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 280px;
  max-height: 400px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--header-border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1001;
  margin-top: 5px;
}

.search-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid var(--awb-color-3);
  color: var(--awb-color-8);
  text-decoration: none;
  transition: background 0.15s;
}

.search-result-item:hover {
  background: var(--awb-color-2);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-title {
  font-weight: 600;
}

.search-external {
  color: var(--awb-color-7);
  font-size: 12px;
}

.search-no-results {
  padding: 15px;
  color: var(--awb-color-7);
  text-align: center;
}

/* Mobile Navigation */
@media (max-width: 800px) {
  .nav-toggle {
    display: block;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--header-bg);
    flex-direction: column;
    border-top: 1px solid var(--header-border);
    z-index: 1000;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu > li > a {
    padding: 15px 30px;
    border-bottom: 1px solid var(--header-border);
    border-left: none;
  }
  
  .nav-menu a:hover,
  .nav-menu a.active {
    border-bottom-color: var(--header-border);
    background-color: var(--awb-color-2);
  }
  
  .site-header {
    position: relative;
  }
  
  .search-wrapper {
    margin: 10px 30px 15px;
  }
  
  .search-wrapper input {
    width: 100%;
  }
  
  #search-results {
    width: 100%;
    left: 0;
    right: 0;
  }
  
  /* Mobile Dropdown */
  .nav-dropdown > a::after {
    content: ' ▾';
  }
  
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: var(--awb-color-2);
    min-width: 100%;
  }
  
  .dropdown-menu a {
    padding: 12px 30px 12px 50px;
    border-bottom: 1px solid var(--header-border);
  }
  
  .nav-dropdown.open .dropdown-menu {
    display: block;
  }
}

/* ===============================
   HERO SECTION
   =============================== */
.hero {
  padding: 2% 0 40px;
}

.hero-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4%;
}

.hero-content {
  flex: 1 1 48%;
  min-width: 300px;
  padding: 20px;
}

.hero-content h1 {
  margin-bottom: 10px;
}

.hero-content h2 {
  font-weight: 400;
  margin-bottom: 20px;
}

.hero-video {
  flex: 1 1 48%;
  min-width: 300px;
  padding: 10px;
}

.hero-video iframe {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 5/3;
  border: none;
}

@media (max-width: 800px) {
  .hero-content,
  .hero-video {
    flex: 1 1 100%;
  }
}

/* ===============================
   FEATURE BOXES (Blue sections)
   =============================== */
.feature-section {
  display: flex;
  flex-wrap: wrap;
}

.feature-box {
  flex: 1 1 50%;
  min-width: 300px;
  padding: 11%;
  text-align: center;
  color: #ffffff;
}

.feature-box.blue-light {
  background-color: var(--blue-light);
}

.feature-box.blue-dark {
  background-color: var(--blue-dark);
}

.feature-box h2 {
  color: #ffffff;
  margin-bottom: 15px;
}

.feature-box p {
  color: #ffffff;
  line-height: 1.7;
}

.feature-box img {
  max-width: 282px;
  height: auto;
  margin-bottom: 20px;
}

.feature-box a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.feature-box a:hover {
  text-decoration: none;
  opacity: 0.9;
}

/* ===============================
   TEAM SECTION
   =============================== */
.team-section {
  padding: 80px 0 75px;
}

.team-section > .container > h1 {
  text-align: center;
  margin-bottom: 15px;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4%;
  margin-top: 40px;
}

.team-card {
  flex: 1 1 30%;
  min-width: 280px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  background: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.team-card img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 22px;
}

.team-card h4 {
  text-align: center;
  margin-bottom: 15px;
}

.team-card p {
  line-height: 1.7;
}

/* ===============================
   CONTENT PAGES
   =============================== */
.content {
  padding: 40px 0 60px;
}

.content-container {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 30px;
}

.content h1 {
  margin-bottom: 20px;
}

.content h2 {
  margin-top: 30px;
  margin-bottom: 15px;
}

.content h2:first-of-type {
  margin-top: 0;
}

/* Bio Pages - Image floats right, all content flows around */
.bio-page .bio-photo {
  float: right;
  width: 220px;
  height: auto;
  margin: 0 0 20px 30px;
}

.bio-page h1 {
  margin-top: 0;
}

@media (max-width: 640px) {
  .bio-page .bio-photo {
    float: none;
    display: block;
    width: 180px;
    margin: 0 auto 20px;
  }
  
  .bio-page h1 {
    text-align: center;
  }
}

/* Contact Box */
.contact-box {
  background: var(--awb-color-2);
  border: 1px solid var(--header-border);
  padding: 25px;
  margin-top: 20px;
  max-width: 400px;
}

.contact-box p {
  margin-bottom: 10px;
}

.contact-box p:last-child {
  margin-bottom: 0;
}

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

.article-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--header-border);
}

.article-item:last-child {
  border-bottom: none;
}

.article-item h3 {
  margin-bottom: 8px;
}

.article-item h3 a {
  color: var(--awb-color-8);
}

.article-item h3 a:hover {
  color: var(--awb-color-6);
}

.article-item p {
  color: var(--awb-color-7);
  margin-bottom: 0;
}

/* PDF Links */
.pdf-link::before {
  content: '📄 ';
}

/* ===============================
   BOOK CARDS
   =============================== */
.book-card {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  margin-bottom: 30px;
  background: #ffffff;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
}

.book-card img {
  width: 120px;
  height: auto;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.book-card > div {
  flex: 1;
  min-width: 250px;
}

.book-card h2,
.book-card h3 {
  margin-top: 0;
}

.book-card .author {
  color: var(--awb-color-7);
  font-style: italic;
  margin-bottom: 15px;
}

@media (max-width: 480px) {
  .book-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Book Detail Pages */
.book-detail {
  margin-bottom: 30px;
}

.book-detail h4 {
  color: var(--awb-color-6);
  margin-bottom: 15px;
}

.book-cover-large {
  float: right;
  width: 200px;
  margin: 0 0 20px 30px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 500px) {
  .book-cover-large {
    float: none;
    display: block;
    margin: 0 auto 20px;
  }
}

/* Blockquotes */
blockquote {
  margin: 20px 0;
  padding: 15px 20px;
  border-left: 4px solid var(--awb-color-6);
  background: var(--awb-color-2);
  font-style: italic;
}

blockquote p {
  margin-bottom: 10px;
}

blockquote cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: var(--awb-color-7);
  font-size: 0.9em;
}

/* ===============================
   BUTTONS - Avada style
   =============================== */
.btn {
  display: inline-block;
  padding: 11px 23px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--awb-color-6);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #52a768;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(101, 188, 123, 0.3);
}

.btn-secondary {
  background-color: var(--blue-dark);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: var(--blue-light);
  color: #ffffff;
}

/* ===============================
   FOOTER - Avada Copyright Style
   =============================== */
.copyright-bar {
  background-color: var(--footer-copyright-bg);
  color: var(--footer-text);
  text-align: center;
  padding: 18px 30px;
  font-size: 12px;
  line-height: 1.8;
}

.copyright-bar a {
  color: var(--footer-text);
}

.copyright-bar a:hover {
  color: #ffffff;
}

/* Skip to content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--awb-color-6);
  color: white;
  padding: 8px 16px;
  z-index: 9999;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Better focus states for accessibility */
a:focus,
button:focus,
input:focus {
  outline: 2px solid var(--awb-color-6);
  outline-offset: 2px;
}

/* Selection styling */
::selection {
  background: var(--awb-color-6);
  color: white;
}

/* ===============================
   UTILITIES
   =============================== */
.text-center { text-align: center; }

.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

/* ===============================
   RESPONSIVE
   =============================== */
@media (max-width: 800px) {
  :root {
    --body-font-size: 14px;
  }
  
  .container,
  .content-container {
    padding: 0 20px;
  }
  
  .hero {
    padding: 30px 0;
  }
  
  .feature-box {
    padding: 40px 20px;
  }
  
  .team-section {
    padding: 40px 0;
  }
  
  .team-card {
    flex: 1 1 100%;
  }
}

/* ===============================
   PRINT STYLES
   =============================== */
@media print {
  .site-header,
  .copyright-bar {
    display: none;
  }
  
  body {
    font-size: 12pt;
    color: #000;
  }
}

