/* ===================================
   ORTIZ PHOTOGRAPHY TEMPLATE
   Custom Styles - EXTENDS RSL Components
   =================================== */

/* ===================================
   CSS Custom Properties (Theme Variables)
   =================================== */

:root {
    /* Primary Colors */
    --ortiz-charcoal: #1A1A1A;
    --ortiz-charcoal-light: #2D2D2D;
    --ortiz-cream: #FAF8F5;
    --ortiz-white: #FFFFFF;
    --ortiz-gold: #C4A962;
    --ortiz-gold-light: #D4BC7A;

    /* Text Colors */
    --ortiz-text: #1A1A1A;
    --ortiz-text-muted: #6B6B6B;
    --ortiz-text-light: #999999;

    /* Form Fields */
    --ortiz-field-bg: #F5F3F0;
    --ortiz-field-border: #E0DDD8;

    /* Accent */
    --ortiz-accent: var(--ortiz-gold);

    /* Spacing */
    --ortiz-section-padding: clamp(4rem, 10vw, 8rem);

    /* Typography */
    --ortiz-font-heading: 'Playfair Display', Georgia, serif;
    --ortiz-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Transitions */
    --ortiz-transition: 0.3s ease;
    --ortiz-transition-slow: 0.5s ease;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --ortiz-cream: #0F0F0F;
    --ortiz-white: #1A1A1A;
    --ortiz-charcoal: #FAFAFA;
    --ortiz-charcoal-light: #E5E5E5;

    --ortiz-text: #FAFAFA;
    --ortiz-text-muted: #A0A0A0;
    --ortiz-text-light: #707070;

    --ortiz-field-bg: #1A1A1A;
    --ortiz-field-border: #333333;

    --ortiz-gold: #D4BC7A;
    --ortiz-gold-light: #E5D08A;
}

/* ===================================
   Global Styles
   =================================== */

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

/* Skip Links */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ortiz-charcoal);
    color: var(--ortiz-cream);
    padding: 1rem 2rem;
    z-index: 10000;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    font-weight: 500;
    transition: top var(--ortiz-transition);
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--ortiz-gold);
    outline-offset: 2px;
}

/* ===================================
   EXTEND: RSL Navbar
   =================================== */

.ortiz-nav.rsl-navbar {
    background: var(--ortiz-cream);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 2rem;
}

[data-theme="dark"] .ortiz-nav.rsl-navbar {
    background: var(--ortiz-cream);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ortiz-brand.rsl-navbar-brand {
    text-decoration: none;
}

.ortiz-logo-text {
    font-family: var(--ortiz-font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--ortiz-text);
    letter-spacing: -0.02em;
}

.ortiz-nav .rsl-navbar-link {
    font-family: var(--ortiz-font-body);
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--ortiz-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1rem;
    transition: color var(--ortiz-transition);
}

.ortiz-nav .rsl-navbar-link:hover,
.ortiz-nav .rsl-navbar-link:focus,
.ortiz-nav .rsl-navbar-link.active {
    color: var(--ortiz-text) !important;
    background: transparent !important;
}

/* Theme Toggle */
.ortiz-theme-toggle.rsl-theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ortiz-field-bg);
    border: 1px solid var(--ortiz-field-border);
    color: var(--ortiz-text);
    transition: all var(--ortiz-transition);
}

.ortiz-theme-toggle.rsl-theme-toggle:hover {
    background: var(--ortiz-charcoal);
    color: var(--ortiz-cream);
    border-color: var(--ortiz-charcoal);
}

[data-theme="dark"] .ortiz-theme-toggle.rsl-theme-toggle:hover {
    background: var(--ortiz-cream);
    color: var(--ortiz-charcoal);
}

/* ===================================
   EXTEND: RSL Hero
   =================================== */

.ortiz-hero.rsl-hero {
    background: var(--ortiz-cream);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ortiz-hero .rsl-hero-inner {
    max-width: 1200px;
    padding: 0 2rem;
}

.ortiz-eyebrow,
.ortiz-hero .rsl-hero-eyebrow {
    font-family: var(--ortiz-font-body);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--ortiz-text-muted);
    margin-bottom: 1.5rem;
    display: block;
}

.ortiz-heading,
.ortiz-hero .rsl-hero-heading {
    font-family: var(--ortiz-font-heading);
    font-size: clamp(2.5rem, 8vw, 7rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--ortiz-text);
    margin: 0 0 1.5rem 0;
}

.ortiz-accent,
.ortiz-hero .rsl-hero-heading-accent {
    font-style: italic;
    color: var(--ortiz-gold);
}

.ortiz-subheading,
.ortiz-hero .rsl-hero-subheading {
    font-family: var(--ortiz-font-body);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    color: var(--ortiz-text-muted);
    max-width: 500px;
    margin: 0 auto 2.5rem;
}

.ortiz-hero .rsl-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Hero Scroll Indicator */
.ortiz-hero-scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--ortiz-text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: ortiz-bounce 2s infinite;
}

@keyframes ortiz-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .ortiz-hero-scroll-indicator {
        animation: none;
    }
}

/* ===================================
   Buttons
   =================================== */

.ortiz-btn-primary {
    background: var(--ortiz-charcoal);
    color: var(--ortiz-cream) !important;
    font-family: var(--ortiz-font-body);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1rem 2rem;
    border: 2px solid var(--ortiz-charcoal);
    border-radius: 0;
    transition: all var(--ortiz-transition);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.ortiz-btn-primary:hover,
.ortiz-btn-primary:focus {
    background: transparent;
    color: var(--ortiz-charcoal) !important;
}

[data-theme="dark"] .ortiz-btn-primary {
    background: var(--ortiz-cream);
    color: #0F0F0F !important;
    border-color: var(--ortiz-cream);
}

[data-theme="dark"] .ortiz-btn-primary:hover,
[data-theme="dark"] .ortiz-btn-primary:focus {
    background: transparent;
    color: var(--ortiz-cream) !important;
}

.ortiz-btn-outline {
    background: transparent;
    color: var(--ortiz-charcoal) !important;
    font-family: var(--ortiz-font-body);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1rem 2rem;
    border: 2px solid var(--ortiz-charcoal);
    border-radius: 0;
    transition: all var(--ortiz-transition);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.ortiz-btn-outline:hover,
.ortiz-btn-outline:focus {
    background: var(--ortiz-charcoal);
    color: var(--ortiz-cream) !important;
}

[data-theme="dark"] .ortiz-btn-outline {
    border-color: var(--ortiz-cream);
    color: var(--ortiz-cream) !important;
}

[data-theme="dark"] .ortiz-btn-outline:hover,
[data-theme="dark"] .ortiz-btn-outline:focus {
    background: var(--ortiz-cream);
    color: #0F0F0F !important;
}

/* ===================================
   Animated Marquee
   =================================== */

.ortiz-marquee {
    background: var(--ortiz-charcoal);
    padding: 1.5rem 0;
    overflow: hidden;
    position: relative;
}

[data-theme="dark"] .ortiz-marquee {
    background: #FAFAFA;
}

.ortiz-marquee-track {
    display: flex;
    gap: 3rem;
    white-space: nowrap;
    animation: ortiz-marquee-scroll 20s linear infinite;
}

@keyframes ortiz-marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause marquee on hover for accessibility */
.ortiz-marquee:hover .ortiz-marquee-track {
    animation-play-state: paused;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .ortiz-marquee-track {
        animation: none;
    }
}

.ortiz-marquee-text {
    font-family: var(--ortiz-font-heading);
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 400;
    font-style: italic;
    color: var(--ortiz-cream);
}

[data-theme="dark"] .ortiz-marquee-text {
    color: #0F0F0F;
}

.ortiz-marquee-separator {
    color: var(--ortiz-gold);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

/* ===================================
   Section Styles
   =================================== */

.ortiz-section {
    padding: var(--ortiz-section-padding) 0;
}

.ortiz-section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.ortiz-section-title {
    font-family: var(--ortiz-font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    color: var(--ortiz-text);
    margin: 0 0 0.5rem 0;
}

.ortiz-section-subtitle {
    font-family: var(--ortiz-font-body);
    font-size: 1rem;
    color: var(--ortiz-text-muted);
    margin: 0;
}

/* ===================================
   EXTEND: RSL Gallery
   =================================== */

.ortiz-gallery.rsl-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .ortiz-gallery.rsl-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .ortiz-gallery.rsl-gallery {
        grid-template-columns: 1fr;
    }
}

.ortiz-gallery .rsl-gallery-item {
    aspect-ratio: 3/4;
    overflow: hidden;
}

.ortiz-gallery .rsl-gallery-image {
    height: 100%;
}

.ortiz-gallery .rsl-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--ortiz-transition-slow);
}

.ortiz-gallery .rsl-gallery-item:hover .rsl-gallery-image img,
.ortiz-gallery .rsl-gallery-item:focus-within .rsl-gallery-image img {
    transform: scale(1.05);
}

.ortiz-gallery .rsl-gallery-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--ortiz-transition);
}

.ortiz-gallery .rsl-gallery-item:hover .rsl-gallery-overlay,
.ortiz-gallery .rsl-gallery-item:focus-within .rsl-gallery-overlay {
    opacity: 1;
}

.ortiz-gallery .rsl-gallery-title {
    font-family: var(--ortiz-font-heading);
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 0.25rem;
}

.ortiz-gallery .rsl-gallery-meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
}

.ortiz-gallery .rsl-gallery-icon {
    color: #fff;
}

/* ===================================
   Services Section
   =================================== */

.ortiz-services-section {
    background: var(--ortiz-white);
}

/* EXTEND: RSL Cards for Services */
.ortiz-service-card.card {
    background: var(--ortiz-cream);
    border: none;
    border-radius: 0;
    text-align: center;
    padding: 3rem 2rem;
    transition: transform var(--ortiz-transition), box-shadow var(--ortiz-transition);
}

.ortiz-service-card.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .ortiz-service-card.card {
    background: #1A1A1A;
}

.ortiz-service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ortiz-charcoal);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--ortiz-charcoal);
    transition: all var(--ortiz-transition);
}

.ortiz-service-card.card:hover .ortiz-service-icon {
    background: var(--ortiz-charcoal);
    color: var(--ortiz-cream);
}

[data-theme="dark"] .ortiz-service-icon {
    border-color: var(--ortiz-cream);
    color: var(--ortiz-cream);
}

[data-theme="dark"] .ortiz-service-card.card:hover .ortiz-service-icon {
    background: var(--ortiz-cream);
    color: #1A1A1A;
}

.ortiz-service-card .card-title {
    font-family: var(--ortiz-font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--ortiz-text);
    margin-bottom: 1rem;
}

.ortiz-service-card .card-body {
    color: var(--ortiz-text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ===================================
   About Section
   =================================== */

.ortiz-about-section {
    background: var(--ortiz-cream);
}

.ortiz-about-grid {
    align-items: center;
}

.ortiz-about-image {
    overflow: hidden;
}

.ortiz-about-image img {
    width: 100%;
    height: auto;
    display: block;
}

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

.ortiz-about-text p {
    color: var(--ortiz-text-muted);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
}

.ortiz-about-text p:last-child {
    margin-bottom: 0;
}

.ortiz-about-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--ortiz-field-border);
}

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

.ortiz-stat-number {
    display: block;
    font-family: var(--ortiz-font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--ortiz-text);
    line-height: 1;
}

.ortiz-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ortiz-text-muted);
    margin-top: 0.5rem;
    display: block;
}

@media (max-width: 600px) {
    .ortiz-about-stats {
        gap: 2rem;
    }

    .ortiz-stat-number {
        font-size: 2rem;
    }
}

/* ===================================
   EXTEND: RSL Testimonials
   =================================== */

.ortiz-testimonial-section {
    background: var(--ortiz-white);
}

.ortiz-testimonial-wrap {
    max-width: 900px;
    margin: 0 auto 4rem;
}

.ortiz-testimonial.rsl-testimonial {
    background: var(--ortiz-cream);
    border: none;
    border-radius: 0;
}

[data-theme="dark"] .ortiz-testimonial.rsl-testimonial {
    background: #1A1A1A;
}

.ortiz-testimonials-grid {
    margin-top: 3rem;
}

/* ===================================
   Contact Section
   =================================== */

.ortiz-contact-section {
    background: var(--ortiz-charcoal);
    color: var(--ortiz-cream);
}

[data-theme="dark"] .ortiz-contact-section {
    background: #FAFAFA;
    color: #0F0F0F;
}

.ortiz-contact-section .ortiz-eyebrow {
    color: var(--ortiz-gold);
}

.ortiz-contact-section .ortiz-section-title {
    color: var(--ortiz-cream);
}

[data-theme="dark"] .ortiz-contact-section .ortiz-section-title {
    color: #0F0F0F;
}

.ortiz-contact-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

[data-theme="dark"] .ortiz-contact-text {
    color: #6B6B6B;
}

.ortiz-contact-info {
    margin-bottom: 2rem;
}

.ortiz-contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .ortiz-contact-item {
    color: #4A4A4A;
}

.ortiz-contact-item i {
    width: 20px;
    color: var(--ortiz-gold);
}

.ortiz-contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color var(--ortiz-transition);
}

.ortiz-contact-item a:hover {
    color: var(--ortiz-gold);
}

/* Social Links */
.ortiz-social-links {
    display: flex;
    gap: 1rem;
}

.ortiz-social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    transition: all var(--ortiz-transition);
    text-decoration: none;
}

.ortiz-social-link:hover,
.ortiz-social-link:focus {
    background: var(--ortiz-gold);
    border-color: var(--ortiz-gold);
    color: var(--ortiz-charcoal);
}

[data-theme="dark"] .ortiz-social-link {
    border-color: rgba(0, 0, 0, 0.2);
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .ortiz-social-link:hover,
[data-theme="dark"] .ortiz-social-link:focus {
    background: var(--ortiz-gold);
    border-color: var(--ortiz-gold);
    color: #fff;
}

/* Contact Form */
.ortiz-contact-form {
    background: #2A2A2A;
    padding: 3rem;
}

[data-theme="dark"] .ortiz-contact-form {
    background: #1A1A1A;
}

.ortiz-contact-form .rsl-field-tile {
    margin-bottom: 1.5rem;
}

.ortiz-contact-form .rsl-field-label {
    color: #FAFAFA !important;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ortiz-contact-form .rsl-field-input {
    background: #F5F3F0 !important;
    border: 1px solid #E0DDD8 !important;
    color: #1A1A1A !important;
    padding: 1rem;
    font-size: 1rem;
    width: 100%;
    transition: border-color var(--ortiz-transition);
}

.ortiz-contact-form .rsl-field-input::placeholder {
    color: #999999;
}

.ortiz-contact-form .rsl-field-input:focus {
    border-color: var(--ortiz-gold) !important;
    outline: none;
}

[data-theme="dark"] .ortiz-contact-form .rsl-field-input {
    background: #2A2A2A !important;
    border-color: #404040 !important;
    color: #FAFAFA !important;
}

[data-theme="dark"] .ortiz-contact-form .rsl-field-input::placeholder {
    color: #888888;
}

.ortiz-contact-form select.rsl-field-input {
    cursor: pointer;
}

.ortiz-contact-form textarea.rsl-field-input {
    resize: vertical;
    min-height: 120px;
}

.ortiz-submit-btn {
    width: 100%;
    margin-top: 1rem;
}

/* ===================================
   Footer
   =================================== */

.ortiz-footer {
    background: var(--ortiz-charcoal);
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .ortiz-footer {
    background: #FAFAFA;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.ortiz-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.ortiz-footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin: 0;
}

[data-theme="dark"] .ortiz-footer-copyright {
    color: rgba(0, 0, 0, 0.6);
}

.ortiz-footer-nav {
    display: flex;
    gap: 2rem;
}

.ortiz-footer-nav a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color var(--ortiz-transition);
}

.ortiz-footer-nav a:hover {
    color: var(--ortiz-gold);
}

[data-theme="dark"] .ortiz-footer-nav a {
    color: rgba(0, 0, 0, 0.6);
}

/* ===================================
   Focus States (Accessibility)
   =================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--ortiz-gold);
    outline-offset: 2px;
}

/* ===================================
   Responsive Adjustments
   =================================== */

@media (max-width: 1024px) {
    .ortiz-about-grid {
        gap: 3rem;
    }

    .ortiz-contact-grid {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .ortiz-hero .rsl-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ortiz-btn-primary,
    .ortiz-btn-outline {
        justify-content: center;
    }

    .ortiz-about-stats {
        justify-content: space-around;
    }

    .ortiz-contact-form {
        padding: 2rem;
    }

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

@media (max-width: 480px) {
    .ortiz-section {
        padding: 3rem 0;
    }

    .ortiz-section-header {
        margin-bottom: 2rem;
    }

    .ortiz-contact-form {
        padding: 1.5rem;
    }
}

/* ===================================
   Animate on Scroll Enhancements
   =================================== */

[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    [data-animate] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
