/*
Theme Name: Aerial Imaging Australia
Theme URI: https://aerialimagingaustralia.com.au
Author: Danny Cobb
Description: Custom theme rebuilding the Aerial Imaging Australia site design in WordPress. Single design system matching the original static site (teal/cyan palette, Segoe UI, card-based service/industry grids).
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: aerial-imaging
*/

    /* ============================================
       DESIGN SYSTEM VARIABLES
       ============================================ */
    :root {
      --color-primary: #0e7490;
      --color-primary-light: #22d3ee;
      --color-primary-dark: #0a5468;
      --color-primary-bg: #f0fdfa;
      --color-accent: #f59e0b;
      --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
      --max-width: 1200px;
      --border-radius: 12px;
      --border-radius-sm: 8px;

      --color-text: #1a202c;
      --color-text-light: #4a5568;
      --color-text-lighter: #718096;
      --color-bg: #ffffff;
      --color-bg-light: #f7fafc;
      --color-border: #e2e8f0;
      --color-error: #e53e3e;
      --color-success: #38a169;
    }

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

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: var(--font-sans);
      color: var(--color-text);
      background-color: var(--color-bg);
      line-height: 1.6;
      overflow-x: hidden;
    }

    /* ============================================
       TYPOGRAPHY
       ============================================ */
    h1, h2, h3, h4, h5, h6 {
      font-weight: 700;
      line-height: 1.2;
      margin-bottom: 1rem;
    }

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

    p {
      margin-bottom: 1rem;
      color: var(--color-text-light);
    }

    a {
      color: var(--color-primary);
      text-decoration: none;
      transition: color 0.3s ease;
    }

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

    /* ============================================
       LAYOUT & CONTAINERS
       ============================================ */
    .container {
      width: 100%;
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 0 1.5rem;
    }

    section {
      padding: 4rem 0;
    }

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

    /* ============================================
       BUTTONS
       ============================================ */
    .btn {
      display: inline-block;
      padding: 0.75rem 1.5rem;
      border-radius: var(--border-radius-sm);
      font-weight: 600;
      font-size: 1rem;
      border: none;
      cursor: pointer;
      transition: all 0.3s ease;
      text-align: center;
      text-decoration: none;
    }

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

    .btn-primary:hover {
      background-color: var(--color-primary-dark);
      transform: translateY(-2px);
      box-shadow: 0 8px 16px rgba(14, 116, 144, 0.3);
    }

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

    .btn-secondary:hover {
      background-color: var(--color-primary-bg);
      transform: translateY(-2px);
    }

    .btn-sm {
      padding: 0.5rem 1rem;
      font-size: 0.9rem;
    }

    .btn:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      transform: none;
    }

    /* ============================================
       HEADER & NAVIGATION
       ============================================ */
    header {
      position: sticky;
      top: 0;
      z-index: 1000;
      background-color: white;
      border-bottom: 1px solid var(--color-border);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .header-content {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem 0;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      font-weight: 700;
      font-size: 1.25rem;
      color: var(--color-primary);
      text-decoration: none;
    }

    .logo span {
      color: var(--color-primary-light);
    }

    .logo svg {
      width: 36px;
      height: 36px;
    }

    .social-icons {
      display: flex;
      gap: 0.75rem;
      align-items: center;
    }

    .social-icons a {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: var(--color-primary-bg);
      color: var(--color-primary);
      transition: background 0.3s, color 0.3s;
    }

    .social-icons a:hover {
      background: var(--color-primary);
      color: white;
    }

    .social-icons svg {
      width: 16px;
      height: 16px;
      fill: currentColor;
    }

    nav {
      display: flex;
      gap: 2rem;
      align-items: center;
    }

    nav a {
      font-weight: 500;
      color: var(--color-text);
      transition: color 0.3s ease;
    }

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

    .menu-toggle {
      display: none;
      background: none;
      border: none;
      font-size: 1.5rem;
      cursor: pointer;
      color: var(--color-text);
    }

    .menu-toggle.active + nav {
      display: flex;
      flex-direction: column;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background-color: white;
      padding: 1.5rem;
      gap: 1rem;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    @media (max-width: 768px) {
      .menu-toggle {
        display: block;
      }

      nav {
        display: none;
      }

      .social-icons {
        display: none;
      }
    }

    /* ============================================
       HERO SECTION
       ============================================ */
    .hero {
      padding: 3rem 0;
    }

    .hero-content {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3rem;
      align-items: center;
      margin-bottom: 3rem;
    }

    .hero-text h1 {
      font-size: 2.8rem;
      margin-bottom: 1.5rem;
      line-height: 1.2;
    }

    .hero-text p {
      font-size: 1.1rem;
      margin-bottom: 2rem;
      color: var(--color-text-light);
    }

    .hero-cta {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .hero-visual {
      position: relative;
      aspect-ratio: 5/4;
      background-color: #0a0f1a;
      border-radius: var(--border-radius);
      overflow: hidden;
      box-shadow: 0 20px 40px rgba(14, 116, 144, 0.2);
    }

    .hero-canvas {
      width: 100%;
      height: 100%;
      display: block;
    }

    .stat-cards {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 2rem;
    }

    .stat-card {
      background-color: var(--color-primary-bg);
      padding: 2rem;
      border-radius: var(--border-radius);
      border-left: 4px solid var(--color-primary);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .stat-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 24px rgba(14, 116, 144, 0.15);
    }

    .stat-icon {
      width: 48px;
      height: 48px;
      margin-bottom: 1rem;
      display: flex;
      align-items: center;
      justify-content: center;
      background-color: var(--color-primary);
      color: white;
      border-radius: 50%;
      font-size: 1.5rem;
    }

    .stat-card h3 {
      font-size: 1.25rem;
      margin-bottom: 0.5rem;
    }

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

    @media (max-width: 768px) {
      .hero-content {
        grid-template-columns: 1fr;
      }

      /* Push the animation below the hero text/CTAs on mobile so the
         headline and buttons own the first screen. */
      .hero-text {
        order: 1;
      }

      .hero-visual {
        order: 2;
        margin-top: 1.5rem;
      }

      .hero-text h1 {
        font-size: 2rem;
      }

      .hero-cta {
        flex-direction: column;
      }

      .btn {
        width: 100%;
      }
    }

    /* ============================================
       SERVICES SECTION
       ============================================ */
    .services-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 2rem;
    }

    .service-card {
      background-color: white;
      border: 1px solid var(--color-border);
      padding: 2.5rem 2rem;
      border-radius: var(--border-radius);
      transition: all 0.3s ease;
      text-align: center;
    }

    .service-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 16px 32px rgba(14, 116, 144, 0.12);
      border-color: var(--color-primary);
    }

    .service-icon {
      width: 64px;
      height: 64px;
      margin: 0 auto 1.5rem;
      display: flex;
      align-items: center;
      justify-content: center;
      background-color: var(--color-primary-bg);
      color: var(--color-primary);
      border-radius: 50%;
      font-size: 2rem;
    }

    .service-card h3 {
      margin-bottom: 1rem;
      font-size: 1.3rem;
    }

    .service-card p {
      margin-bottom: 1.5rem;
      font-size: 0.95rem;
    }

    @media (max-width: 768px) {
      .services-grid {
        grid-template-columns: 1fr;
      }
    }

    .service-card a {
      color: var(--color-primary);
      font-weight: 600;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      transition: gap 0.3s ease;
    }

    .service-card a:hover {
      gap: 0.75rem;
    }

    /* ============================================
       SHOWCASE SECTION
       ============================================ */
    .showcase-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2rem;
      margin-bottom: 3rem;
    }

    .showcase-panel {
      position: relative;
      aspect-ratio: 4/3;
      background: linear-gradient(135deg, #f7fafc 0%, #e2e8f0 100%);
      border-radius: var(--border-radius);
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 2px solid var(--color-border);
      transition: border-color 0.3s ease;
    }

    .showcase-panel:hover {
      border-color: var(--color-primary);
    }

    .showcase-svg {
      width: 100%;
      height: 100%;
    }

    .showcase-overlay {
      position: absolute;
      inset: 0;
      background-color: rgba(0, 0, 0, 0);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background-color 0.3s ease;
      border-radius: var(--border-radius);
      text-decoration: none;
    }

    .showcase-panel:hover .showcase-overlay {
      background-color: rgba(0, 0, 0, 0.6);
    }

    .showcase-overlay span {
      background-color: var(--color-primary);
      color: white;
      padding: 0.75rem 1.5rem;
      border-radius: 50px;
      font-weight: 600;
      opacity: 0;
      transition: opacity 0.3s ease;
      font-size: 0.9rem;
    }

    .showcase-panel:hover .showcase-overlay span {
      opacity: 1;
    }

    @media (max-width: 768px) {
      .showcase-grid {
        grid-template-columns: 1fr;
      }
    }

    /* ============================================
       INDUSTRIES SECTION
       ============================================ */
    .industries-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 2rem;
    }

    .industry-card {
      background-color: white;
      border: 1px solid var(--color-border);
      padding: 2rem;
      border-radius: var(--border-radius);
      transition: all 0.3s ease;
    }

    .industry-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 24px rgba(14, 116, 144, 0.1);
      border-color: var(--color-primary);
    }

    .industry-card h3 {
      margin-bottom: 1rem;
      font-size: 1.1rem;
    }

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

    /* ============================================
       ABOUT SECTION
       ============================================ */
    .about-content {
      max-width: 800px;
      margin: 0 auto;
      text-align: center;
    }

    .about-content h2 {
      margin-bottom: 2rem;
    }

    .about-content p {
      font-size: 1.05rem;
      line-height: 1.8;
      margin-bottom: 1.5rem;
      color: var(--color-text-light);
    }

    /* ============================================
       FAQ SECTION
       ============================================ */
    .faq-container {
      max-width: 800px;
      margin: 0 auto;
    }

    .faq-item {
      margin-bottom: 1.5rem;
      border: 1px solid var(--color-border);
      border-radius: var(--border-radius-sm);
      overflow: hidden;
      transition: border-color 0.3s ease, box-shadow 0.3s ease;
    }

    .faq-item:hover {
      border-color: var(--color-primary);
      box-shadow: 0 4px 12px rgba(14, 116, 144, 0.1);
    }

    .faq-item[open] {
      border-color: var(--color-primary);
      background-color: var(--color-primary-bg);
    }

    .faq-item summary {
      padding: 1.5rem;
      cursor: pointer;
      font-weight: 600;
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: var(--color-text);
      transition: color 0.3s ease;
      user-select: none;
    }

    .faq-item summary:hover {
      color: var(--color-primary);
    }

    .faq-item summary::after {
      content: '+';
      font-size: 1.5rem;
      color: var(--color-primary);
      font-weight: 700;
    }

    .faq-item[open] summary::after {
      content: '−';
    }

    .faq-item-content {
      padding: 0 1.5rem 1.5rem 1.5rem;
      color: var(--color-text-light);
      line-height: 1.8;
    }

    .faq-item-content p {
      margin-bottom: 1rem;
    }

    .faq-item-content a {
      font-weight: 600;
      color: var(--color-primary);
    }

    /* ============================================
       CONTACT SECTION
       ============================================ */
    .contact-wrapper {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3rem;
    }

    .contact-info {
      padding-right: 2rem;
    }

    .contact-info h3 {
      margin-bottom: 2rem;
      font-size: 1.5rem;
    }

    .contact-item {
      margin-bottom: 2rem;
    }

    .contact-item strong {
      display: block;
      color: var(--color-primary);
      font-weight: 600;
      margin-bottom: 0.5rem;
    }

    .contact-item p {
      color: var(--color-text-light);
      margin-bottom: 0.25rem;
    }

    .contact-form {
      background-color: var(--color-bg-light);
      padding: 2.5rem;
      border-radius: var(--border-radius);
    }

    .contact-form h3 {
      margin-bottom: 1.5rem;
      font-size: 1.3rem;
    }

    .form-group {
      margin-bottom: 1.5rem;
    }

    .form-group label {
      display: block;
      margin-bottom: 0.5rem;
      font-weight: 500;
      color: var(--color-text);
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
      width: 100%;
      padding: 0.75rem;
      border: 1px solid var(--color-border);
      border-radius: var(--border-radius-sm);
      font-family: var(--font-sans);
      font-size: 1rem;
      transition: border-color 0.3s ease;
    }

    .form-group input:focus,
    .form-group textarea:focus,
    .form-group select:focus {
      outline: none;
      border-color: var(--color-primary);
      box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.1);
    }

    .form-group textarea {
      resize: vertical;
      min-height: 150px;
    }

    .recaptcha-wrapper {
      margin-bottom: 1.5rem;
      transform: scale(0.9);
      transform-origin: left;
    }

    .contact-form .btn {
      width: 100%;
      margin-top: 1rem;
    }

    @media (max-width: 768px) {
      .contact-wrapper {
        grid-template-columns: 1fr;
      }

      .contact-info {
        padding-right: 0;
      }

      .recaptcha-wrapper {
        transform: scale(0.85);
      }
    }

    /* ============================================
       FOOTER
       ============================================ */
    footer {
      background-color: #1a202c;
      color: white;
      padding: 3rem 0 1.5rem;
      margin-top: 4rem;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 3rem;
      margin-bottom: 2rem;
    }

    .footer-column h4 {
      margin-bottom: 1.5rem;
      font-size: 1.1rem;
      color: white;
    }

    .footer-logo {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-bottom: 1rem;
    }

    .footer-logo svg {
      width: 40px;
      height: 40px;
    }

    .footer-tagline {
      font-size: 0.9rem;
      color: rgba(255, 255, 255, 0.7);
      font-style: italic;
      margin-top: 1rem;
    }

    .footer-social {
      display: flex;
      gap: 0.75rem;
      margin-top: 1.25rem;
    }

    .footer-social a {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 34px;
      height: 34px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
      color: rgba(255, 255, 255, 0.8);
      transition: background 0.3s, color 0.3s;
    }

    .footer-social a:hover {
      background: #22d3ee;
      color: #0a0f1a;
    }

    .footer-social svg {
      width: 16px;
      height: 16px;
      fill: currentColor;
    }

    .footer-links {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }

    .footer-links a {
      color: rgba(255, 255, 255, 0.8);
      text-decoration: none;
      transition: color 0.3s ease;
      font-size: 0.95rem;
    }

    .footer-links a:hover {
      color: var(--color-primary-light);
    }

    .footer-bottom {
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      padding-top: 1.5rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.85rem;
      color: rgba(255, 255, 255, 0.6);
    }

    .footer-bottom a {
      color: rgba(255, 255, 255, 0.8);
      margin-left: 1.5rem;
    }

    .footer-bottom a:hover {
      color: var(--color-primary-light);
    }

    @media (max-width: 768px) {
      .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
      }

      .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
      }

      .footer-bottom a {
        margin-left: 0;
        margin-right: 1rem;
      }
    }

    /* ============================================
       ANIMATIONS & TRANSITIONS
       ============================================ */
    .fade-in {
      opacity: 0;
      animation: fadeIn 0.6s ease forwards;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .drone-rotor {
      animation: rotateDrone 1s linear infinite;
    }

    @keyframes rotateDrone {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

    .drone-pulse {
      animation: dronePulse 1.5s ease-in-out infinite;
    }

    @keyframes dronePulse {
      0%, 100% { opacity: 1; r: 8; }
      50% { opacity: 0.4; r: 12; }
    }

    /* Service Card SVG Animations */
    .service-icon-svg {
      width: 80px;
      height: 80px;
      margin: 0 auto 1.5rem;
    }

    .service-icon-svg svg {
      width: 100%;
      height: 100%;
    }

    .svc-pulse {
      animation: svcPulse 2s ease-in-out infinite;
    }

    @keyframes svcPulse {
      0%, 100% { opacity: 0; r: 12; }
      50% { opacity: 0.4; r: 18; }
    }

    .svc-anim-lens {
      animation: svcLens 3s ease-in-out infinite;
    }

    @keyframes svcLens {
      0%, 100% { stroke-opacity: 1; }
      50% { stroke-opacity: 0.4; }
    }

    .svc-tile {
      animation: svcTileShimmer 4s ease-in-out infinite;
    }

    .svc-tile-1 { animation-delay: 0s; }
    .svc-tile-2 { animation-delay: 0.5s; }
    .svc-tile-3 { animation-delay: 1s; }
    .svc-tile-4 { animation-delay: 1.5s; }
    .svc-tile-5 { animation-delay: 2s; }
    .svc-tile-6 { animation-delay: 2.5s; }

    @keyframes svcTileShimmer {
      0%, 100% { opacity: 0.3; }
      50% { opacity: 0.8; }
    }

    .svc-anim-pin {
      animation: svcPin 2s ease-in-out infinite;
    }

    @keyframes svcPin {
      0%, 100% { r: 2; opacity: 1; }
      50% { r: 4; opacity: 0.6; }
    }

    .svc-vertex {
      animation: svcVertex 3s ease-in-out infinite;
    }

    .svc-v1 { animation-delay: 0s; }
    .svc-v2 { animation-delay: 0.75s; }
    .svc-v3 { animation-delay: 1.5s; }
    .svc-v4 { animation-delay: 2.25s; }

    @keyframes svcVertex {
      0%, 100% { r: 3; }
      50% { r: 5; }
    }

    .svc-elev-fill {
      animation: svcElev 4s ease-in-out infinite;
    }

    @keyframes svcElev {
      0%, 100% { height: 20; y: 32; }
      50% { height: 35; y: 17; }
    }

    .svc-data {
      animation: svcData 3s ease-in-out infinite;
    }

    .svc-d1 { animation-delay: 0s; }
    .svc-d2 { animation-delay: 0.6s; }
    .svc-d3 { animation-delay: 1.2s; }
    .svc-d4 { animation-delay: 1.8s; }
    .svc-d5 { animation-delay: 2.4s; }

    @keyframes svcData {
      0%, 100% { opacity: 0.4; }
      50% { opacity: 1; }
    }

    .svc-bar {
      animation: svcBar 2.5s ease-in-out infinite;
    }

    .svc-b1 { animation-delay: 0s; }
    .svc-b2 { animation-delay: 0.3s; }
    .svc-b3 { animation-delay: 0.6s; }
    .svc-b4 { animation-delay: 0.9s; }

    @keyframes svcBar {
      0%, 100% { transform: scaleY(1); }
      50% { transform: scaleY(1.3); }
    }

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

    .section-heading {
      font-size: 2rem;
      margin-bottom: 3rem;
      text-align: center;
    }

    .visually-hidden {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border-width: 0;
    }

    /* ============================================
       RESPONSIVE DESIGN
       ============================================ */
    @media (max-width: 480px) {
      h1 { font-size: 1.75rem; }
      h2 { font-size: 1.5rem; }
      .section-heading { font-size: 1.5rem; }
      section { padding: 2.5rem 0; }
      .container { padding: 0 1rem; }
    }
