/* =============================================
   Te Aho To'a - Custom CSS for Grav Theme
   ============================================= */

/* Prose styles for blog content */
.prose {
    color: #374151;
    line-height: 1.75;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
    color: #0E6B75;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose h2 {
    font-size: 1.75rem;
    border-bottom: 2px solid #0E6B75;
    padding-bottom: 0.5rem;
}

.prose h3 {
    font-size: 1.25rem;
}

.prose p {
    margin-bottom: 1.25rem;
}

.prose a {
    color: #0E6B75;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.prose a:hover {
    color: #F2913D;
}

.prose strong {
    color: #1f2937;
    font-weight: 600;
}

.prose ul, .prose ol {
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose ul li::marker {
    color: #0E6B75;
}

.prose ol li::marker {
    color: #0E6B75;
    font-weight: 600;
}

.prose blockquote {
    border-left: 4px solid #F2913D;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: #6b7280;
    font-style: italic;
    background: #f9fafb;
    padding: 1rem 1.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
}

.prose code {
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.prose pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1.25rem;
}

.prose pre code {
    background: transparent;
    padding: 0;
}

.prose img {
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.prose hr {
    border-color: #e5e7eb;
    margin: 2rem 0;
}

/* Line clamp for card excerpts */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pattern dots for CTA section */
.pattern-dots {
    background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Form input focus states */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #0E6B75;
    box-shadow: 0 0 0 3px rgba(14, 107, 117, 0.1);
}

/* Custom checkbox */
input[type="checkbox"]:checked {
    background-color: #0E6B75;
    border-color: #0E6B75;
}

/* Scroll smooth */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background-color: #0E6B75;
    color: white;
}

/* Animation for FAQ accordion */
.faq-content {
    transition: max-height 0.3s ease-out;
}

/* Rotate animation for chevron */
.rotate-180 {
    transform: rotate(180deg);
}

/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

/* Te Aho To'a Form Styles */
.teahotoa-form form .form-field,
form[name="contact"] .form-field {
    margin-bottom: 1.5rem;
}

.teahotoa-form form label,
.teahotoa-form form .form-label,
form[name="contact"] label,
form[name="contact"] .form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.teahotoa-form form input[type="text"],
.teahotoa-form form input[type="email"],
.teahotoa-form form input[type="tel"],
.teahotoa-form form textarea,
.teahotoa-form form select,
form[name="contact"] input[type="text"],
form[name="contact"] input[type="email"],
form[name="contact"] input[type="tel"],
form[name="contact"] textarea,
form[name="contact"] select {
    width: 100%;
    padding: 0.75rem 1rem !important;
    border-radius: 0.5rem !important;
    border: 1px solid #d1d5db !important;
    background-color: #ffffff !important;
    box-sizing: border-box;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 1rem;
    appearance: none;
    -webkit-appearance: none;
    color: #1f2937;
}

.teahotoa-form form input:hover,
.teahotoa-form form textarea:hover,
.teahotoa-form form select:hover,
form[name="contact"] input:hover,
form[name="contact"] textarea:hover,
form[name="contact"] select:hover {
    border-color: #9ca3af !important;
}

/* Add custom arrow for select */
.teahotoa-form form select,
form[name="contact"] select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.teahotoa-form form input:focus,
.teahotoa-form form textarea:focus,
.teahotoa-form form select:focus,
form[name="contact"] input:focus,
form[name="contact"] textarea:focus,
form[name="contact"] select:focus {
    outline: none;
    border-color: #0E6B75 !important;
    box-shadow: 0 0 0 3px rgba(14, 107, 117, 0.1);
}

.teahotoa-form form button[type="submit"],
form[name="contact"] button[type="submit"] {
    width: 100%;
    background-color: #F2913D;
    color: white;
    padding: 1rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    margin-top: 1rem;
}

.teahotoa-form form button[type="submit"]:hover,
form[name="contact"] button[type="submit"]:hover {
    background-color: #d67925;
    transform: translateY(-2px);
}

/* Checkbox alignment */
.teahotoa-form form .form-field input[type="checkbox"],
form[name="contact"] .form-field input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

/* Success/Error messages */
.form-message-success {
    background-color: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.form-message-error {
    background-color: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

/* Print styles */
@media print {
    nav, footer, .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .hero-bg {
        background: #0E6B75 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
