/* Main Styles */

/* Background Pattern */
.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-background);
    z-index: -1;
}

/* Section Defaults */
section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    margin-bottom: var(--spacing-lg);
    text-align: left;
}

/* Header */
.header {
    position: relative;
    width: 100%;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: var(--backdrop-blur);
    border-bottom: 1px solid var(--color-border);
    z-index: var(--z-fixed);
}

.header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    gap: var(--spacing-xs);
}

.header__logo img {
    width: 72px;
    height: 39px;
}

.header__nav {
    display: flex;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-link {
    font-family: var(--font-heading);
    font-size: var(--font-size-h6);
    font-weight: 500;
    color: var(--color-text-secondary);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.nav-link:hover {
    background: var(--color-accent);
    color: var(--color-text-primary);
}

.header__menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: var(--spacing-xs);
}

.header__menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text-secondary);
    border-radius: 1px;
    transition: all var(--transition-normal);
}

/* Hero Section */
.hero {
    min-height: 774px;
    height: 774px;
    position: relative;
    display: flex;
    justify-content: center; 
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 16px;
}

.hero__border {
    position: absolute;
    top: 80px;
    left: 60px;
    width: 1360px;
    height: 694px;
    background-image: url('../assets/images/SVGs/hero-border.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
    pointer-events: none;
}

.hero__content {
    position: relative;
    width: 1360px;
    height: 694px;
    margin-top: 80px;
    margin-left: 40px;
    z-index: 2;
}

.hero__text {
    position: absolute;
    top: 0;
    left: 0px;
    width: 439px;
    z-index: 3;
}

.hero__title {
    margin-bottom: 16px;
    line-height: var(--line-height-h1);
    color: var(--color-text-primary);
}

.hero__description {
    font-weight: 300;
    line-height: var(--line-height-body);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.375em;
}

.hero__image {
    position: absolute;
    top: 32px;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: visible;
    z-index: 3;
}

.hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__contact-card {
    position: absolute;
    bottom: 80px;
    left: 0px;
    width: 393px;
    height: 256px;
    z-index: 4;
    background-image: url('../assets/images/SVGs/hero-contact-card.svg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    border-radius: 0;
    padding: 0;
    overflow: hidden;
    /* Maintain aspect ratio of the SVG (344x163) but scale to fit our dimensions */
    aspect-ratio: 344 / 163;
}

.hero__contact-card::before {
    display: none;
}

.hero__contact-card .card__content {
    position: relative;
    z-index: 1;
    background: transparent;
    /* Respect the SVG shape boundaries with proper padding */
    padding: 40px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.hero__contact-card .card__title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 500;
    line-height: 1.125em;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    position: absolute;
    top: 60px;
    left: 40px;
}

.hero__contact-chips {
    position: absolute;
    bottom: 60px;
    left: 40px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    max-width: calc(70% - 40px); /* Ensure chips don't extend into cut area */
}

.hero__cta-button {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 250px;
    height: 150px;
    cursor: pointer;
    z-index: 1;
    transform-origin: bottom right;
}

.hero__cta-button:hover {
    transform: scale(1.05);
}

.hero__cta-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Hide hero section on mobile */
@media (max-width: 768px) {
    .hero {
        display: none;
    }
}

/* Featured Services */
.featured-services {
    background: transparent;
}

.featured-services__grid {
    align-items: stretch;
}

.service-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card .card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card .card__description {
    flex: 1;
    margin-bottom: var(--spacing-md);
}

/* Service card chips - stacked vertically as per Figma design */
.service-card__chips {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    align-items: flex-start;
}

.service-card__chips .chip {
    width: fit-content;
}

/* Services */
.services {
    background: transparent;
}

.services__accordions {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    gap: 16px;
    margin-bottom: var(--spacing-md);
    width: 100%;
}

.services__disclaimer {
    padding-top: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

/* References */
.references {
    background: transparent;
}

.references__gallery {
    width: 100%;
}

.references__grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--spacing-xs);
    height: 731px;
}

.references__item {
    overflow: hidden;
    border-radius: var(--radius-lg);
    transition: transform var(--transition-normal);
}

.references__item:hover {
    transform: scale(1.02);
}

.references__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.references__item--large {
    height: 100%;
}

.references__column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    width: 266px;
}

.references__item--medium {
    height: 485px;
}

.references__item--small {
    height: 238px;
}

/* Alternative grid layouts for references */
.references__grid--alt1 {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-xs);
    height: 731px;
}

.references__grid--alt2 {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-xs);
    height: 731px;
}

/* About */
.about {
    background: transparent;
}

.about .container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 0 16px;
    max-width: 1440px;
}

.about .section-title {
    margin-bottom: 0;
}

.about__content {
    max-width: 970px;
    width: 100%;
    margin: 0;
}

.about__text {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.375em;
    text-align: left;
    color: var(--color-text-secondary);
}

/* Footer */
.footer {
    background: transparent;
    border-top: 1px solid var(--color-border);
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.footer__info {
    flex: 1;
}

.footer__title {
    margin-bottom: var(--spacing-sm);
}

.footer__details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer__details p {
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    color: var(--color-text-secondary);
}

.footer__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--spacing-lg);
}

.footer__socials {
    display: flex;
    gap: 12px;
}

.social-link {
    transition: transform var(--transition-normal);
}

.social-link:hover {
    transform: scale(1.1);
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.hero--mobile {
    display: none;
}
