/* 
 * Tablet Crest Grove - Main Stylesheet
 * Version 1.0.0
 * Copyright 2024
 */

/* Base Styles & Typography */
:root {
    --primary-color: #a06ddb; /* Signature purple */
    --primary-light: #d3b8f0;
    --primary-dark: #7a4db5;
    --secondary-color: #f7ca97; /* Warm accent */
    --text-dark: #2e2e2e;
    --text-medium: #5e5e5e;
    --text-light: #949494;
    --background-light: #ffffff;
    --background-cream: #faf8f6;
    --background-accent: #f4ecff;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --error-color: #f44336;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

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

html {
    font-size: 62.5%; /* For easy rem conversion (1rem = 10px) */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 4.2rem;
}

h2 {
    font-size: 3.2rem;
    margin-top: 3rem;
}

h3 {
    font-size: 2.4rem;
    margin-top: 2rem;
}

h4 {
    font-size: 2rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

blockquote {
    padding: 2rem 2.5rem;
    margin: 3rem 0;
    background-color: var(--background-accent);
    border-left: 4px solid var(--primary-color);
    font-style: italic;
}

hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 3rem 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

/* Header & Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--background-light);
    box-shadow: var(--shadow);
    padding: 1.5rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 6rem;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 3rem;
}

nav ul li a {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a.active {
    color: var(--primary-color);
    font-weight: 700;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    height: 3px;
    width: 25px;
    background-color: var(--text-dark);
    margin-bottom: 5px;
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, #f4ecff, #ffffff);
    padding: 8rem 0;
}

.hero-content {
    max-width: 65rem;
    text-align: center;
    margin: 0 auto;
}

.welcome-multilingual {
    font-style: italic;
    color: var(--text-medium);
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.hero p {
    font-size: 2rem;
    color: var(--text-medium);
    margin-bottom: 3rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.6rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
}

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

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

.btn-large {
    padding: 1.5rem 4rem;
    font-size: 1.8rem;
}

.btn-full {
    width: 100%;
}

/* Features Section */
.features {
    padding: 8rem 0;
    background-color: var(--background-cream);
}

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

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

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 7rem;
    height: 7rem;
    background-color: var(--primary-light);
    border-radius: 50%;
    margin-bottom: 2rem;
    color: var(--primary-dark);
}

.icon svg {
    width: 3.5rem;
    height: 3.5rem;
}

.feature h3 {
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}

.feature p {
    color: var(--text-medium);
}

/* Latest Posts Section */
.latest-posts {
    padding: 8rem 0;
}

.latest-posts h2 {
    text-align: center;
    margin-bottom: 4rem;
}

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

.post {
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.post-image {
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.post-content {
    padding: 2rem;
}

.post-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.post-content p {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

.read-more {
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
}

.read-more:after {
    content: "→";
    margin-left: 0.5rem;
    transition: var(--transition);
}

.read-more:hover:after {
    margin-left: 0.8rem;
}

.view-all {
    margin-top: 4rem;
    text-align: center;
}

/* Testimonials */
.testimonials {
    background-color: var(--background-accent);
    padding: 8rem 0;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.testimonial {
    max-width: 80rem;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.quote {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.quote svg {
    width: 4rem;
    height: 4rem;
}

.testimonial p {
    font-size: 2rem;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 3rem;
}

.client h4 {
    margin-bottom: 0.5rem;
}

.client p {
    font-size: 1.6rem;
    margin-bottom: 0;
}

/* CTA Section */
.cta {
    text-align: center;
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
}

.cta h2 {
    color: white;
    font-size: 3.6rem;
    margin-bottom: 2rem;
}

.cta p {
    font-size: 2rem;
    margin-bottom: 3rem;
    max-width: 60rem;
    margin-left: auto;
    margin-right: auto;
}

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

.cta .btn:hover {
    background-color: var(--background-light);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: white;
    padding: 6rem 0 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-logo img {
    height: 5rem;
    margin-bottom: 1.5rem;
}

.footer-logo p {
    color: var(--text-light);
    font-size: 1.4rem;
}

.footer-links h4, .footer-contact h4, .footer-social h4 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links ul li a, .footer-contact a {
    color: var(--text-light);
    transition: var(--transition);
}

.footer-links ul li a:hover, .footer-contact a:hover {
    color: white;
}

.footer-contact address {
    font-style: normal;
    color: var(--text-light);
    line-height: 1.8;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.social-icons svg {
    width: 2rem;
    height: 2rem;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--text-light);
    font-size: 1.4rem;
}

/* Glossary Section */
.glossary-section {
    background-color: var(--background-cream);
    padding: 5rem 0;
}

.glossary-section h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.glossary-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 3rem;
}

.glossary-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.glossary-item p {
    font-size: 1.5rem;
    color: var(--text-medium);
}

/* Cookie Banner */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-light);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 2rem;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.cookie-content p {
    margin-bottom: 1.5rem;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cookie-btn {
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.cookie-btn.accept:hover {
    background-color: var(--primary-dark);
}

.cookie-btn.customize {
    background-color: white;
    border: 1px solid var(--border-color);
}

.cookie-btn.customize:hover {
    background-color: var(--background-cream);
}

.cookie-btn.decline {
    background-color: var(--text-light);
    color: white;
}

.cookie-btn.decline:hover {
    background-color: var(--text-medium);
}

.cookie-policy {
    font-size: 1.3rem;
    color: var(--text-light);
}

/* Page Header */
.page-header {
    background: linear-gradient(to right, #f4ecff, #ffffff);
    padding: 6rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 4.6rem;
    margin-bottom: 1.5rem;
}

.page-header p {
    font-size: 2rem;
    color: var(--text-medium);
    max-width: 60rem;
    margin: 0 auto;
}

/* Blog Page */
.blog-content {
    padding: 6rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 4rem;
}

.blog-post {
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.blog-post .post-image {
    height: 250px;
}

.post-details {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    color: var(--text-light);
}

.blog-post h2 {
    font-size: 2.2rem;
    margin: 1rem 0 1.5rem;
}

.blog-post p {
    color: var(--text-medium);
    margin-bottom: 2rem;
}

.blog-post .post-image img {
    transition: transform 0.5s ease;
}

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

.read-more-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.read-more-btn:hover {
    background-color: var(--primary-dark);
    color: white;
}

/* Newsletter */
.newsletter {
    background-color: var(--background-accent);
    padding: 6rem 0;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter h2 {
    margin-bottom: 1.5rem;
}

.newsletter p {
    margin-bottom: 3rem;
    color: var(--text-medium);
}

.newsletter-form {
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1.2rem 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1.6rem;
}

.newsletter-form .btn {
    white-space: nowrap;
}

/* Services Page */
.services-overview {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.services-intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.service-list {
    padding: 5rem 0;
}

.service-card {
    display: flex;
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 4rem;
}

.service-image {
    width: 35%;
    min-height: 300px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    width: 65%;
    padding: 3rem;
}

.service-content h3 {
    margin-bottom: 1.5rem;
}

.service-content p {
    color: var(--text-medium);
    margin-bottom: 2rem;
}

.service-features {
    margin-bottom: 2rem;
}

.service-features li {
    margin-bottom: 0.8rem;
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
}

.service-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* Process Steps */
.service-process {
    background-color: var(--background-cream);
    padding: 6rem 0;
}

.service-process h2 {
    text-align: center;
    margin-bottom: 5rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step:not(:last-child):after {
    content: "";
    position: absolute;
    top: 30px;
    right: -15%;
    width: 30%;
    height: 2px;
    background-color: var(--primary-light);
}

.step-number {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-size: 2.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.process-step h3 {
    margin-bottom: 1.5rem;
}

/* Testimonial Slider */
.service-testimonials {
    padding: 6rem 0;
}

.service-testimonials h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 5rem;
}

.testimonial-content {
    background-color: var(--background-cream);
    padding: 3rem;
    border-radius: var(--border-radius);
    position: relative;
}

.testimonial-content:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50px;
    width: 20px;
    height: 20px;
    background-color: var(--background-cream);
    transform: rotate(45deg);
}

.client-info {
    display: flex;
    align-items: center;
    margin-top: 3rem;
    padding-left: 3rem;
}

.client-photo {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    margin-right: 2rem;
    object-fit: cover;
}

.client-info h4 {
    margin-bottom: 0.5rem;
}

.client-info p {
    color: var(--text-medium);
    margin-bottom: 0;
}

.testimonial-nav {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
}

.testimonial-nav button {
    background-color: transparent;
    border: none;
    color: var(--text-dark);
    font-size: 3rem;
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-nav button:hover {
    color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    padding: 8rem 0;
}

.cta-content {
    text-align: center;
    color: white;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
    margin-bottom: 2rem;
}

.cta-content p {
    margin-bottom: 3rem;
    font-size: 1.8rem;
}

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

.cta-content .btn:hover {
    background-color: var(--background-light);
}

/* Contact Page */
.contact-content {
    padding: 6rem 0;
}

.contact-flex {
    display: flex;
    gap: 5rem;
}

.contact-info {
    flex: 1;
}

.info-item {
    display: flex;
    margin-bottom: 3rem;
}

.info-item .icon {
    margin-right: 2rem;
    margin-bottom: 0;
    width: 5rem;
    height: 5rem;
}

.info-item h3 {
    margin-bottom: 0.5rem;
}

.social-contact {
    margin-top: 4rem;
}

.contact-form-container {
    flex: 1;
}

.contact-form {
    background-color: var(--background-cream);
    padding: 3rem;
    border-radius: var(--border-radius);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1.6rem;
    font-family: var(--font-body);
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 1rem;
    margin-top: 0.5rem;
}

.form-group.checkbox label {
    font-size: 1.4rem;
}

.map-section {
    padding-bottom: 6rem;
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 450px;
}

/* Thank You Modal */
.thank-you-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.thank-you-content {
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    padding: 4rem;
    max-width: 500px;
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2.4rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-medium);
}

.thank-you-icon {
    color: var(--success-color);
    font-size: 5rem;
    margin-bottom: 2rem;
}

.thank-you-icon svg {
    width: 6rem;
    height: 6rem;
}

.thank-you-content h2 {
    margin-bottom: 1.5rem;
}

.thank-you-content p {
    margin-bottom: 3rem;
}

/* About Page */
.about-story {
    padding: 6rem 0;
}

.about-content {
    display: flex;
    gap: 5rem;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.values-section {
    background-color: var(--background-cream);
    padding: 6rem 0;
}

.values-section h2 {
    text-align: center;
    margin-bottom: 5rem;
}

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

.value-item {
    text-align: center;
    padding: 3rem 2rem;
}

.value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 7rem;
    height: 7rem;
    background-color: var(--primary-light);
    border-radius: 50%;
    margin-bottom: 2rem;
    color: var(--primary-dark);
}

.value-icon svg {
    width: 3.5rem;
    height: 3.5rem;
}

.value-item h3 {
    margin-bottom: 1.5rem;
}

.value-item p {
    color: var(--text-medium);
}

.team-section {
    padding: 6rem 0;
}

.team-section h2 {
    text-align: center;
    margin-bottom: 5rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 4rem;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.team-member h3 {
    margin-bottom: 0.5rem;
}

.team-member p:first-of-type {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.member-social {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.member-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--background-accent);
    border-radius: 50%;
    color: var(--primary-color);
    transition: var(--transition);
}

.member-social a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.credentials-section {
    background-color: var(--background-cream);
    padding: 6rem 0;
}

.credentials-content {
    display: flex;
    gap: 5rem;
    align-items: center;
}

.credentials-image {
    flex: 1;
}

.credentials-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.credentials-text {
    flex: 1;
}

.credential-list {
    margin: 3rem 0;
}

.credential-item {
    margin-bottom: 2rem;
}

.credential-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Blog Post Single */
.blog-post-single {
    padding: 6rem 0;
}

.post-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.post-author {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

.author-image {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    margin-right: 1.5rem;
    object-fit: cover;
}

.author-info {
    text-align: left;
}

.author-name {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.author-title {
    color: var(--text-light);
}

.featured-image {
    margin-bottom: 4rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    max-height: 500px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.8rem;
    line-height: 1.7;
}

.post-content h2 {
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.post-content h3 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.post-content ul, .post-content ol {
    margin-bottom: 2.5rem;
}

.post-content li {
    margin-bottom: 1rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 800px;
    margin: 4rem auto;
    align-items: center;
}

.post-tags span {
    font-weight: 600;
}

.post-tags a {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: var(--background-cream);
    color: var(--text-medium);
    border-radius: 5rem;
    font-size: 1.4rem;
    transition: var(--transition);
}

.post-tags a:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.post-share {
    display: flex;
    align-items: center;
    max-width: 800px;
    margin: 4rem auto;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.post-share span {
    margin-right: 2rem;
    font-weight: 600;
}

.share-buttons {
    display: flex;
    gap: 1.5rem;
}

.share-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background-color: var(--background-cream);
    border-radius: 50%;
    color: var(--text-dark);
    transition: var(--transition);
}

.share-buttons a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.share-buttons svg {
    width: 2rem;
    height: 2rem;
}

.related-posts {
    background-color: var(--background-cream);
    padding: 6rem 0;
}

.related-posts h2 {
    text-align: center;
    margin-bottom: 4rem;
}

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

.related-post {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.related-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.related-image {
    height: 200px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.related-post h3 {
    padding: 2rem;
    margin: 0;
    font-size: 1.8rem;
}

.related-post a {
    color: var(--text-dark);
    text-decoration: none;
}

.related-post a:hover h3 {
    color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    html {
        font-size: 58%;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-logo, .footer-social {
        grid-column: span 3;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 56%;
    }
    
    .features .container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .posts-grid, .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-card {
        flex-direction: column;
    }
    
    .service-image, .service-content {
        width: 100%;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
    }
    
    .process-step:nth-child(odd):after {
        display: none;
    }
    
    .contact-flex, .about-content, .credentials-content {
        flex-direction: column;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 54%;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 9rem;
        left: 0;
        width: 100%;
        background-color: var(--background-light);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }
    
    nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 0;
        margin-bottom: 1.5rem;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
    
    .features .container, .posts-grid, .values-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .footer-logo, .footer-social {
        grid-column: span 1;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 52%;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .process-step:after {
        display: none !important;
    }
}
