* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #7a8471;
    --secondary-green: #6b7560;
    --tertiary-green: #5a6450;
    --text-white: #ffffff;
    --text-cream: #f5f3f0;
    --button-cream: #e8e4dc;
    --text-dark: #2c2c2c;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: rgb(250, 239, 224);
    background-color: var(--primary-green);
}

html,
body {
    margin: 0;
    overflow-x: hidden;
}

h1,
h2 {
    font-family: 'Nunito Sans', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    font-style: normal;
    color: rgb(250, 239, 224);
    font-kerning: none;
    text-decoration: none;
    line-height: 0.95;
    letter-spacing: -0.075em;
}


/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(122, 132, 113, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

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

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.7;
}

/* Hero */
.hero {
    padding: 3rem 0;
    display: flex;
    align-items: center;
    background: var(--primary-green);
    width: 100%;
}

.hero-content {
    max-width: none;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: center;
    width: 100%;
}

.hero-text h1 {
    font-size: clamp(32px, 8vw, 80px);
    margin-bottom: 2rem;
    line-height: 1.1;
}

.hero-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
    opacity: 0.9;
}

.hero-text .tagline {
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.cta-button {
    display: inline-block;
    border: 2px solid var(--text-white);
    color: var(--text-white);
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    background: transparent;
}

.cta-button:hover {
    background: var(--text-white);
    color: var(--primary-green);
}

.hero-image {
    height: 60vh;
    background-image: url('../img/sagebirmingham.svg');
    background-size: cover;
    background-position: center;
    border-radius: 0;
    width: 100%;
}

/* About */
.about {
    padding: 2rem 3rem;
    display: flex;
    align-items: center;
    background: var(--secondary-green);
}

.about-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.about h2 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 4rem;
}

.about-image {
    height: 60vh;
    width: 100%;
    background-image: url('../img/sagetramstop.webp');
    background-size: cover;
    background-position: center 25%;
    border-radius: 0;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.about-text p {
    font-weight: 600;
    font-style: normal;
    color: rgb(250, 239, 224);
    font-kerning: none;
    text-decoration: none;
}

.about-button {
    display: inline-block;
    border: 2px solid rgb(250, 239, 224);
    color: rgb(250, 239, 224);
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    background: transparent;
    margin-top: 2rem;
}

.about-button:hover {
    background: rgb(250, 239, 224);
    color: var(--primary-green);
}

/* Vision */
.vision {
    padding: 3rem 0;
    display: flex;
    align-items: center;
    background-image: url('https://images.unsplash.com/photo-1469474968028-56623f02e42e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}

.vision::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.vision-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    padding: 0 3rem;
    position: relative;
    z-index: 1;
}

.vision h2 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.vision p {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Services */
.services {
    padding: 2rem 3rem;
    background: var(--primary-green);
}

.services-content {
    max-width: 1400px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.service-card {
    border: 3px solid rgb(250, 239, 224);
    padding: 2rem;
    background: transparent;
    transition: all 0.3s ease;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.service-card h3 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: rgb(250, 239, 224);
    border-bottom: 2px solid rgb(250, 239, 224);
    padding-bottom: 1rem;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.pricing-button {
    display: block;
    background: var(--button-cream);
    color: var(--text-dark);
    padding: 1.2rem 3rem;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin: 2.5rem auto 0;
    max-width: 300px;
    width: fit-content;
}

/* Desktop centering for pricing button */
@media (min-width: 969px) {
    .services-content {
        text-align: center;
    }

    .pricing-button {
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
}

.pricing-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Testimonials */
.testimonials {
    padding: 2rem 3rem;
    background: var(--secondary-green);
}

.testimonials-content {
    max-width: 1400px;
    margin: 0 auto;
}

.testimonials h2 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 2.5rem;
    text-align: center;
}

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

.testimonial-card {
    border: 3px solid rgb(250, 239, 224);
    padding: 3rem 2.5rem;
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.quote-icon {
    font-size: 5rem;
    line-height: 1;
    color: rgba(250, 239, 224, 0.3);
    font-family: Georgia, serif;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-style: italic;
}

.testimonial-author {
    border-top: 2px solid rgba(250, 239, 224, 0.3);
    padding-top: 1.5rem;
}

.author-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.author-company {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Portfolio */
.portfolio {
    padding: 2rem 3rem;
    background: var(--primary-green);
}

.portfolio-content {
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio h2 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-align: center;
}

.portfolio-intro {
    text-align: center;
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.portfolio-item {
    overflow: hidden;
    border: 3px solid rgb(250, 239, 224);
    transition: all 0.3s ease;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.portfolio-image {
    height: 300px;
    background-size: cover;
    background-position: center;
    transition: all 0.5s ease;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.05);
}

.portfolio-info {
    padding: 2rem;
    background: var(--secondary-green);
}

.portfolio-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: rgb(250, 239, 224);
}

.portfolio-info p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.portfolio-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(250, 239, 224, 0.2);
    border: 1px solid rgb(250, 239, 224);
    font-size: 0.85rem;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

/* Contact */
.contact {
    padding: 2rem 3rem;
    background: var(--tertiary-green);
}

.contact-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

/* Contact Form */
.contact-form-wrapper h2 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--text-cream);
}

.form-description {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

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

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-cream);
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.9rem 1rem;
    border: 2px solid rgba(250, 239, 224, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-cream);
    font-size: 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-cream);
    background: rgba(255, 255, 255, 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgb(250, 239, 224)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    padding-right: 3rem;
}

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

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--button-cream);
}

.submit-button {
    padding: 1rem 2.5rem;
    background: var(--button-cream);
    color: var(--text-dark);
    border: none;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
    margin-top: 1rem;
    text-align: center;
    display: none;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.2);
    border: 2px solid rgba(76, 175, 80, 0.5);
    color: #4caf50;
    display: block;
}

.form-message.error {
    background: rgba(244, 67, 54, 0.2);
    border: 2px solid rgba(244, 67, 54, 0.5);
    color: #f44336;
    display: block;
}

/* Contact Info */
.contact-info .logo {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
}

.logo-icon {
    width: 400px;
    height: 400px;
    background-image: url('../img/sagestudios.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 1rem;
}

.logo-text {
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-white);
}

.contact-info h2 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: var(--text-cream);
}

.contact-details {
    margin-bottom: 3rem;
}

.contact-details p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
    font-style: normal;
    color: rgb(250, 239, 224);
    font-kerning: none;
    text-decoration: none;
}

.contact-link {
    color: rgb(250, 239, 224) !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.contact-link:hover {
    border-bottom: 1px solid rgb(250, 239, 224);
}

.enquiry-button {
    display: inline-block;
    background: rgba(122, 132, 113, 0.8);
    color: var(--text-white);
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin-bottom: 4rem;
}

.enquiry-button:hover {
    background: rgba(122, 132, 113, 1);
}

.socials {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(122, 132, 113, 0.3);
    border-radius: 12px;
    text-align: center;
}

.socials h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: rgb(250, 239, 224);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(250, 239, 224);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 400;
}

.social-icon {
    width: 30px;
    height: 30px;
    margin-right: 1rem;
    background: rgb(250, 239, 224);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-mockup {
    background-image: url('https://images.unsplash.com/photo-1556656793-08538906a9f8?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=400&q=80');
    background-size: cover;
    background-position: center;
    height: 500px;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.portfolio-button {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(122, 132, 113, 0.9);
    color: var(--text-white);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    font-weight: 500;
    border-radius: 25px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}


/* Mobile */
@media (max-width: 968px) {
    .nav-links {
        display: flex;
    }

    .hero-content,
    .about-grid,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-text {
        text-align: center;
        padding: 2rem;
    }

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

    .about h2,
    .vision h2 {
        font-size: 3rem;
    }

    nav {
        padding: 0 2rem;
    }

    .about,
    .services,
    .contact {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .about-grid {
        justify-items: center;
    }

    .about-text {
        max-width: 36ch;
        text-align: center;
        margin: 0 auto;
    }

    .about-text p {
        font-size: 1.25rem;
        line-height: 1.4;
        letter-spacing: -0.01em;
        overflow-wrap: break-word;
        word-break: normal;
        hyphens: none;
    }

    .about-button {
        display: block;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .enquiry-button {
        display: inline-block;
        margin-left: auto;
        margin-right: auto;
    }

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

    .contact-info .logo {
        justify-content: center;
    }

    .logo-icon {
        width: 200px;
        height: 200px;
    }

    .pricing-button {
        margin-left: auto;
        margin-right: auto;
    }

    .vision {
        background-attachment: scroll;
    }

    /* Contact form mobile */
    .contact-form-wrapper h2 {
        font-size: 2.5rem;
    }

    .contact-content {
        gap: 3rem;
    }

    /* Testimonials mobile */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonials h2 {
        font-size: 3rem;
    }

    /* Portfolio mobile */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio h2 {
        font-size: 3rem;
    }
}

@media (max-width: 640px) {

    .about h2,
    .vision h2 {
        font-size: 2.5rem;
    }

    .about-text {
        max-width: 34ch;
        text-align: center;
    }

    .about-grid {
        justify-items: center;
    }

    .about-button {
        display: block;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .enquiry-button {
        margin-left: auto;
        margin-right: auto;
    }

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

    .contact-info .logo {
        justify-content: center;
    }

    .pricing-button {
        margin-left: auto;
        margin-right: auto;
    }

    .about-text p {
        font-size: 1.2rem;
        overflow-wrap: break-word;
        word-break: normal;
        hyphens: none;
    }

    .contact-info h2 {
        font-size: 2.5rem;
    }

    .vision {
        background-attachment: scroll;
    }

    /* Portfolio small mobile */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio h2,
    .testimonials h2 {
        font-size: 2.5rem;
    }
}

/* Carousel Styles */
.services-carousel-wrapper,
.testimonials-carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(250, 239, 224, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(250, 239, 224, 0.6);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: rgb(250, 239, 224);
    width: 30px;
    border-radius: 5px;
}

/* Hide dots on desktop */
@media (min-width: 969px) {
    .carousel-dots {
        display: none;
    }
}


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

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