/* ============================================
   REGALIS GAYRIMENKUL - LUXURY DESIGN
   Modern, Elegant, Responsive
   ============================================ */

/* ============================================
   CSS RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Luxury Gold & Navy */
    --primary-color: #b8935f;
    --primary-dark: #9a7a4e;
    --primary-light: #d4b08c;
    --secondary-color: #1a2332;
    --secondary-light: #2d3e50;
    --accent-color: #d4af37;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --text-gray: #6b7280;
    --text-muted: #9ca3af;
    --bg-light: #faf9f7;
    --bg-white: #ffffff;
    --bg-dark: #f3f1ed;
    --overlay-dark: rgba(26, 35, 50, 0.75);
    --overlay-gradient: linear-gradient(135deg, rgba(26, 35, 50, 0.9) 0%, rgba(26, 35, 50, 0.7) 100%);
    --border-color: #e5e7eb;

    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 6rem 0;
    --container-padding: 0 2rem;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(250, 249, 247, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(250, 249, 247, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.navbar.scrolled .logo-img {
    height: 50px;
}

.logo:hover .logo-img {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    padding: 0.5rem 0;
    letter-spacing: 0.5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 26px;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.mobile-menu-toggle.active span {
    background: var(--text-light);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   HERO SECTION - LUXURY DESIGN
   ============================================ */
.hero {
    min-height: 100vh;
    background: url('images/hero-background.jpg') center right/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-gradient);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--text-light);
    animation: fadeInUp 1s ease;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(184, 147, 95, 0.2);
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    letter-spacing: 1px;
}

.hero-title-accent {
    color: var(--primary-color);
    font-weight: 600;
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    letter-spacing: 1px;
    z-index: 1;
    animation: bounce 2s infinite;
}

.hero-scroll-indicator span {
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(45deg);
    margin: 0 auto;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 20px rgba(184, 147, 95, 0.3);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(184, 147, 95, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
}

.btn-secondary:hover {
    background: var(--text-light);
    color: var(--secondary-color);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.title-divider {
    width: 60px;
    height: 2px;
    background: var(--primary-color);
    margin: 0 auto 1.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    font-weight: 400;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: var(--section-padding);
    background: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-description {
    font-size: 1.05rem;
    color: var(--text-gray);
    line-height: 1.9;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.feature-item:hover .feature-icon {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-item h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.about-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

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

.about-image:hover img {
    transform: scale(1.05);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    padding: var(--section-padding);
    background: var(--bg-light);
}

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

.service-card {
    background: var(--bg-white);
    padding: 3rem 2.5rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* ============================================
   GALLERY SECTION - MAGAZINE STYLE
   ============================================ */
.gallery {
    padding: var(--section-padding);
    background: var(--bg-white);
}

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

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

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

.gallery-card:hover img {
    transform: scale(1.08);
}

.gallery-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 70%, transparent 100%);
    color: var(--text-light);
    transform: translateY(0);
    transition: var(--transition-smooth);
}

.gallery-category {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: var(--primary-color);
    border-radius: 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.gallery-card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.gallery-card-description {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Gallery Card Sizes */
.gallery-card-large {
    grid-column: span 6;
    min-height: 500px;
}

.gallery-card-medium {
    grid-column: span 6;
    min-height: 350px;
}

.gallery-card-small {
    grid-column: span 4;
    min-height: 300px;
}

.gallery-card-wide {
    grid-column: span 8;
    min-height: 350px;
}

.gallery-card-tall {
    grid-column: span 4;
    min-height: 500px;
}

/* Gallery Divider */
.gallery-divider {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 3rem 0;
}

.gallery-divider-line {
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.gallery-divider-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--secondary-color);
    font-weight: 600;
    white-space: nowrap;
}

/* ============================================
   TEAM SECTION
   ============================================ */
.team {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.team-member {
    background: var(--bg-white);
    padding: 3rem 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.member-info h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.member-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.member-contact {
    display: inline-block;
    color: var(--text-gray);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1rem;
    padding: 0.85rem 2.5rem;
    background: var(--bg-light);
    border-radius: 50px;
    transition: var(--transition-smooth);
    border: 2px solid var(--border-color);
}

.member-contact:hover {
    background: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* ============================================
   CONTACT SECTION - MODERN CARDS
   ============================================ */
.contact {
    padding: var(--section-padding);
    background: var(--bg-white);
}

/* Contact form at top - ensure proper spacing from fixed navbar */
.contact-form-top {
    padding-top: 7rem;
    background: var(--bg-white);
    margin-top: 0;
}

.contact-form-top .section-header {
    margin-bottom: 3rem;
}

.contact-form-top .title-divider {
    margin: 0 auto 1.25rem;
}

@media (max-width: 768px) {
    .contact-form-top {
        padding-top: 5.5rem;
    }

    .contact-form-top .section-header {
        margin-bottom: 2rem;
    }
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-card {
    background: var(--bg-light);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition-smooth);
    border: 2px solid var(--border-color);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.contact-card-highlight {
    background: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

.contact-card-highlight .contact-card-title,
.contact-card-highlight .contact-card-text,
.contact-card-highlight .contact-card-label {
    color: var(--text-light);
}

.contact-card-highlight .contact-card-icon {
    color: var(--text-light);
}

.contact-card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

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

.contact-card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-card-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.contact-card-text {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.contact-card-phone {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-top: 0.5rem;
    transition: var(--transition-smooth);
}

.contact-card-phone:hover {
    transform: scale(1.05);
}

.contact-card-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 1rem;
    transition: var(--transition-smooth);
}

.contact-card-link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

.contact-card-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Contact Team Section */
.contact-team {
    margin-bottom: 4rem;
}

.contact-team-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 2.5rem;
    font-weight: 600;
}

.contact-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-team-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    transition: var(--transition-smooth);
    border: 2px solid var(--border-color);
}

.contact-team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.contact-team-info {
    text-align: left;
}

.contact-team-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.contact-team-role {
    color: var(--primary-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.contact-team-phone {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-white);
    border-radius: 50px;
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition-smooth);
    border: 2px solid var(--border-color);
    white-space: nowrap;
}

.contact-team-phone:hover {
    background: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.contact-team-phone svg {
    color: var(--primary-color);
    transition: var(--transition-smooth);
}

.contact-team-phone:hover svg {
    color: var(--text-light);
}

/* Contact Map */
.contact-map-wrapper {
    margin-top: 4rem;
}

.contact-map-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
}

.contact-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-map iframe {
    filter: grayscale(20%);
}

/* Contact Form */
.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto 4rem;
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-color);
    transition: var(--transition-smooth);
}

.contact-form-wrapper:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-group-radio {
    gap: 1rem;
}

.form-label {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.required {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Radio Button Styling */
.radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}

.radio-option:hover {
    border-color: var(--primary-light);
    background: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-custom {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    position: relative;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.radio-option input[type="radio"]:checked ~ .radio-custom {
    border-color: var(--primary-color);
}

.radio-option input[type="radio"]:checked ~ .radio-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.radio-option input[type="radio"]:checked ~ .radio-label {
    color: var(--primary-color);
    font-weight: 600;
}

.radio-label {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition-smooth);
}

/* Input and Textarea Styling */
.form-input {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition-smooth);
    outline: none;
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(184, 147, 95, 0.1);
}

.form-input:hover {
    border-color: var(--primary-light);
}

.form-input::placeholder {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: var(--font-body);
}

/* Submit Button */
.form-submit {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1rem;
    padding: 1.25rem 3rem;
    align-self: flex-start;
    transition: var(--transition-smooth);
}

.form-submit svg {
    transition: var(--transition-smooth);
}

.form-submit:hover svg {
    transform: translateX(5px);
}

/* Form Validation States */
.form-input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

.form-input:valid:not(:placeholder-shown) {
    border-color: #10b981;
}

.form-input.input-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2;
}

/* Form Error Messages */
.form-error {
    display: none;
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

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

/* Form Success/Error Messages */
.form-message {
    display: none;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    animation: fadeInUp 0.5s ease;
}

.form-message svg {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.form-message h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-message p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.form-message-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid #10b981;
    color: #065f46;
}

.form-message-success svg {
    color: #10b981;
}

.form-message-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #ef4444;
    color: #991b1b;
}

.form-message-error svg {
    color: #ef4444;
}

/* Submit Button Loading State */
.submit-loader {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

.spinner {
    animation: spin 1s linear infinite;
}

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

.form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-submit:disabled:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(184, 147, 95, 0.3);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.footer-logo {
    font-size: 2rem;
    letter-spacing: 3px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-smooth);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

section {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

section.contact-form-top {
    opacity: 1;
    transform: translateY(0);
}

section.animate {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Large Desktop */
@media (max-width: 1400px) {
    .gallery-card-large {
        min-height: 450px;
    }

    .gallery-card-tall {
        min-height: 450px;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    :root {
        --section-padding: 5rem 0;
    }

    .hero-title {
        font-size: 4rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

/* Tablet */
@media (max-width: 992px) {
    :root {
        --section-padding: 4rem 0;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        order: -1;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-magazine {
        grid-template-columns: repeat(6, 1fr);
    }

    .gallery-card-large,
    .gallery-card-medium,
    .gallery-card-wide {
        grid-column: span 6;
    }

    .gallery-card-small {
        grid-column: span 3;
    }

    .gallery-card-tall {
        grid-column: span 6;
        min-height: 350px;
    }

    .contact-team-card {
        flex-direction: column;
        text-align: center;
    }

    .contact-team-info {
        text-align: center;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 0;
        --container-padding: 0 1.25rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: var(--secondary-color);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition-smooth);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: var(--text-light);
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .logo-img {
        height: 50px;
        max-width: 180px;
    }

    .navbar.scrolled .logo-img {
        height: 45px;
    }

    .hero {
        background-position: 70% center;
        min-height: 90vh;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .hero-scroll-indicator {
        bottom: 2rem;
        font-size: 0.75rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-title {
        font-size: 1.9rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery-magazine {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .gallery-card-large,
    .gallery-card-medium,
    .gallery-card-small,
    .gallery-card-wide,
    .gallery-card-tall {
        grid-column: span 1;
        min-height: 320px;
    }

    .gallery-card-content {
        padding: 1.5rem;
    }

    .gallery-card-title {
        font-size: 1.3rem;
    }

    .gallery-divider {
        gap: 1rem;
        margin: 2rem 0;
    }

    .gallery-divider-text {
        font-size: 1.5rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-team-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }

    .radio-group {
        grid-template-columns: 1fr;
    }

    .form-submit {
        width: 100%;
        align-self: stretch;
    }

    .form-message {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .form-message svg {
        margin-top: 0;
    }

    .form-message h3 {
        font-size: 1.25rem;
    }

    .form-message p {
        font-size: 0.95rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-links a:hover,
    .footer-contact a:hover {
        padding-left: 0;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .logo-img {
        height: 45px;
        max-width: 160px;
    }

    .navbar.scrolled .logo-img {
        height: 40px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 0.4rem 1.2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .gallery-card-large,
    .gallery-card-medium,
    .gallery-card-small,
    .gallery-card-wide,
    .gallery-card-tall {
        min-height: 280px;
    }

    .contact-card {
        padding: 2rem 1.5rem;
    }

    .contact-team-phone {
        font-size: 0.9rem;
        padding: 0.65rem 1.2rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .navbar,
    .mobile-menu-toggle,
    .btn,
    .hero-scroll-indicator {
        display: none;
    }

    body {
        color: #000;
    }

    section {
        page-break-inside: avoid;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

a:focus,
button:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

/* ============================================
   FLOATING WHATSAPP BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.whatsapp-float:hover {
    background-color: #20BA5A;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 34px;
    height: 34px;
    display: block;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #9a7a4e;
        --text-gray: #4a4a4a;
    }
}
