/* Adopt-A-Tree Hawaii - Shared Styles
 * Modern CSS with consistent theming
 */

/* CSS Variables */
:root {
  --primary: #2e7d32;
  --primary-light: #4caf50;
  --primary-dark: #1b5e20;
  --accent: #669900;
  --text-dark: #333;
  --text-muted: #666;
  --text-light: #888;
  --bg-light: #f8f9fa;
  --bg-white: #fff;
  --border: #dee2e6;
  --border-light: #e9ecef;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(0, 0, 0, 0.15);
}

/* Font Faces */
@font-face {
  font-display: swap;
  font-family: 'Diplomata SC';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/diplomata-sc-v28-latin-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Contrail One';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/contrail-one-v19-latin-regular.woff2') format('woff2');
}

/* Base Styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--bg-white);
}

/* Page Container */
.page-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1em;
}

/* Navigation */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5em;
  padding: 1em 0;
  list-style: none;
  margin: 0;
}

.site-nav li {
  margin: 0;
}

.site-nav a {
  display: inline-block;
  padding: 0.6em 1.2em;
  font-size: 1.1em;
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.2s, color 0.2s;
}

.site-nav a:hover {
  background-color: var(--bg-light);
  color: var(--primary);
}

.site-nav a.active {
  background-color: var(--primary);
  color: white;
}

/* Site Header / Branding */
.site-header {
  text-align: center;
  padding: 1em 0 1.5em;
  border-bottom: 3px solid var(--primary-light);
  margin-bottom: 2em;
}

.site-title {
  font-family: 'Diplomata SC', serif;
  font-size: 2.2em;
  margin: 0;
  letter-spacing: 0.02em;
}

.site-title .hawaii {
  color: var(--primary);
}

.site-tagline {
  font-family: 'Contrail One', cursive;
  font-size: 1.4em;
  color: var(--primary);
  margin: 0.3em 0 0.2em;
}

.site-subtitle {
  font-family: 'Contrail One', cursive;
  font-size: 1.1em;
  color: #1976d2;
  margin: 0;
}

/* Page Titles */
.page-title {
  color: var(--primary);
  font-size: 1.8em;
  margin: 0 0 0.5em;
  padding-bottom: 0.5em;
  border-bottom: 2px solid var(--primary-light);
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 1.2em;
  margin: 0 0 1.5em;
}

/* Content Sections */
.content-section {
  margin-bottom: 2em;
}

.section-title {
  color: var(--primary);
  font-size: 1.4em;
  margin: 0 0 1em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid var(--border);
}

/* Cards */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5em;
  margin-bottom: 1.5em;
  box-shadow: 0 2px 4px var(--shadow);
}

.card-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  font-weight: 600;
  padding: 0.8em 1em;
  margin: -1.5em -1.5em 1.5em -1.5em;
  border-radius: 7px 7px 0 0;
}

/* Info Box */
.info-box {
  background: #e8f5e9;
  border-left: 4px solid var(--primary-light);
  padding: 1em 1.2em;
  border-radius: 0 6px 6px 0;
  margin: 1.5em 0;
  font-size: 0.95em;
  color: var(--primary-dark);
}

/* Image Containers */
.image-frame {
  border: 10px solid var(--accent);
  border-radius: 4px;
  padding: 2px;
  display: inline-block;
  box-shadow: 0 4px 8px var(--shadow);
}

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

/* Image Grid */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1em;
  margin: 1.5em 0;
}

.image-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.image-cell {
  text-align: center;
  padding: 0.5em;
}

.image-cell img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 4px var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.image-cell img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px var(--shadow-hover);
}

/* Process Steps (for planting process page) */
.process-step {
  display: flex;
  gap: 1.5em;
  margin-bottom: 1.5em;
  padding: 1em;
  background: var(--bg-light);
  border-radius: 8px;
  align-items: flex-start;
}

.process-step-image {
  flex: 0 0 30%;
  max-width: 200px;
}

.process-step-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 4px var(--shadow);
}

.process-step-content {
  flex: 1;
  padding-top: 0.5em;
}

.process-step-content p {
  margin: 0;
}

/* FAQ Styles */
.faq-item {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1em;
  overflow: hidden;
}

.faq-question {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  font-weight: 600;
  padding: 1em 1.2em;
  margin: 0;
  font-size: 1.05em;
}

.faq-answer {
  padding: 1.2em;
  color: var(--text-dark);
  line-height: 1.7;
}

.faq-answer p {
  margin: 0 0 1em;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Testimonial Cards */
.testimonial-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: 1.5em;
  margin-bottom: 1.5em;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.7;
  margin: 0 0 1em;
}

.testimonial-author {
  color: var(--primary);
  font-weight: 600;
}

/* Two Column Layout */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2em;
  align-items: start;
}

.two-column-text-left {
  grid-template-columns: 1.2fr 0.8fr;
}

.two-column-text-right {
  grid-template-columns: 0.8fr 1.2fr;
}

/* Feature Box (for homepage) */
.feature-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 2em;
  border-radius: 12px;
  text-align: center;
  margin: 2em 0;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.feature-box h3 {
  margin: 0 0 0.5em;
  font-size: 1.4em;
}

.feature-box p {
  margin: 0;
  opacity: 0.95;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 1em 2.5em;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(46, 125, 50, 0.4);
  color: white;
  text-decoration: none;
}

.cta-button-white {
  background: white;
  color: var(--primary);
}

.cta-button-white:hover {
  color: var(--primary);
}

/* Promo Banner (Hana Hou Ad) */
.promo-banner {
  text-align: center;
  margin: 2em 0;
  padding: 1.5em;
  background: var(--bg-light);
  border-radius: 8px;
}

.promo-banner img {
  border: 10px solid var(--accent);
  border-radius: 4px;
  max-width: 100%;
  height: auto;
}

.promo-banner p {
  margin: 1em 0 0;
  font-weight: 600;
  color: var(--text-muted);
}

/* Site Footer */
.site-footer {
  background: var(--bg-light);
  border-top: 3px solid var(--primary-light);
  margin-top: 3em;
  padding: 2em 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2em;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1em;
}

.footer-logo img {
  width: 100px;
  height: auto;
  border-radius: 4px;
  transition: transform 0.2s;
}

.footer-logo:hover img {
  transform: scale(1.05);
}

.footer-contact {
  text-align: left;
  line-height: 1.8;
}

.footer-contact strong {
  color: var(--primary);
  font-size: 1.1em;
}

.footer-contact a {
  color: var(--primary);
  text-decoration: none;
}

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

.footer-social {
  display: flex;
  gap: 1em;
  align-items: center;
}

.footer-social a {
  display: block;
  transition: transform 0.2s;
}

.footer-social a:hover {
  transform: scale(1.1);
}

.footer-social img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
}

.footer-cta img {
  width: 90px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.footer-cta:hover img {
  transform: scale(1.05);
  box-shadow: 0 4px 12px var(--shadow-hover);
}

/* Links */
a {
  color: var(--primary);
}

a:hover {
  color: var(--primary-dark);
}

/* Lists */
.styled-list {
  padding-left: 1.5em;
}

.styled-list li {
  margin-bottom: 0.5em;
}

/* Text utilities */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.text-primary {
  color: var(--primary);
}

/* Spacing utilities */
.mb-1 { margin-bottom: 0.5em; }
.mb-2 { margin-bottom: 1em; }
.mb-3 { margin-bottom: 1.5em; }
.mb-4 { margin-bottom: 2em; }

.mt-1 { margin-top: 0.5em; }
.mt-2 { margin-top: 1em; }
.mt-3 { margin-top: 1.5em; }
.mt-4 { margin-top: 2em; }

/* Responsive */
@media (max-width: 768px) {
  .site-nav {
    gap: 0.3em;
  }

  .site-nav a {
    padding: 0.5em 0.8em;
    font-size: 0.95em;
  }

  .site-title {
    font-size: 1.6em;
  }

  .site-tagline {
    font-size: 1.1em;
  }

  .site-subtitle {
    font-size: 0.95em;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  .two-column-text-left,
  .two-column-text-right {
    grid-template-columns: 1fr;
  }

  .process-step {
    flex-direction: column;
  }

  .process-step-image {
    flex: none;
    max-width: 100%;
    text-align: center;
  }

  .process-step-image img {
    max-width: 250px;
  }

  .image-grid-2 {
    grid-template-columns: 1fr;
  }

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

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

  .page-title {
    font-size: 1.4em;
  }
}

@media (max-width: 480px) {
  .page-container {
    padding: 0 0.75em;
  }

  .site-nav a {
    padding: 0.4em 0.6em;
    font-size: 0.85em;
  }

  .site-title {
    font-size: 1.3em;
  }

  .card {
    padding: 1em;
  }

  .card-header {
    margin: -1em -1em 1em -1em;
    padding: 0.6em 1em;
  }
}
