/* GestSeg Clinic - Main Stylesheet */

:root {
    /* Color Palette */
    --primary-color: #114b2b;
    --primary-hover: #0a351d;
    --secondary-color: #f4f8f5;
    --text-dark: #1a1a1a;
    --text-muted: #6c757d;
    --bg-light: #f8faf9;

    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.text-dark {
    color: var(--text-dark) !important;
}

.font-serif {
    font-family: var(--font-serif);
}

.fs-sm {
    font-size: 0.875rem;
}

.letter-spacing-1 {
    letter-spacing: 0.5px;
}

.line-height-tight {
    line-height: 1.1;
}

.line-height-md {
    line-height: 1.6;
}

/* Buttons */
.btn {
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(17, 75, 43, 0.2);
}

.btn-outline-dark {
    border-color: #e5e5e5;
    color: var(--text-dark);
}

.btn-outline-dark:hover {
    background-color: #f8f9fa;
    border-color: #d0d0d0;
    color: var(--text-dark);
    transform: translateY(-2px);
}

/* Navbar */
.navbar-brand .logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-size: 0.85rem;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    min-height: 700px;
    padding-bottom: 120px;
    /* Space for the overlapping login box */
}

.hero-bg-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-carousel-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    position: relative;
}

@media (min-width: 992px) {
    .hero-carousel-bg::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to right, #f8faf9 0%, #f8faf9 15%, rgba(248, 250, 249, 0.4) 25%, rgba(248, 250, 249, 0) 35%);
        pointer-events: none;
        z-index: 1;
    }
}

.hero-text-col {
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    .hero-text-col-flex {
        min-height: 480px;
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        background: var(--bg-light);
        min-height: auto;
        padding-bottom: 100px;
    }

    .hero-bg-image {
        display: none;
    }
}

/* Login Box (Overlapping) */
.z-index-1 {
    z-index: 10;
}

.login-box {
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.login-input {
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    transition: border-color 0.3s ease;
}

.login-input:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(17, 75, 43, 0.1);
}

.login-input .form-control {
    border: none;
    background: transparent;
}

.login-input .form-control:focus {
    box-shadow: none;
    background: transparent;
}

.login-input .input-group-text {
    border: none;
    background: transparent;
}

/* Features */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    border-color: rgba(17, 75, 43, 0.2) !important;
}

.icon-circle {
    width: 64px;
    height: 64px;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
}

.feature-card:hover .icon-circle {
    background-color: var(--primary-color);
    color: #ffffff !important;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Footer */
.footer-link {
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-link:hover {
    color: var(--primary-color) !important;
    padding-left: 4px;
}

.footer-bottom-link {
    transition: opacity 0.2s ease;
}

.footer-bottom-link:hover {
    opacity: 1;
    color: #ffffff !important;
}

/* Contact Form Premium Styling (Light Card Version) */
.contact-input-group {
    position: relative;
    width: 100%;
}

.contact-field {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    color: var(--text-dark) !important;
    border-radius: 12px !important;
    padding: 0.8rem 1rem 0.8rem 2.8rem !important; /* Spacing for prefix icons */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-size: 0.95rem;
}

.contact-field::placeholder {
    color: #a0aec0 !important;
}

.contact-field:focus {
    background: #ffffff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(17, 75, 43, 0.1) !important;
    outline: none;
}

.contact-input-group-textarea .contact-input-icon {
    top: 1.2rem;
    transform: none;
}

.contact-field-textarea {
    padding-left: 2.8rem !important;
    resize: none; /* disables resize to keep it neat */
}

.contact-input-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 1.15rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.contact-field:focus + .contact-input-icon {
    color: var(--primary-color);
}

/* Premium Button */
.btn-contact-submit {
    background-color: var(--primary-color) !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    padding: 0.85rem 2.5rem !important;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 15px rgba(17, 75, 43, 0.15) !important;
}

.btn-contact-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(17, 75, 43, 0.3) !important;
    background-color: var(--primary-hover) !important;
}

.btn-contact-submit:active {
    transform: translateY(-1px);
}