/* ============================================
   Dr. Alexander Sutton Joann - Orthopedic Surgery
   Website Styles - Inspired by garthdavismd.com
   ============================================ */

/* ===== CSS VARIABLES ===== */
:root {
    --color-dark-olive: #3a3a1a;
    --color-dark-green: #4a4a28;
    --color-charcoal: #2c2c2c;
    --color-dark-bg: #1e1e1e;
    --color-gold: #c9b96a;
    --color-gold-border: #8a7e3b;
    --color-white: #ffffff;
    --color-off-white: #f5f5f0;
    --color-light-gray: #e8e8e3;
    --color-text-light: #d4d4c8;
    --color-text-dark: #333333;
    --color-overlay: rgba(30, 30, 30, 0.6);

    --font-heading: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --max-width: 1200px;
    --header-height: 80px;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    height: var(--header-height);
}

.site-header.scrolled {
    background: rgba(30, 30, 30, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-name {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--color-white);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.logo-tagline {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--color-text-light);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-white);
    letter-spacing: 0.3px;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: width 0.3s ease;
}

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

.nav-cta {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-white);
    background: transparent;
    border: 1px solid var(--color-gold-border);
    padding: 10px 24px;
    border-radius: 2px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.nav-cta:hover {
    background: var(--color-gold-border);
    color: var(--color-white);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1003;
    position: relative;
}

.hamburger-line {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--color-white);
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 2px;
    transform-origin: center;
}

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

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

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 30, 30, 0.98);
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.mobile-menu-content {
    text-align: center;
}

.mobile-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 48px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-nav-links a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-white);
    transition: color 0.3s ease;
}

.mobile-nav-links a:hover {
    color: var(--color-gold);
}

.mobile-cta {
    display: inline-block;
    margin-top: 16px;
    border: 1px solid var(--color-gold-border);
    padding: 12px 32px !important;
    font-size: 1rem !important;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
            rgba(30, 35, 40, 0.65) 0%,
            rgba(35, 40, 45, 0.55) 50%,
            rgba(40, 45, 50, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle-top {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 12px;
}

.hero-name {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 6.5rem);
    font-weight: 400;
    color: var(--color-white);
    line-height: 1.05;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.hero-subtitle-bottom {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--color-text-light);
}

/* ===== MEET THE DOCTOR ===== */
.meet-doctor {
    background: var(--color-charcoal);
    padding: 80px 0;
    overflow: hidden;
}

.meet-doctor-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 60px;
}

.meet-doctor-image {
    flex: 0 0 320px;
    position: relative;
}

.meet-doctor-image img {
    width: 320px;
    height: 400px;
    object-fit: cover;
    object-position: top center;
    border-radius: 4px;
    filter: grayscale(20%);
}

.meet-doctor-text {
    flex: 1;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 400;
    color: var(--color-white);
    margin-bottom: 24px;
    line-height: 1.2;
}

.meet-subtitle {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--color-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.meet-doctor-text p {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    color: var(--color-text-light);
    line-height: 1.8;
}

/* ===== SERVICES SECTION ===== */
.services {
    background: var(--color-off-white);
    padding: 100px 0;
}

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

.services-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 400;
    font-style: italic;
    color: var(--color-text-dark);
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.4;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border: 2px solid var(--color-gold-border);
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.service-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-card-bg {
    transform: scale(1.05);
}

.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.55) 50%,
            rgba(0, 0, 0, 0.75) 100%);
    transition: background 0.4s ease;
}

.service-card:hover .service-card-overlay {
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.4) 0%,
            rgba(0, 0, 0, 0.65) 50%,
            rgba(0, 0, 0, 0.8) 100%);
}

.service-card-content {
    position: relative;
    z-index: 2;
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 500;
    font-style: italic;
    color: var(--color-white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.service-card-text {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: auto;
}

.service-card-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-white);
    margin-top: 28px;
    display: inline-block;
    transition: color 0.3s ease;
}

.service-card-link:hover {
    color: var(--color-gold);
}

/* ===== ABOUT / BIO SECTION ===== */
.about {
    background: var(--color-dark-olive);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/hero-skyline.png') center/cover no-repeat;
    opacity: 0.05;
    filter: blur(3px);
}

.about-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: flex-start;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.about-text {
    flex: 1;
}

.about-heading {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 400;
    color: var(--color-white);
    margin-bottom: 32px;
    line-height: 1.25;
}

.about-text p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-image {
    flex: 0 0 400px;
    position: relative;
}

.about-image img {
    width: 400px;
    height: 500px;
    object-fit: cover;
    object-position: top center;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

/* ===== BOOKING BANNER ===== */
.booking-banner {
    position: relative;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.booking-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.booking-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 35, 40, 0.5);
}

.booking-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.booking-banner-heading {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 400;
    font-style: italic;
    color: var(--color-white);
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: var(--color-white);
    padding: 80px 0 100px;
}

.contact-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-heading {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 400;
    font-style: italic;
    color: var(--color-dark-olive);
    margin-bottom: 28px;
}

.contact-subheading {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 24px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--color-text-dark);
}

.contact-dot {
    width: 12px;
    height: 12px;
    background: var(--color-dark-olive);
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-address {
    margin-left: 24px;
    margin-bottom: 24px;
    font-size: 0.95rem;
    color: var(--color-text-dark);
    line-height: 1.7;
}

.contact-address a {
    color: var(--color-dark-olive);
    text-decoration: underline;
}

.contact-address a:hover {
    color: var(--color-gold-border);
}

/* Contact Form */
.form-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-dark-olive);
    margin-bottom: 28px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 12px 16px;
    border: 1px solid #d1d1c7;
    border-radius: 4px;
    background: var(--color-white);
    color: var(--color-text-dark);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-gold-border);
    box-shadow: 0 0 0 3px rgba(138, 126, 59, 0.15);
}

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

.form-consent {
    margin-top: 4px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.78rem;
    color: #666;
    line-height: 1.5;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--color-dark-olive);
}

.form-submit {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white);
    background: var(--color-dark-olive);
    border: none;
    padding: 14px 48px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    letter-spacing: 0.5px;
}

.form-submit:hover {
    background: var(--color-dark-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(58, 58, 26, 0.3);
}

.form-legal {
    font-size: 0.78rem;
    color: #999;
}

.form-legal a {
    color: var(--color-dark-olive);
    text-decoration: underline;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--color-dark-bg);
    padding: 40px 0;
    text-align: center;
}

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

.footer-text {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 10px;
}

.footer-links {
    font-size: 0.8rem;
}

.footer-links a {
    color: #888;
    text-decoration: underline;
    transition: color 0.3s ease;
}

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

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-container {
        flex-direction: column;
    }

    .about-image {
        flex: none;
        width: 100%;
    }

    .about-image img {
        width: 100%;
        max-width: 500px;
        height: 400px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-container {
        padding: 0 20px;
    }

    .hero {
        min-height: 500px;
        max-height: 700px;
    }

    .hero-subtitle-top {
        font-size: 0.75rem;
        letter-spacing: 3px;
    }

    .hero-subtitle-bottom {
        font-size: 0.7rem;
        letter-spacing: 4px;
    }

    .meet-doctor-container {
        flex-direction: column;
        padding: 0 20px;
        text-align: center;
    }

    .meet-doctor-image {
        flex: none;
    }

    .meet-doctor-image img {
        width: 250px;
        height: 320px;
        margin: 0 auto;
    }

    .services {
        padding: 60px 0;
    }

    .services-container {
        padding: 0 20px;
    }

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

    .service-card {
        min-height: 380px;
    }

    .about {
        padding: 60px 0;
    }

    .about-container {
        padding: 0 20px;
    }

    .about-image img {
        max-width: 100%;
        height: 350px;
    }

    .booking-banner {
        height: 280px;
    }

    .contact {
        padding: 60px 0 80px;
    }

    .contact-container {
        padding: 0 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-submit {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo-name {
        font-size: 1.3rem;
    }

    .logo-tagline {
        font-size: 0.6rem;
        letter-spacing: 1.5px;
    }

    .hero-name {
        font-size: 2.8rem;
    }

    .services-heading {
        font-size: 1.5rem;
    }

    .booking-banner-heading {
        font-size: 2rem;
    }
}