/* Saunat Ltd - Main Stylesheet */
/* Modern Corporate Design with Professional Colors */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        "Inter",
        "Roboto",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
}

/* Color Variables */
:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #3b82f6;
    --accent-gray: #6b7280;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --border-gray: #e5e7eb;
    --success-green: #10b981;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 0.5em;
}

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(--text-light);
}

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

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

/* Layout Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 4rem 0;
}

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

/* Field Error */
.field-error {
    font-size: 0.8rem;
    color: var(--register-danger);
    margin-top: 4px;
    display: none;
}

.field-error.show {
    display: block;
}

/* ============================================
PHONE INPUT & COUNTRY SELECTOR STYLES
============================================ */

/* ============================================
PHONE INPUT WRAPPER
============================================ */
.phone-input-group {
    margin-bottom: 20px;
}

.phone-input-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--morph-text, #0a0a0f);
    font-size: 0.9rem;
}

.phone-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: stretch;
    position: relative;
}

/* ============================================
COUNTRY SELECTOR
============================================ */
.country-select {
    padding: 12px 8px 12px 12px;
    border: 2px solid var(--morph-border, #e5e5eb);
    border-radius: 12px;
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    background: var(--morph-surface, #ffffff);
    min-width: 100px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6B76' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    color: var(--morph-text, #0a0a0f);
}

.country-select:hover {
    border-color: #6c63ff;
}

.country-select:focus {
    outline: none;
    border-color: #6c63ff;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.08);
}

.country-select optgroup {
    font-weight: 600;
    color: var(--morph-text, #0a0a0f);
    padding: 4px 0;
}

.country-select option {
    font-weight: 400;
    padding: 4px 8px;
}

.country-select option:hover {
    background: rgba(108, 99, 255, 0.08);
}

/* ============================================
   PHONE INPUT
   ============================================ */
.phone-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--morph-border, #e5e5eb);
    border-radius: 12px;
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    background: var(--morph-surface, #ffffff);
    transition: all 0.2s ease;
    color: var(--morph-text, #0a0a0f);
    min-width: 0;
}

.phone-input::placeholder {
    color: var(--morph-text-light, #6b6b76);
    font-weight: 400;
}

.phone-input:hover {
    border-color: #6c63ff;
}

.phone-input:focus {
    outline: none;
    border-color: #6c63ff;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.08);
}

/* Header Styles */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.nav {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.nav-link:hover {
    background-color: var(--light-gray);
    color: var(--primary-blue);
}

/* Hero Section */
/*.hero {
    background: linear-gradient(
        135deg,
        var(--primary-blue) 0%,
        var(--secondary-blue) 100%
    );
    color: var(--white);
    padding: 8rem 0 4rem;
    text-align: center;
    margin-top: 80px;
}*/

/*.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}*/

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--light-gray);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background-color: var(--primary-blue);
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

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

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

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

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

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

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

/* Footer */
.footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

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

.footer-section a:hover {
    color: var(--white);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        gap: 1rem;
    }

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

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

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

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .section {
        padding: 3rem 0;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 0.75rem;
    }

    .hero {
        padding: 6rem 0 3rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 2rem;
}

.hidden {
    display: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    max-width: 400px;
}

.notification-content {
    background: white;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid;
}

.notification-success {
    border-left-color: #10b981;
}

.notification-error {
    border-left-color: #ef4444;
}

.notification-success i {
    color: #10b981;
}

.notification-error i {
    color: #ef4444;
}

.notification-close {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    padding: 0.25rem;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Form Validation Styles */
.form-input-error {
    border-color: #ef4444 !important;
}

.form-error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Loading State */
.fa-spinner {
    animation: spin 1s linear infinite;
}

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

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
/* Service photography and accessible form layout — regenerated edition. */
.hero-visual {
    isolation: isolate;
    background: #111b31;
    padding: clamp(5rem, 9vw, 8rem) 0 !important;
    min-height: 580px;
    display: flex;
    align-items: center;
}
.hero-visual::before {
    display: none !important;
}
.hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(8, 17, 34, 0.83) 0%,
        rgba(8, 17, 34, 0.6) 45%,
        rgba(8, 17, 34, 0.08) 100%
    );
    pointer-events: none;
}
.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-content {
    width: 100%;
    position: relative;
    z-index: 2;
}
.hero-visual .hero-eyebrow {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 1.4rem;
}
.hero-visual h1 {
    max-width: 770px;
    font-size: clamp(2.15rem, 4.25vw, 3.5rem) !important;
    line-height: 1.14;
    text-wrap: balance;
}
.hero-visual p:not(.hero-eyebrow) {
    max-width: 650px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    color: #f3f6fb !important;
}
.hero-visual .btn {
    min-height: 48px;
}
.hero-visual .btn-outline-light {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.7);
}
.hero-visual .btn-gradient {
    background: #fff;
    color: #172b54;
}
.hero-visual .btn-gradient:hover {
    background: #e8eef9;
}
.brand-logo {
    max-width: 100%;
    height: auto;
}
.brand-fallback {
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #1e3a8a;
}
[hidden] {
    display: none !important;
}
html {
    scroll-padding-top: 115px;
}
.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    min-width: 360px;
    padding: clamp(0.85rem, 2vw, 1.8rem);
}
.contact-form .form-group {
    min-width: 0;
    margin: 0;
}
.contact-form .form-full {
    grid-column: 1 / -1;
}
.contact-form .form-intro {
    margin: 0 0 0.25rem;
    color: #18263c;
    font-size: 0.875rem;
}
.contact-form .form-label {
    font-size: 0.875rem;
}
.contact-form .form-input,
.contact-form .phone-input,
.contact-form .country-select,
.contact-form .form-textarea {
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
    font-size: 0.85rem;
    padding: 0.85rem;
    min-height: 30px;
    width: 100%;
    color: #18263c;
}
.contact-form .country-select {
    flex: 0 1 45%;
    min-width: 0;
    padding-right: 20px;
}
.contact-form .phone-input {
    flex: 1 1 55%;
    width: 0;
}
.contact-form .form-hint {
    display: block;
    color: #53627a;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}
.contact-form .form-input:focus,
.contact-form .phone-input:focus,
.contact-form .country-select:focus,
.contact-form .form-textarea:focus {
    outline: 3px solid rgba(59, 130, 246, 0.3);
    outline-offset: 2px;
    border-color: #2563eb;
}
.contact-form .form-input-error {
    border-color: #b42318 !important;
}
.contact-form .form-error-message {
    color: #b42318;
}
.notification {
    max-width: min(440px, calc(100vw - 32px));
    right: 16px;
    top: 16px;
}
.notification-content {
    overflow-wrap: anywhere;
}
.notification-success .notification-content {
    border-left-color: #15803d;
}
.notification-error .notification-content {
    border-left-color: #b42318;
}
.notification-close {
    font-size: 1.5rem;
    min-width: 32px;
}
/* Content remains visible if the optional animation CDN is unavailable. */
html:not(.aos-ready) [data-aos] {
    opacity: 1 !important;
    transform: none !important;
}
@media (max-width: 768px) {
    .hero-visual {
        min-height: 590px;
    }
    .hero-image {
        object-position: 64% center;
    }
    .hero-visual::after {
        background: rgba(8, 17, 34, 0.66);
    }
    .hero-visual .hero-eyebrow {
        font-size: 0.72rem;
    }
    .hero-visual p:not(.hero-eyebrow) {
        font-size: 1.05rem !important;
    }
    .header .header-content {
        padding: 0.8rem 0;
        gap: 0.7rem;
    }
    .header .nav {
        gap: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    .header .logo {
        max-width: 220px;
    }
    #contact .container > div[style*="display: grid"] {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 2rem !important;
    }
    .contact-form {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 420px) {
    .phone-input-wrapper {
        flex-direction: column;
    }
    .contact-form .country-select,
    .contact-form .phone-input {
        width: 100%;
        flex: auto;
    }
    .hero-visual .btn {
        width: 100%;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
/* Keep the primary heading readable from the first paint. */
.hero-visual .fade-in-up {
    animation: none;
}

/* Keep the privacy notice beside the action on every service form. */
.contact-form .form-privacy-notice {
    margin: 0.25rem 0 0.75rem;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.6;
}
.contact-form .form-privacy-notice a {
    color: #1d4ed8;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}
.contact-form .form-privacy-notice a:focus-visible {
    outline: 2px solid #1d4ed8;
    outline-offset: 3px;
}
