/* ==========================================================================
   PresumeNothing - style.css
   ========================================================================== */

/* ---------- 1. Variables & Reset ---------- */
:root {
  --color-orange: #F39C12;
  --color-gold: #EA7704;
  --color-dark-blue: #013A51;
  --color-white: #ffffff;
  --color-light-gray: #f5f5f5;
  --color-gray: #666666;
  --color-dark: #333333;
  --font-primary: 'PT Sans', Arial, sans-serif;
  --max-width: 1200px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-weight: 400;
  color: var(--color-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ---------- 2. Typography ---------- */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 400;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

/* ---------- 3. Layout Utilities ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section--gray {
  background-color: var(--color-light-gray);
}

.section--blue {
  background-color: var(--color-dark-blue);
  color: var(--color-white);
}

.text-center {
  text-align: center;
}

.flex-row {
  display: flex;
  align-items: center;
  gap: 40px;
}

.flex-row--reverse {
  flex-direction: row-reverse;
}

.flex-row > * {
  flex: 1;
}

/* ---------- 4. Header & Navigation ---------- */
.site-header {
  background: var(--color-white);
  border-bottom: 3px solid var(--color-orange);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo img {
  height: 50px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav > li {
  position: relative;
}

.main-nav > li > a {
  display: block;
  padding: 10px 14px;
  color: var(--color-dark-blue);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.main-nav > li > a:hover,
.main-nav > li > a.active {
  color: var(--color-orange);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 1001;
  border-top: 2px solid var(--color-orange);
}

.main-nav > li:hover > .dropdown,
.main-nav > li:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 10px 18px;
  font-size: 0.9rem;
  color: var(--color-dark-blue);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.dropdown li a:hover {
  background: var(--color-light-gray);
  color: var(--color-orange);
}

.dropdown .dropdown-divider {
  height: 1px;
  background: #eee;
  margin: 4px 0;
}

/* Sub-dropdown header */
.dropdown .dropdown-label {
  display: block;
  padding: 8px 18px 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gray);
}

/* Social icons in header */
.header-social {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: 16px;
}

.header-social a {
  color: var(--color-dark-blue);
  font-size: 1.1rem;
  transition: color 0.2s;
}

.header-social a:hover {
  color: var(--color-orange);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark-blue);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- 5. Hero Sections ---------- */
.hero {
  background-color: var(--color-dark-blue);
  color: var(--color-white);
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  margin-bottom: 20px;
  font-size: 2.8rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
  opacity: 0.9;
}

.hero--image {
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero--image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(1, 58, 81, 0.7);
}

.hero--image .container {
  position: relative;
  z-index: 1;
}

/* ---------- 6. Content Sections ---------- */
.content-block {
  padding: 60px 0;
}

.content-block:nth-child(even) {
  background: var(--color-light-gray);
}

.content-block .flex-row {
  gap: 50px;
}

.content-block img {
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.content-block h2 {
  color: var(--color-dark-blue);
  margin-bottom: 16px;
}

.content-block p {
  color: var(--color-gray);
  font-size: 1.05rem;
}

.testimonial {
  background: var(--color-light-gray);
  padding: 60px 0;
}

.testimonial blockquote {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--color-dark-blue);
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.5;
}

.testimonial cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-size: 1rem;
  color: var(--color-gray);
}

/* ---------- 7. Card Grids ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.card {
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 30px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card h3 {
  color: var(--color-dark-blue);
  margin-bottom: 12px;
}

.card p {
  color: var(--color-gray);
  font-size: 0.95rem;
}

.card--image {
  padding: 0;
  overflow: hidden;
}

.card--image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.card--image .card-body {
  padding: 24px;
}

/* ---------- 8. CTA Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 400;
  text-align: center;
  transition: background 0.2s, transform 0.1s;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: var(--color-gold);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-white);
  color: var(--color-white);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-dark-blue);
}

/* ---------- 9. Contact Section ---------- */
.contact-section {
  background: var(--color-dark-blue);
  color: var(--color-white);
  padding: 60px 0;
  text-align: center;
}

.contact-section h2 {
  margin-bottom: 20px;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin: 30px 0;
  font-size: 0.95rem;
}

.contact-info a {
  color: var(--color-orange);
}

.contact-info a:hover {
  text-decoration: underline;
}

/* CalendarBridge embed */
.calendar-embed {
  max-width: 800px;
  margin: 30px auto;
}

.calendar-embed iframe {
  width: 100%;
  height: 600px;
  border: none;
  border-radius: 8px;
}

/* ---------- 10. Footer ---------- */
.site-footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 40px 0 20px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-col {
  flex: 1;
  min-width: 200px;
}

.footer-col h4 {
  color: var(--color-orange);
  margin-bottom: 12px;
  font-size: 1rem;
}

.footer-col a {
  display: block;
  padding: 4px 0;
  color: #ccc;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--color-orange);
}

.footer-col p {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.footer-bottom {
  text-align: center;
  padding: 20px;
  margin-top: 30px;
  border-top: 1px solid #333;
  font-size: 0.85rem;
  color: #888;
}

/* ---------- 11. FAQ Accordion ---------- */
.faq-item {
  border-bottom: 1px solid #ddd;
  padding: 20px 0;
}

.faq-item h3 {
  color: var(--color-dark-blue);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item h3::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.3s;
}

.faq-item.open h3::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding-top: 12px;
  color: var(--color-gray);
}

/* ---------- 12. Legal / Text Pages ---------- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.legal-content h1 {
  color: var(--color-dark-blue);
  margin-bottom: 30px;
}

.legal-content h2 {
  color: var(--color-dark-blue);
  margin: 30px 0 12px;
  font-size: 1.4rem;
}

.legal-content p,
.legal-content li {
  color: var(--color-gray);
  font-size: 1rem;
  line-height: 1.7;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

/* ---------- 13. Job Cards ---------- */
.job-card {
  background: var(--color-white);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
}

.job-card h3 {
  color: var(--color-dark-blue);
  margin-bottom: 8px;
}

.job-card .location {
  color: var(--color-orange);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

/* ---------- 14. Responsive ---------- */
@media (max-width: 1024px) {
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.2rem; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-wrapper {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    transform: translateX(100%);
    transition: transform 0.3s;
    overflow-y: auto;
    z-index: 999;
  }

  .nav-wrapper.open {
    transform: translateX(0);
  }

  .main-nav {
    flex-direction: column;
    padding: 20px;
    gap: 0;
  }

  .main-nav > li {
    width: 100%;
    border-bottom: 1px solid #eee;
  }

  .main-nav > li > a {
    padding: 14px 0;
    font-size: 1.05rem;
  }

  .dropdown {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
    border-top: none;
  }

  .main-nav > li.dropdown-open > .dropdown {
    max-height: 1000px;
  }

  .dropdown li a {
    padding: 10px 16px;
  }

  .header-social {
    justify-content: center;
    padding: 20px 0;
    margin-left: 0;
  }

  .flex-row,
  .flex-row--reverse {
    flex-direction: column;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 50px 0;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .contact-info {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 320px) {
  .container { padding: 0 12px; }
  h1 { font-size: 1.5rem; }
  .hero h1 { font-size: 1.5rem; }
  .btn { padding: 12px 24px; font-size: 0.9rem; }
}
