:root {
    --primary-color: #27275e;
    --accent-color: #b89c6a;
    --text-color: #000000;
    --background-color: #ffffff;
    --muted-gray: #e6e6e6;
    --light-gray: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
    padding-top: 0;
    margin-top: 0;
}

/* Header Styles */
.header {
    background: var(--primary-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    min-width: 0; /* allow flex children to shrink */
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;      /* NEVER shrink the logo */
    min-width: 0;
    white-space: nowrap; /* keep logo on one line */
}

.logo-img {
    height: 50px;
    width: auto;
    border-radius: 8px;
    flex-shrink: 0;
}

.logo-text {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 1px;
    white-space: nowrap; /* <-- prevents "Inc" from dropping */
    position: relative;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-color) 100%);
    background-size: 0% 100%;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    -webkit-text-fill-color: white;
    transition: background-size 5s cubic-bezier(.4,2,.6,1);
}

.logo-text:hover {
    background-size: 100% 100%;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 1.5rem;       /* slightly tighter default */
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;   /* slightly smaller to buy space */
    font-weight: 500;
    padding: 0.5rem 0.6rem;
    border-radius: 25px;
    transition: color 0.3s;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0.3em;
    width: 0;
    height: 2.5px;
    background: var(--accent-color);
    transition: width 0.3s cubic-bezier(.4,2,.6,1), left 0.3s cubic-bezier(.4,2,.6,1);
    border-radius: 2px;
}

.nav-links a:hover {
    color: white;
}

.nav-links a:hover::after {
    width: 80%;
    left: 10%;
}

/* Dropdown Menu Styles */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown > a {
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary-color);
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    z-index: 1000;
    overflow: hidden;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background-color: rgba(184, 156, 106, 0.2);
    border-left-color: var(--accent-color);
    padding-left: 1.8rem;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}


/* Hero Section */
.hero {
    height: 100vh;
    margin-top: -10px;
    padding-top: 10px;
    background:
        linear-gradient(135deg, rgba(39, 39, 94, 0.9), rgba(184, 156, 106, 0.3)),
        url('../img/landingpage_hero.webp');
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-color) 0%, transparent 50%, var(--accent-color) 100%);
    opacity: 0.1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    max-width: 1000px;
    padding: 0 2rem;
    z-index: 2;
    position: relative;
    text-align: center;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.cta-button {
    background: var(--accent-color);
    color: white;
    padding: 1.2rem 3rem;
    border: 2px solid white;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(184, 156, 106, 0.4);
    animation: fadeInUp 1s ease-out 0.6s both;
    align-self: center;
    margin-top: 1.5rem;
}

.cta-button:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(39, 39, 94, 0.4);
}

@media (max-width: 900px) {
    .cta-button {
        padding: 0.95rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .cta-button {
        padding: 0.85rem 1.6rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 600px) {
    .cta-button {
        padding: 0.75rem 1.3rem;
        font-size: 0.9rem;
        width: fit-content;
    }
}

@media (max-width: 480px) {
    .cta-button {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
        width: fit-content;
    }
}

/* About Section */
.about {
    padding: 6rem 2rem;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content {
    border-radius: 18px;
    padding: 2.2rem 2rem 2rem 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    border: 1.5px solid rgba(39,39,94,0.08);
    transition: box-shadow 0.3s;
}

.about-content:hover {
    box-shadow: 0 16px 48px rgba(39,39,94,0.16);
}

.about-content h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
}

.about-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-image {
    position: relative;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.05);
}

.about-card {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  border-radius: 22px;
  padding: 2.5rem 2rem;
  max-width: 950px;
  margin: 2.5rem auto 2rem auto;
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border: 1.5px solid rgba(39,39,94,0.10);
}
.about-card .about-image {
  flex: 0 0 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-card .about-image img {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(39,39,94,0.13);
  border: 3px solid var(--primary-color);
  background: #fff;
}
.about-card .about-content {
  flex: 1;
}
@media (max-width: 800px) {
  .about-card {
    flex-direction: column;
    padding: 1.2rem 0.7rem;
    gap: 1.2rem;
  }
  .about-card .about-image img {
    width: 120px;
    height: 120px;
  }
}

/* Services Section */
.services {
    padding: 6rem 2rem;
    background: white;
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 4px solid var(--accent-color);
    position: relative;
    overflow: hidden;
    color: var(--primary-color);
    text-decoration: none;
    display: block;
    cursor: pointer;
}

.service-card:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 24px 48px rgba(39,39,94,0.22), 0 1.5px 6px rgba(0,0,0,0.08);
    transform: scale(1.045) translateY(-6px) rotateZ(-0.5deg);
    filter: brightness(1.03) saturate(1.1);
}

.service-card::after {
    content: '→';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    transform: translateX(0);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-color);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.1em;
}

.service-card:hover::after {
    opacity: 1;
    transform: translateX(6px);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: color 0.3s;
}

.service-card:hover i {
    color: var(--accent-color);
}

.service-card:hover h3,
.service-card:hover p {
    color: #fff;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: bold;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* --- Service Card Animation Enhancements --- */
.service-card h3, .service-card p {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover h3, .service-card:hover p {
    transform: translateY(-10px);
    opacity: 0.93;
}

/* Contact Section */
.contact {
    padding: 6rem 2rem;
    color: var(--primary-color);
    background: #ffffff;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .contact-info h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-info h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(184, 156, 106, 0.08);
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .detail-item {
        gap: 1rem;
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {
    .detail-item {
        gap: 0.75rem;
        padding: 1rem;
    }
}

.detail-item:hover {
    background: rgba(184, 156, 106, 0.15);
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(184, 156, 106, 0.15);
}

.detail-item i {
    font-size: 1.8rem;
    color: var(--accent-color);
    width: 40px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .detail-item i {
        font-size: 1.5rem;
        width: 35px;
    }
}

@media (max-width: 480px) {
    .detail-item i {
        font-size: 1.3rem;
        width: 30px;
    }
}

.detail-item div h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .detail-item div h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .detail-item div h3 {
        font-size: 0.95rem;
    }
}

.detail-item div p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .detail-item div p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .detail-item div p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

.contact-map {
    margin-top: 2rem;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(39,39,94,0.10);
}

.contact-form {
    background: white;
    color: var(--primary-color);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(39,39,94,0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1.5px solid #e6e6e6;
    border-radius: 8px;
    background: #f8f9fa;
    color: var(--primary-color);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888;
}

.submit-btn {
    background: var(--accent-color);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: #a08959;
    transform: translateY(-2px);
}

/* Pre-Footer Section */
.pre-footer {
    height: 50vh;
    background: linear-gradient(135deg, rgba(39, 39, 94, 0.85), rgba(184, 156, 106, 0.3)),
                url('../img/footer_starter.webp');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.pre-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-color) 0%, transparent 50%, var(--accent-color) 100%);
    opacity: 0.1;
}

.pre-footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    position: relative;
    max-width: 800px;
    padding: 0 2rem;
}

.pre-footer-content h2 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
}

.pre-footer-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out 0.3s both;
    line-height: 1.6;
}

.pre-footer-btn {
    background: var(--accent-color);
    color: white;
    padding: 1.2rem 3rem;
    border: 2px solid white;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(184, 156, 106, 0.4);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.pre-footer-btn:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(39, 39, 94, 0.4);
}

/* Pre-Footer Responsive */
@media (max-width: 1024px) {
    .pre-footer-content h2 {
        font-size: 3rem;
    }

    .pre-footer-content p {
        font-size: 1.2rem;
    }

    .pre-footer-btn {
        padding: 1.1rem 2.8rem;
        font-size: 1.05rem;
    }
}

@media (max-width: 768px) {
    .pre-footer {
        height: 40vh;
        background-attachment: scroll;
    }

    .pre-footer-content {
        padding: 0 1.5rem;
    }

    .pre-footer-content h2 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .pre-footer-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .pre-footer-btn {
        padding: 0.9rem 1.8rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 600px) {
    .pre-footer {
        height: 38vh;
    }

    .pre-footer-content {
        padding: 0 1rem;
    }

    .pre-footer-content h2 {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }

    .pre-footer-content p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
        line-height: 1.5;
    }

    .pre-footer-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .pre-footer {
        height: 35vh;
    }

    .pre-footer-content {
        padding: 0 0.75rem;
    }

    .pre-footer-content h2 {
        font-size: 1.3rem;
        margin-bottom: 0.7rem;
    }

    .pre-footer-content p {
        font-size: 0.8rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }

    .pre-footer-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.78rem;
    }
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: #fff;
    padding: 60px 0 30px;
    margin-top: 0;
}

.footer .container {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-color);
}

.footer-links a {
    display: block;
    color: #ddd;
    margin-bottom: 12px;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact .contact-item {
    margin-bottom: 15px;
    color: #ddd;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-contact a.contact-item:hover {
    color: var(--accent-color);
    transform: translateX(4px);
}

.footer-contact .contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.footer-contact .contact-icon .fa-phone-alt {
    transform: scaleX(-1);
}

.footer-contact .contact-text {
    flex: 1;
}

.footer-contact .contact-text p {
    word-break: break-all;
    font-size: 1rem;
    line-height: 1.5;
}

.footer-contact .contact-text a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact .contact-text a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}


.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Animations */
.cta-button, .submit-btn {
  transition: transform 0.25s cubic-bezier(.4,2,.6,1), box-shadow 0.25s, background 0.25s;
}
.cta-button:hover, .submit-btn:hover {
  transform: scale(1.06) translateY(0px);
  box-shadow: 0 8px 25px rgba(39, 39, 94, 0.18);
}

.nav-links a, .footer-links a {
  transition: color 0.2s, padding-left 0.2s, transform 0.2s;
}
.nav-links a:hover, .footer-links a:hover {
  color: var(--accent-color);
  transform: translateY(-2px) scale(1.04);
}

.service-card {
  transition: transform 0.3s cubic-bezier(.4,2,.6,1), box-shadow 0.3s;
}
.service-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 40px rgba(39,39,94,0.13);
}

/* =====================================================
   RESPONSIVE DESIGN — ordered from largest to smallest
   ===================================================== */

/* Tighten nav gap on large-but-not-huge screens */
@media (max-width: 1100px) {
    .nav-links {
        gap: 1rem;
    }
    .nav-links a {
        font-size: 0.95rem;
        padding: 0.5rem 0.4rem;
    }
    .logo-text {
        font-size: 1.5rem;
    }
}

/* Tighten further before burger kicks in */
@media (max-width: 960px) {
    .nav-links {
        gap: 0.6rem;
    }
    .nav-links a {
        font-size: 0.88rem;
        padding: 0.4rem 0.3rem;
    }
    .logo-text {
        font-size: 1.3rem;
    }
    .logo-img {
        height: 42px;
    }
}

/* BURGER BREAKPOINT — switched earlier (900px instead of 768px)
   so the logo never gets squeezed or wraps */
@media (max-width: 900px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 28vw;
        min-width: 180px;
        max-width: 320px;
        height: calc(100vh - 70px);
        background: var(--primary-color);
        flex-direction: column;
        justify-content: start;
        padding: 2rem 1rem;
        gap: 0.5rem;
        transition: left 0.3s ease;
        border-top-right-radius: 18px;
        border-bottom-right-radius: 18px;
        box-shadow: 2px 0 18px rgba(39,39,94,0.13);
    }

    .nav-links a {
        font-size: 1.05rem;
        padding: 0.6rem 1rem;
    }

    .nav-links.active {
        left: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }
    .glass-contact {
        padding: 1.2rem;
        margin: 1rem 0;
    }

    /* Restore logo to sensible size once burger is active */
    .logo-text {
        font-size: 1.5rem;
    }
    .logo-img {
        height: 46px;
    }
}

@media (max-width: 800px) {
  .about-card {
    flex-direction: column;
    padding: 1.2rem 0.7rem;
    gap: 1.2rem;
  }
  .about-card .about-image img {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 768px) {
    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .about-content h2 {
        font-size: 2.2rem;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    .hero {
        margin-top: -9vh;
    }
    .nav-container {
        padding: 0 1rem;
    }
}

@media (max-width: 700px) {
  .header {
    padding: 0.5rem 0;
  }
  .nav-container {
    padding: 0 0.75rem;
    max-width: 100vw;
  }
  .logo-img {
    height: 34px;
    border-radius: 8px;
  }
  .logo-text {
    font-size: 1.1rem;
  }
  .nav-links {
    top: 50px;
    padding: 1rem 0.5rem;
  }
  .hero {
    margin-top: -6vhpx;
    height: 38vh;
    min-height: 160px;
    background-size: cover;
    background-attachment: scroll;
    padding-top: 24px;
  }
  .hero-content {
    margin-top: -18px;
  }
  .hero-content h1 {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
  }
  .hero-content p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  .glass-contact {
    padding: 1rem;
    margin: 1rem 0;
  }
}

@media (max-width: 600px) {
    .footer .container {
        padding-left: 8px;
        padding-right: 8px;
    }
    .hero {
        margin-top: 6vh;
        height: 50vh;
        min-height: 300px;
        padding-top: 80px;
        background-attachment: scroll;
        box-sizing: border-box;
    }
    .cta-button {
        min-width: 120px;
        margin-top: 1rem;
        width: fit-content;
        align-self: center;
        margin-right: 0;
        display: inline-block;
    }
    .contact-container {
        display: block;
        width: 100%;
    }
    .contact-info, .contact-form {
        width: 100%;
        margin: 0 auto 2rem auto;
        padding: 1rem 0;
    }
    .contact-map {
        width: 100%;
        margin: 1.5rem auto;
    }
    .contact-form {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .service-card {
        padding: 1.5rem;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .hero {
        margin-top: 5.5vh;
        height: 50vh;
        min-height: 300px;
        padding-top: 80px;
        background-attachment: scroll;
        box-sizing: border-box;
    }
}

@media (max-width: 360px) {
    .logo-text {
        font-size: 0.85rem;
        letter-spacing: 0;
    }
    .logo-img {
        height: 30px;
    }
    .nav-container {
        padding: 0 0.5rem;
        gap: 0.25rem;
    }
    .logo-container {
        gap: 0.4rem;
    }
}