/* Con Alma Tech - Custom Styles */

@import url('https://fonts.googleapis.com/css2?family=Afacad:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap');

/* Hamburger menu styles */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1301;
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 0;
    outline: none;
}
.hamburger .bar {
    width: 28px;
    height: 4px;
    background: #3A663A;
    margin: 4px 0;
    border-radius: 2px;
    transition: 0.3s;
    display: block;
}
.hamburger.open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.open .bar:nth-child(2) {
    opacity: 0;
}
.hamburger.open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hide mobile menu by default */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #f8eee5;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1300;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
}
.mobile-menu.open {
    display: flex;
    opacity: 1;
    visibility: visible;
}
@media (max-width: 900px) {
    .desktop-nav {
        display: none !important;
    }
    .hamburger {
        display: flex !important;
        visibility: visible !important;
    }
    .mobile-menu .nav {
        flex-direction: column;
        gap: 2.5rem;
        align-items: center;
        width: 100%;
        padding: 20px;
    }
    .mobile-menu .nav a {
        font-size: 1.5rem;
        text-align: center;
        width: 100%;
        padding: 10px 0;
    }
    .mobile-menu .contact-btn {
        margin-top: 2.5rem;
        text-align: center;
        font-size: 1.1rem;
        white-space: normal;
        overflow-wrap: break-word;
        display: inline-block;
    }
    .logo img {
        height: 4.5rem;
        max-width: 220px;
    }
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 600px) {
    .logo img {
        height: 4rem;
        max-width: 200px;
    }
    .nav-mobile {
        padding: 70px 0 10px 0;
    }
}

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

body {
    font-family: 'Afacad', sans-serif;
    background: #F8EEE5;
    color: #3A663A;
    line-height: 1.6;
    font-size: 1.125rem; /* 18px - improved base size for better readability */
}

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

/* Header */
.header {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #F8EEE5;
    backdrop-filter: blur(10px);
    z-index: 1000;
    width: 100%;
}


.header .container.navbar-flex {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0;
    padding: 0 20px;
}

.navbar-section {
    display: flex;
    align-items: center;
}

.navbar-left {
    flex: 1 1 0;
    justify-content: flex-start;
}
.navbar-center {
    flex: 2 1 0;
    justify-content: center;
}
.navbar-right {
    flex: 1 1 0;
    justify-content: flex-end;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 18px;
    color: #3A663A;
}

.logo img {
    height: 5rem;
    max-width: 180px;
    width: auto;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav a {
    color: #3A663A;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: 0.01em;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #2A4A2A;
}

.contact-btn {
    background: #3A663A;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.contact-btn:hover {
    background: #2A4A2A;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 70px 0 90px 0;
    text-align: center;
    margin-top: 60px;
    background: radial-gradient(ellipse at bottom left, #b6e2c6 0%, #f8eee5 60%, #f8eee5 100%);
    border-radius: 0 0 60px 60px / 0 0 80px 80px;
    box-shadow: 0 8px 32px 0 rgba(58,102,58,0.07);
}

.hero-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.hero h1 {
    font-size: 5.5rem; /* Increased from 4.7rem for more impact */
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #3A663A;
    line-height: 1.08;
}

.hero-subtitle {
    font-size: 2.2rem; /* Increased from 1.9rem for better prominence */
    color: #2A4A2A;
    margin-bottom: 2.5rem;
    font-weight: 400;
    max-width: 700px;
    opacity: 0.85;
}

.hero .cta-btn {
    background: #3A663A;
    color: white;
    padding: 18px 35px; /* Increased padding for bigger button */
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.25rem; /* Increased from 18px for better visibility */
    display: inline-block;
    margin-top: 20px;
    transition: background 0.3s ease;
}

.hero .cta-btn:hover {
    background: #2A4A2A;
}

/* Highlighter effect for keywords */
.highlighter {
    background: linear-gradient(120deg, #ffb3ba 0%, #ffb3ba 100%);
    background-repeat: no-repeat;
    background-size: 100% 0.2em;
    background-position: 0 88%;
    transition: background-size 0.25s ease-in;
    padding: 0.1em 0.05em;
    border-radius: 2px;
}

.highlighter:hover {
    background-size: 100% 100%;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 3rem; /* Increased from 2.5rem for more impact */
    font-weight: bold;
    margin-bottom: 40px; /* Reduced from 60px for consistent spacing */
    color: #3A663A;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch; /* Changed from start to stretch for equal heights */
    margin-bottom: 60px; /* Reduced from 80px for consistent spacing */
}

.services-grid:last-child {
    margin-bottom: 0;
}

.service-card {
    background: #FDFBF8;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(58, 102, 58, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure full height */
}

.service-title {
    font-size: 2.2rem; /* Increased from 1.8rem for more prominence */
    font-weight: bold;
    margin-bottom: 20px;
    color: #3A663A;
}

.service-description {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
    font-size: 1.125rem; /* Increased from default for better readability */
}

.booking-box {
    background: #F5F0E8;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin-top: auto; /* Push to bottom of flex container */
}

.booking-text {
    color: #3A663A;
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 1.25rem; /* Increased from 1.125rem for better visibility */
}

.booking-btn {
    background: #3A663A;
    color: white;
    padding: 15px 30px; /* Increased padding for bigger button */
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: background 0.3s ease;
    font-size: 1.125rem; /* Added explicit font size for better visibility */
}

.booking-btn:hover {
    background: #2A4A2A;
}

.checklist {
    list-style: none;
}

/* Add padding to checklist containers to align with service cards */
.services-grid > div:not(.service-card) {
    padding: 40px;
    background: #FDFBF8;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(58, 102, 58, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure full height */
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: #666;
    font-size: 1.125rem; /* Increased for better readability */
}

.checklist-icon {
    width: 20px;
    height: 20px;
    border: 2px solid #3A663A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.checklist-icon::after {
    content: '✓';
    color: #3A663A;
    font-size: 12px;
    font-weight: bold;
}

/* About Section */
.about-section {
    background: radial-gradient(ellipse at bottom right, #b6e2c6 0%, #f8eee5 60%, #f8eee5 100%);
    border-radius: 60px 0 0 60px / 80px 0 0 80px;
    box-shadow: 0 8px 32px 0 rgba(58,102,58,0.07);
}

.about-content {
    margin-top: 20px; /* Reduced from 40px for consistent spacing */
}

.about-card-single {
    background: #FDFBF8;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(58, 102, 58, 0.1);
    width: 100%;
    text-align: center;
}

.about-card-single h3 {
    font-size: 2.2rem; /* Increased to match service titles */
    font-weight: bold;
    margin-bottom: 25px;
    color: #3A663A;
}

.about-card-single p {
    color: #666;
    line-height: 1.7;
    font-size: 1.125rem;
    margin-bottom: 20px;
    text-align: left; /* Left-align for better readability of longer text */
}

.about-card-single p:last-child {
    margin-bottom: 0;
}

.about-card-single ul {
    margin: 15px 0 20px 0;
    padding-left: 20px; /* Reduced from 30px for better alignment */
    color: #666;
    line-height: 1.7;
    font-size: 1.125rem;
}

.about-card-single li {
    margin-bottom: 12px;
    color: #666;
    line-height: 1.7;
    font-size: 1.125rem;
    text-align: left; /* Ensure left alignment like paragraphs */
}

.about-card-single li:last-child {
    margin-bottom: 0;
}

.about-card-single a {
    color: #3A663A;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.about-card-single a:hover {
    color: #2A4A2A;
    text-decoration: underline;
}

/* Footer Section */
.footer-gradient {
    background: linear-gradient(90deg, #b6e2c6 0%, #f8eee5 100%);
    padding: 60px 0;
    text-align: center;
}

.contact-info {
    margin-bottom: 40px;
}

.contact-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #3A663A;
    margin-bottom: 25px;
}

.contact-details {
    max-width: 600px;
    margin: 0 auto;
}

.company-name {
    font-size: 1.25rem;
    font-weight: 500;
    color: #2A4A2A;
    margin-bottom: 20px;
    font-style: italic;
}

.contact-item {
    margin-bottom: 12px;
    font-size: 1.125rem;
    color: #3A663A;
}

.contact-label {
    font-weight: 600;
    margin-right: 8px;
}

.contact-item a {
    color: #3A663A;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #2A4A2A;
    text-decoration: underline;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: center;
}

.social-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3A663A;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(58, 102, 58, 0.15);
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(58, 102, 58, 0.25);
    color: #2A4A2A;
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

/* Responsive Breakpoints */

/* Desktop - Large screens (1024px and up) */
@media (min-width: 1024px) {
    .hero h1 {
        font-size: 4.5rem; /* Increased from 3.5rem to maintain larger size */
    }
}

/* Tablet - Medium screens (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .header {
        padding: 18px 0;
    }
    
    .nav {
        gap: 25px;
    }
    
    .hero h1 {
        font-size: 4rem; /* Increased from 3rem to maintain larger size */
    }
}

/* Mobile - Small screens (480px and below) */
@media (max-width: 480px) {
    .header {
        gap: 10px;
        padding: 15px 0;
    }
    
    .nav {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav a {
        font-size: 14px;
    }
    
    .contact-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .hero h1 {
        font-size: 3.5rem; /* Increased from 2.5rem to maintain larger size */
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .social-icons {
        gap: 20px;
    }
    
    .social-icon {
        width: 50px;
        height: 50px;
    }
    
    .social-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .contact-title {
        font-size: 1.8rem;
    }
    
    .company-name {
        font-size: 1.125rem;
    }
    
    .contact-item {
        font-size: 1rem;
    }
}

/* Blog Section */
.posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px; /* Reduced from 40px for tighter spacing */
}

.post,
.blog-page .post {
    background: #FDFBF8;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(58, 102, 58, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(58, 102, 58, 0.15);
}

.post-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #3A663A;
}

.post-title a,
.blog-page .post h2 a {
    color: #3A663A;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover,
.blog-page .post h2 a:hover {
    color: #2A4A2A;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-style: italic;
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1.125rem; /* Increased for better readability */
}

.read-more {
    color: #3A663A;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #2A4A2A;
}

.post-image {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(58, 102, 58, 0.1);
}

.post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
    aspect-ratio: 1;
}

.post-image:hover img {
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    .posts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .posts {
        grid-template-columns: 1fr;
    }
    
    .post {
        padding: 20px;
    }
    
    .post-title {
        font-size: 1.3rem;
    }
    
    .post-image img {
        height: 200px;
    }
}

/* Standalone Blog Page Styles */
.blog-page .container {
    max-width: 800px;
    margin: 120px auto 40px auto;
    padding: 40px 20px;
}

.blog-page .posts {
    display: block;
    margin-top: 40px;
}

.blog-page .post {
    margin-bottom: 30px;
}

.blog-page .post h2 {
    color: #3A663A;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.blog-page .post h2 a:hover {
    color: #2A4A2A;
}

/* Blog Post Page Styles */
body.post-page .section {
    padding-top: 100px;
}

.about-card-single .post-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #E8F5E8;
}

.about-card-single .post-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #3A663A;
    margin-bottom: 15px;
    line-height: 1.2;
}

.about-card-single .post-meta {
    color: #666;
    font-size: 1.1rem;
    font-style: italic;
    margin: 0;
}

.about-card-single .post-content {
    color: #666;
    line-height: 1.7;
    font-size: 1.125rem;
    text-align: left;
}

.about-card-single .post-content p {
    margin-bottom: 20px;
}

.about-card-single .post-content p:last-child {
    margin-bottom: 0;
}

.about-card-single .post-content h1,
.about-card-single .post-content h2,
.about-card-single .post-content h3,
.about-card-single .post-content h4,
.about-card-single .post-content h5,
.about-card-single .post-content h6 {
    color: #3A663A;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
}

.about-card-single .post-content h1 {
    font-size: 2.2rem;
    border-bottom: 2px solid #E8F5E8;
    padding-bottom: 10px;
}

.about-card-single .post-content h2 {
    font-size: 1.8rem;
    border-bottom: 1px solid #E8F5E8;
    padding-bottom: 8px;
}

.about-card-single .post-content h3 {
    font-size: 1.5rem;
}

.about-card-single .post-content h4 {
    font-size: 1.3rem;
}

.about-card-single .post-content ul,
.about-card-single .post-content ol {
    margin: 15px 0 20px 0;
    padding-left: 20px;
    color: #666;
    line-height: 1.7;
    font-size: 1.125rem;
}

.about-card-single .post-content li {
    margin-bottom: 12px;
    color: #666;
    line-height: 1.7;
    font-size: 1.125rem;
    text-align: left;
}

.about-card-single .post-content li:last-child {
    margin-bottom: 0;
}

.about-card-single .post-content blockquote {
    border-left: 4px solid #3A663A;
    margin: 30px 0;
    font-style: italic;
    color: #666;
    background: #F8F8F8;
    padding: 20px;
    border-radius: 0 10px 10px 0;
}

.about-card-single .post-content code {
    background: #F0F0F0;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #3A663A;
    font-size: 0.9em;
}

.about-card-single .post-content pre {
    background: #F0F0F0;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid #E0E0E0;
}

.about-card-single .post-content pre code {
    background: none;
    padding: 0;
    color: #333;
}

.about-card-single .post-content a {
    color: #3A663A;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.about-card-single .post-content a:hover {
    color: #2A4A2A;
    text-decoration: underline;
}

.about-card-single .post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(58, 102, 58, 0.1);
    margin: 20px 0;
}

.about-card-single .post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(58, 102, 58, 0.1);
}

.about-card-single .post-content th,
.about-card-single .post-content td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #E8F5E8;
}

.about-card-single .post-content th {
    background: #3A663A;
    color: #fff;
    font-weight: bold;
}

.about-card-single .post-content tr:hover {
    background: #F8F8F8;
}

/* Featured image on blog post pages */
.post-featured-image {
    margin: 30px 0 40px 0;
    text-align: center;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(58, 102, 58, 0.15);
}

.post-featured-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.post-featured-image:hover img {
    transform: scale(1.02);
}

/* Back to blog link */
.back-to-blog {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #E8F5E8;
}

.back-to-blog a {
    display: inline-block;
    background: #3A663A;
    color: #fff;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-to-blog a:hover {
    background: #2A4A2A;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(58, 102, 58, 0.3);
}

/* 404 Error Page Styles */
.error-404 {
    margin: 10px auto;
    max-width: 600px;
    text-align: center;
    padding: 80px 20px;
}

.error-404 h1 {
    margin: 30px 0;
    font-size: 4em;
    line-height: 1;
    letter-spacing: -1px;
    color: #3A663A;
}

.error-404 p {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 15px;
}

.error-404 p strong {
    color: #3A663A;
    font-weight: 600;
}

/* Hide navigation menu on post pages */
body.post-page .post-nav-hide {
    display: none !important;
}
