:root {
    --color-primary: #32808d;
    --color-primary-hover: #1d7480;
    --color-bg: #fcfcf9;
    --color-surface: #fffffe;
    --color-text: #133434;
    --color-text-secondary: #626c6c;
    --color-border: rgba(94, 82, 64, 0.2);
    --color-accent: #32b8c6;
    --font-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #1f2121;
        --color-surface: #262828;
        --color-text: #f5f5f5;
        --color-text-secondary: rgba(167, 169, 169, 0.7);
        --color-border: rgba(119, 124, 124, 0.3);
    }
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}

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

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

.back-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

/* logo image alignment helpers — minimal, won't change existing header layout */
.logo-img {
    display: inline-block;
    height: 77px;    /* fits current header height; reduce if needed */
    width: auto;
    vertical-align: middle;
    margin-right: 0.6rem;
    border-radius: 6px;
    object-fit: contain;
}

.logo-text {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    font-size: 1.5rem; /* keeps original scale; tweak if necessary */
    color: inherit;
}

/* Mobile menu button */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    width: 44px;
    height: 40px;
    align-items: center;
    justify-content: center;
    z-index: 120;
}

/* three bars */
.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--color-text);
    margin: 4px 0;
    border-radius: 3px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

/* transform to X when active */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Remove default button focus ring look, provide subtle focus */
.menu-toggle:focus {
    outline: 2px solid rgba(50,128,141,0.25);
    outline-offset: 2px;
}

/* ensure hamburger stays on top of logo on small screens */
.menu-toggle {
    z-index: 200;
}

/* Mobile layout adjustments */
@media (max-width: 768px) {
    .menu-toggle { display: inline-flex; }

    /* nav-links hidden by default on mobile (already present) - when active show as column */
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        right: 20px;
        background: var(--color-surface);
        flex-direction: column;
        gap: 0;
        padding: 0.75rem 1rem;
        border-radius: 10px;
        border: 1px solid var(--color-border);
        box-shadow: 0 8px 30px rgba(0,0,0,0.08);
        width: calc(100% - 40px);
        max-width: 320px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 0.5rem 0;
    }

    .nav-links a {
        display: block;
        padding: 0.5rem 0.25rem;
    }

    .hero h1,
    .hero-contact h1,
    .hero-services h1,
    .hero-about h1 { 
        font-size: 2rem; 
    }
    
    .hero p,
    .hero-contact p,
    .hero-services p,
    .hero-about p { 
        font-size: 1rem; 
    }
    
    .services-grid,
    .pricing-grid,
    .team-grid,
    .blog-grid { 
        grid-template-columns: 1fr; 
    }
    
    .contact-wrapper,
    .two-column,
    .service-detail { 
        grid-template-columns: 1fr; 
    }
    
    .service-detail.reverse { 
        direction: ltr; 
    }
}

/* Hero Sections */
.hero {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-surface) 100%);
}

.hero-contact {
    padding: 4rem 0 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-surface) 100%);
}

.hero-services {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-surface) 100%);
}

.hero-about {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-surface) 100%);
}

.hero-blog {
    padding: 3rem 0;
    text-align: center;
}

.hero h1,
.hero-contact h1,
.hero-services h1,
.hero-about h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p,
.hero-contact p,
.hero-services p,
.hero-about p {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(50, 128, 141, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-border);
}

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

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

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-whatsapp {
    background: white;
    color: #128C7E;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Hero CTA */
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: var(--color-surface);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--color-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--color-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

/* Team Section */
.team {
    padding: 5rem 0;
    background: var(--color-bg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-card {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--color-border);
    transition: all 0.3s;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.team-photo {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, rgba(50,128,141,0.1), rgba(50,184,198,0.1));
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 12px;
}

.team-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.team-card .role {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.team-card p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Pricing Section */
.pricing {
    padding: 5rem 0;
    background: var(--color-surface);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: var(--color-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--color-border);
    text-align: center;
    transition: all 0.3s;
}

.pricing-card:hover {
    border-color: var(--color-primary);
    transform: scale(1.05);
}

.pricing-card.featured {
    border-color: var(--color-primary);
    box-shadow: 0 10px 40px rgba(50, 128, 141, 0.2);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 1rem 0;
}

.pricing-features {
    list-style: none;
    margin: 1.5rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-features li:before {
    content: "✓";
    color: var(--color-primary);
    font-weight: bold;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--color-bg);
}

.contact-form {
    max-width: 600px;
    margin: 2rem auto;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-form-wrapper {
    background: var(--color-surface);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.contact-form-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: 2px solid var(--color-primary);
    border-color: var(--color-primary);
}

.success-message {
    background: rgba(50, 184, 198, 0.1);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;

    /* IMPORTANT PART */
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.success-message.show {
    opacity: 1;
    visibility: visible;
    max-height: 200px;
}



/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: all 0.3s;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.info-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.info-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.info-content p {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.info-content a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.info-content a:hover {
    text-decoration: underline;
}

.hours-list {
    list-style: none;
    margin-top: 0.5rem;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.hours-list li:last-child {
    border-bottom: none;
}

.whatsapp-cta {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    margin-top: 2rem;
}

.whatsapp-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.whatsapp-cta p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

/* Service Pages */
.service-section {
    padding: 4rem 0;
}

.service-section.alt {
    background: var(--color-surface);
}

.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.service-detail:last-child {
    margin-bottom: 0;
}

.service-detail.reverse {
    direction: rtl;
}

.service-detail.reverse > * {
    direction: ltr;
}

.service-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.service-icon-large {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.service-content ul {
    list-style: none;
    margin: 1.5rem 0;
}

.service-content ul li {
    padding: 0.75rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.service-content ul li:before {
    content: "✓";
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.25rem;
}

.service-visual {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    border-radius: 12px;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    font-size: 6rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    text-align: center;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.perfect-for {
    background: rgba(50, 128, 141, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
    margin: 1.5rem 0;
}

.highlight {
    background: rgba(50, 128, 141, 0.1);
    border-left: 4px solid var(--color-primary);
    padding: 1.5rem;
    margin: 2rem 0;
}

/* CTA Sections */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    padding: 4rem 0;
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-box {
    background: var(--color-surface);
    border: 2px solid var(--color-primary);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin: 3rem 0;
}

.cta-box h3 {
    margin-top: 0;
    color: var(--color-primary);
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--color-border);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.blog-card {
    background: var(--color-surface);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: all 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.blog-card-content {
    padding: 2rem;
}

.blog-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.blog-meta {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-card a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

/* Article Styles */
article {
    padding: 3rem 0;
    max-width: 800px;
    margin: 0 auto;
}

article h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
    line-height: 1.2;
}

article h2 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1rem;
    color: var(--color-primary);
}

article h3 {
    font-size: 1.35rem;
    margin: 2rem 0 0.75rem;
    color: var(--color-text);
}

article p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

article ul,
article ol {
    margin: 1rem 0 1.5rem 2rem;
}

article ul li,
article ol li {
    margin-bottom: 0.75rem;
}

.article-meta {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    padding: 1rem;
    border-radius: 50%;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    width: 60px;
    height: 60px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Footer */
footer {
    background: var(--color-text);
    color: var(--color-bg);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--color-bg);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.founder-credit {
    opacity: 0.6;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.legal-links {
    margin-top: 1rem;
    opacity: 0.7;
}

.legal-links a {
    color: var(--color-accent);
    text-decoration: none;
    margin: 0 0.75rem;
    font-size: 0.9rem;
}

.legal-links a:hover {
    text-decoration: underline;
    opacity: 1;
}

/* Comparison table styles (responsive) */
.comparison-table-wrapper {
    overflow-x: auto; /* allow horizontal scroll on small screens */
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    min-width: 720px; /* ensures columns keep readable width on desktop, triggers scroll on small screens */
    border-collapse: collapse;
    background: var(--color-surface);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table thead th {
    text-align: left;
    padding: 0.75rem 1rem;
    background: linear-gradient(90deg, rgba(50,128,141,0.06), transparent);
    color: var(--color-text);
    font-weight: 700;
    border-bottom: 1px solid var(--color-border);
}

.comparison-table tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
    color: var(--color-text-secondary);
}

.comparison-table tbody tr:nth-child(even) td {
    background: rgba(0,0,0,0.02);
}

.comparison-table .check {
    color: var(--color-primary);
    font-weight: 700;
}

/* reduce min-width on very small devices if needed */
@media (max-width: 420px) {
    .comparison-table { min-width: 600px; }
}

/* small-screen adjustments */
@media (max-width: 480px) {
    .logo-img { height: 40px; margin-right: 0.4rem; }
    .logo-text { font-size: 0.95rem; }
}