/* Homepage specific styles - inherits from shared-styles.css */
:root {
    /* Canvas settings */
    --canvas-opacity: 0.15;
}

/* Reset Pico's defaults for clean look */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #fdfbfb 0%, #f8f7f6 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    overflow: hidden;
    position: relative;
}

/* Override Pico's article/section styling */
article, section, main {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: var(--canvas-opacity);
    pointer-events: none;
    z-index: 1;
}

#artCanvas {
    width: 100%;
    height: 100%;
}

.content {
    text-align: center;
    z-index: 10;
    position: relative;
    padding: 2rem;
    max-width: 800px;
    animation: fadeIn 2s ease-out;
}

header {
    margin-bottom: 3rem;
}

.name {
    font-family: 'Crimson Text', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
    color: #1a1a1a;  /* Darker color for better visibility */
    opacity: 0;
    animation: slideDown 1s ease-out 0.3s forwards;
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-light);
    opacity: 0;
    animation: slideDown 1s ease-out 0.5s forwards;
}

.location {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 200;
    color: var(--accent-color);
    letter-spacing: 0.3px;
    margin-top: 0.5rem;
    opacity: 0;
    animation: slideDown 1s ease-out 0.7s forwards;
}

.serving {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.message {
    margin: 4rem 0;
}

.coming-soon {
    font-family: 'Crimson Text', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-style: italic;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.8s forwards;
}

.description {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 200;
    line-height: 1.6;
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeIn 1s ease-out 1s forwards;
}

.contact {
    opacity: 0;
    animation: fadeIn 1s ease-out 1.2s forwards;
}

.contact p {
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--text-light);
    letter-spacing: 0.05em;
}

.artistic-elements {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 2;
}

.circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    filter: blur(40px);
    animation: float 20s infinite ease-in-out;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #e74c3c, transparent);
    top: 10%;
    left: -100px;
}

.circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #3498db, transparent);
    bottom: 10%;
    right: -150px;
    animation-delay: -10s;
}

.brush-stroke {
    position: absolute;
    opacity: 0.03;
}

.stroke-1 {
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    top: 30%;
    right: 10%;
    transform: rotate(-15deg);
    animation: strokeMove 15s infinite ease-in-out;
}

.stroke-2 {
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    bottom: 35%;
    left: 15%;
    transform: rotate(25deg);
    animation: strokeMove 18s infinite ease-in-out reverse;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.05);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

@keyframes strokeMove {
    0%, 100% {
        transform: rotate(-15deg) translateX(0);
    }
    50% {
        transform: rotate(-15deg) translateX(20px);
    }
}

@media (max-width: 768px) {
    .circle-1, .circle-2 {
        filter: blur(60px);
    }
    
    .brush-stroke {
        opacity: 0.02;
    }
    
    /* More padding for description text on mobile */
    .description {
        padding: 0 1.5rem;
    }
    
    .content {
        padding: 2rem 1rem;
    }
}

/* Contact Link - Keep as simple text link, not button */
.contact-link {
    color: var(--accent-color) !important;
    text-decoration: none !important;
    border-bottom: 1px solid var(--accent-color) !important;
    transition: all 0.3s ease !important;
    background: none !important;
    padding: 0 !important;
    display: inline !important;
    border-radius: 0 !important;
    font-weight: inherit !important;
}

.contact-link:hover {
    color: var(--primary-color) !important;
    border-bottom-color: var(--primary-color) !important;
    background: none !important;
}

/* Override Pico button styles for links with role="button" */
a[role="button"], a.button {
    all: unset;
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-color);
    cursor: pointer;
}

/* Modal Styles */
.modal {
    display: none !important;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideUp 0.3s ease;
}

/* Mobile responsive modal - compact to fit without scrolling */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 1.2rem;
        margin: 1rem;
    }
    
    .modal-close {
        top: 0.5rem;
        right: 0.8rem;
        font-size: 1.5rem;
    }
    
    .modal h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .form-group {
        margin-bottom: 0.7rem;
    }
    
    .form-group label {
        margin-bottom: 0.3rem;
        font-size: 0.85rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.5rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form-group textarea {
        min-height: 60px;
        max-height: 80px;
    }
    
    .submit-btn {
        padding: 0.8rem;
        font-size: 0.95rem;
    }
    
    .form-message {
        padding: 0.5rem;
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }
}

/* Very small screens */
@media (max-width: 400px) {
    .modal-content {
        padding: 1rem;
    }
    
    .form-group textarea {
        min-height: 50px;
        max-height: 60px;
    }
}

dialog h2 {
    font-family: 'Crimson Text', serif;
    color: var(--primary-color);
}

/* Custom close button styling */
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: 200;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 0;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal h2 {
    font-family: 'Crimson Text', serif;
    font-size: 2.2rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: 1.8rem;
    color: #1a1a1a;
    text-align: center;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #2c3e50;  /* Dark text for better readability */
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

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

/* Form adjustments for Pico */
.submit-btn {
    width: 100%;
    background-color: #6b9080;  /* Calming sage green for therapy context */
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #5a7a6c;  /* Slightly darker on hover */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 144, 128, 0.3);
}

.submit-btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

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