/* ===================================
   REWALL NZ - COMPLETE STYLESHEET
   Brand: R:Wall - Premium Retaining Walls
   Last Updated: January 2026
   =================================== */

/* ROOT VARIABLES & COLOR PALETTE */
:root {
    --primary-black: #1a1a1a;
    --baby-blue: #89CFF0;
    --slate: #2C3E50;
    --soft-blue: #E8F4F8;
    --white: #FFFFFF;
    --dark-text: #1a1a1a;
    --teal-accent: #4A90A4;
    --light-gray: #f5f5f5;
    --border-gray: #ddd;
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'Monaco', 'Courier New', monospace;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 6rem;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--dark-text);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.4rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--spacing-md);
    font-size: 1rem;
    line-height: 1.8;
}

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

a:hover {
    color: var(--slate);
}

/* ===================================
   LAYOUT STRUCTURE
   =================================== */

/* Main container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-full {
    width: 100%;
}

/* Navigation Sidebar */
nav.sidebar {
    position: fixed;
    right: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background-color: var(--primary-black);
    color: var(--white);
    padding: var(--spacing-lg);
    overflow-y: auto;
    z-index: 1000;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

nav.sidebar .logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xl);
    color: var(--white);
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

nav.sidebar .logo svg {
    width: 100%;
    height: auto;
    max-width: 120px;
}

nav.sidebar ul {
    list-style: none;
}

nav.sidebar li {
    margin-bottom: var(--spacing-md);
}

nav.sidebar a {
    color: var(--white);
    font-size: 1rem;
    display: block;
    padding: var(--spacing-sm) 0;
    transition: var(--transition);
    position: relative;
}

nav.sidebar a:hover {
    color: var(--baby-blue);
    padding-left: var(--spacing-sm);
}

nav.sidebar a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--teal-accent);
    transition: var(--transition);
}

nav.sidebar a:hover::before {
    width: 20px;
}

/* Active page indicator */
nav.sidebar a.active {
    color: var(--teal-accent);
    padding-left: var(--spacing-sm);
    font-weight: 600;
}

nav.sidebar a.active::before {
    width: 25px;
    height: 3px;
    background: linear-gradient(90deg, var(--teal-accent), var(--baby-blue));
}

nav.sidebar a.active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background-color: var(--teal-accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--teal-accent);
}

/* Divider in sidebar */
nav.sidebar .divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: var(--spacing-lg) 0;
}

/* CTA buttons in sidebar */
nav.sidebar .cta-group {
    margin: var(--spacing-xl) 0;
}

nav.sidebar .cta-group button {
    width: 100%;
    margin-bottom: var(--spacing-sm);
}

/* Prominent breathing glow on Plan & Quote button */
nav.sidebar .cta-group button:first-child {
    animation: btnBreathe 2.5s ease-in-out infinite;
    position: relative;
}

nav.sidebar .cta-group button:first-child:hover {
    animation: none;
}

@keyframes btnBreathe {
    0%, 100% {
        box-shadow: 0 0 6px rgba(74, 144, 164, 0.3),
                    0 0 12px rgba(74, 144, 164, 0.1);
        background-color: var(--teal-accent);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 20px rgba(74, 144, 164, 0.8),
                    0 0 50px rgba(74, 144, 164, 0.35),
                    0 0 80px rgba(74, 144, 164, 0.12);
        background-color: #5fbdd6;
        transform: scale(1.05);
    }
}

/* Main content area (account for sidebar) */
main {
    margin-right: 250px;
}

/* Hamburger menu (mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: fixed;
    top: var(--spacing-md);
    right: var(--spacing-md);
    z-index: 1001;
    background: none;
    border: none;
    gap: 6px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-black);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===================================
   BUTTONS & FORMS
   =================================== */

button, .btn, input[type="submit"], input[type="button"] {
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--teal-accent);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
}

button:hover, .btn:hover, input[type="submit"]:hover, input[type="button"]:hover {
    background-color: var(--slate);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

button.secondary {
    background-color: var(--slate);
}

button.secondary:hover {
    background-color: var(--teal-accent);
}

button.outline {
    background-color: transparent;
    border: 2px solid var(--teal-accent);
    color: var(--teal-accent);
}

button.outline:hover {
    background-color: var(--teal-accent);
    color: var(--white);
}

/* Forms */
form {
    max-width: 600px;
    margin: var(--spacing-xl) auto;
}

label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--dark-text);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--teal-accent);
    box-shadow: 0 0 0 3px rgba(74, 144, 164, 0.1);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

/* Honeypot field (hidden) */
p.hidden {
    display: none;
}

/* ===================================
   SECTIONS & LAYOUT BLOCKS
   =================================== */

section {
    padding: var(--spacing-xxl) 0;
}

section.hero {
    background: linear-gradient(135deg, #B3E5FC 0%, #81D4FA 50%, #4FC3F7 100%);
    padding: calc(var(--spacing-xxl) * 1.2) 0;
    position: relative;
    overflow: hidden;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 -5px 15px rgba(0, 0, 0, 0.05);
    margin-right: -250px;
    padding-right: 250px;
}

section.hero .content {
    text-align: center;
    max-width: 900px;
    z-index: 2;
    position: relative;
    padding: var(--spacing-lg) var(--spacing-md);
    margin-right: 0;
}

section.hero h1 {
    color: var(--primary-black);
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

section.hero .subheadline {
    font-size: 1.1rem;
    color: var(--slate);
    margin-bottom: var(--spacing-lg);
    font-weight: 400;
}

/* Partner card headings — consistent across about & contact */
.card h3 {
    font-size: 1.5rem;
}

/* Wall type showcase — grid, cards, icons, pros */
.wall-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.wall-type-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid #e8eef2;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    position: relative;
}

.wall-type-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(74, 144, 164, 0.12);
    border-color: var(--teal-accent);
}

.wall-card-image {
    height: 160px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f8fafb 0%, #eef3f6 100%);
    position: relative;
}

.wall-card-image .icon-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 3px solid #e8eef2;
    transition: all 0.3s ease;
    overflow: hidden;
}

.wall-type-card:hover .icon-circle {
    border-color: var(--teal-accent);
    box-shadow: 0 6px 24px rgba(74, 144, 164, 0.15);
    transform: scale(1.05);
}

.wall-card-image .icon-circle img {
    width: 85%;
    height: 85%;
    object-fit: contain;
}

.wall-card-content {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wall-card-content h3.wall-card-title {
    font-size: 1.1rem;
}

.wall-pros-cons {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    color: var(--slate);
    line-height: 1.6;
}

.wall-pros-cons li {
    margin-bottom: 6px;
    padding-left: 0;
}

.wall-pros-cons strong {
    color: var(--teal-accent);
    margin-right: 4px;
    min-width: 20px;
    display: inline-block;
}

@media (max-width: 768px) {
    .wall-type-grid {
        grid-template-columns: 1fr;
    }
}

section.hero .cta-container {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

section.alt-bg {
    background-color: var(--soft-blue);
    margin-right: -250px;
    padding-right: 250px;
}

/* Grid layouts */
.grid {
    display: grid;
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
    align-items: start;
}

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

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: stretch;
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Cards */
.card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

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

.card img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    object-fit: cover;
}

.card h3 {
    margin-top: 0;
}

.card-badge {
    display: inline-block;
    background-color: var(--teal-accent);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

/* Value proposition cards */
.value-card {
    text-align: center;
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.value-card .icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.value-card .value-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--spacing-md);
    display: block;
}

.value-card h3 {
    color: var(--primary-black);
    text-align: center;
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-card p {
    font-size: 0.95rem;
    color: var(--slate);
    text-align: center;
}

/* ===================================
   HERO SVG ANIMATION
   =================================== */

.hero-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    z-index: 1;
}

/* SVG animations */
@keyframes line-straighten {
    0% {
        transform: rotate(var(--rotation, 0deg));
        opacity: 1;
    }
    70% {
        transform: rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: rotate(0deg);
        opacity: 0.6;
    }
}

@keyframes pulse-grid {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

svg.animation line {
    animation: line-straighten 8s ease-in-out infinite;
}

/* ===================================
   GALLERY STYLES
   =================================== */

.gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    cursor: pointer;
    background-color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    box-shadow: 0 12px 28px rgba(74, 144, 164, 0.15);
    transform: translateY(-4px);
}

.project-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: all 0.4s ease;
    display: block;
}

.project-card:hover img {
    transform: scale(1.08);
    filter: brightness(0.95);
}

/* Home page featured projects - blueish grayscale effect */
section.alt-bg .project-card img {
    filter: grayscale(100%) sepia(20%) hue-rotate(170deg) saturate(0.8) brightness(1.05);
}

section.alt-bg .project-card:hover img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.08);
}

/* Keep icon badges in full color at all times */
section.alt-bg .project-card div[style*="position: absolute"] img {
    filter: none !important;
}

/* Partner logo links */
.partner-link {
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

/* Partner logos */
.partner-logo {
    transition: all 0.4s ease;
}

.partner-link:hover .partner-logo {
    filter: brightness(1.1);
    transform: scale(1.05);
}

/* Fineway logo - black and white */
.fineway-bw {
    filter: grayscale(100%);
}

.partner-link:hover .fineway-bw {
    filter: grayscale(100%) brightness(1.1);
}

.project-info {
    padding: var(--spacing-lg);
    background-color: var(--white);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h4 {
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-black);
    font-size: 1.15rem;
}

.project-description {
    font-size: 0.9rem;
    color: var(--slate);
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
    line-height: 1.5;
}

.card-badge {
    display: inline-block;
    background-color: var(--soft-blue);
    color: var(--teal-accent);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-link {
    color: var(--teal-accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-top: auto;
}

.project-link:hover {
    gap: var(--spacing-sm);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fade-in 0.3s;
    overflow: auto;
    padding: 20px;
    box-sizing: border-box;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 95%;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1000;
}

.lightbox-close:hover {
    color: var(--baby-blue);
    background: rgba(0, 0, 0, 0.8);
}

/* ===================================
   BLOG STYLES
   =================================== */

.blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.blog-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.blog-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.blog-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.blog-card-content {
    padding: var(--spacing-lg);
}

.blog-meta {
    display: flex;
    gap: var(--spacing-md);
    font-size: 0.85rem;
    color: var(--slate);
    margin-bottom: var(--spacing-sm);
}

.blog-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.blog-card h3 {
    margin-top: 0;
    margin-bottom: var(--spacing-md);
}

.blog-excerpt {
    font-size: 0.95rem;
    color: var(--slate);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.read-more {
    color: var(--teal-accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.read-more:hover {
    gap: var(--spacing-sm);
}

/* Blog post template */
.post-hero {
    background-color: var(--soft-blue);
    padding: var(--spacing-xxl) 0;
    text-align: center;
}

.post-hero h1 {
    color: var(--primary-black);
}

.post-header {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: var(--slate);
    margin-top: var(--spacing-lg);
}

.post-content {
    max-width: 800px;
    margin: var(--spacing-xl) auto;
}

.post-content h2 {
    margin-top: var(--spacing-xl);
    border-top: 2px solid var(--soft-blue);
    padding-top: var(--spacing-lg);
}

.post-content p {
    text-align: justify;
}

.toc {
    background-color: var(--soft-blue);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-xl);
}

.toc h3 {
    margin-top: 0;
}

.toc ul {
    list-style: none;
}

.toc li {
    margin-bottom: var(--spacing-sm);
}

.toc a {
    color: var(--teal-accent);
}

/* Related posts */
.related-posts {
    margin-top: var(--spacing-xxl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border-gray);
}

.related-posts h3 {
    margin-bottom: var(--spacing-lg);
}

/* ===================================
   BLOG MODAL STYLES
   =================================== */

.blog-modal {
    display: none;
    position: fixed;
    z-index: 998;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fade-in 0.3s ease;
    overflow-y: auto;
    padding: var(--spacing-lg);
    box-sizing: border-box;
}

.blog-modal.active {
    display: block;
}

.blog-modal-content {
    position: relative;
    max-width: 900px;
    background-color: var(--white);
    margin: var(--spacing-xl) auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slide-up 0.4s ease;
    overflow: hidden;
}

.blog-modal-close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 999;
}

.blog-modal-close:hover {
    color: var(--baby-blue);
    background: rgba(0, 0, 0, 0.8);
}

.blog-post-detail {
    padding: var(--spacing-xl);
}

.blog-post-header {
    border-bottom: 2px solid var(--soft-blue);
    padding-bottom: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.blog-post-header h1 {
    color: var(--primary-black);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.blog-post-meta {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--slate);
    margin-bottom: var(--spacing-lg);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background-color: var(--soft-blue);
    border-radius: var(--radius-md);
}

.blog-post-intro {
    font-size: 1.1rem;
    color: var(--slate);
    font-style: italic;
    line-height: 1.7;
}

.blog-post-body {
    line-height: 1.8;
    color: var(--dark-text);
}

.blog-section {
    margin-bottom: 2.5rem;
}

.blog-section h2 {
    color: var(--primary-black);
    margin-bottom: var(--spacing-md);
    font-size: 1.6rem;
    border-left: 4px solid var(--teal-accent);
    padding-left: var(--spacing-md);
}

.blog-section p {
    margin-bottom: var(--spacing-md);
    text-align: justify;
}

.blog-list {
    list-style: none;
    margin: var(--spacing-md) 0;
    padding-left: 0;
}

.blog-list li {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
    position: relative;
}

.blog-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--teal-accent);
    font-weight: bold;
}

.blog-list strong {
    color: var(--teal-accent);
}

.blog-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}

.step {
    background-color: var(--soft-blue);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    text-align: center;
    border-left: 4px solid var(--teal-accent);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--teal-accent);
    color: var(--white);
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
}

.step h4 {
    color: var(--primary-black);
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
}

.step p {
    font-size: 0.9rem;
    color: var(--slate);
    margin-bottom: 0;
}

.blog-cta {
    background-color: var(--soft-blue);
    padding: var(--spacing-xl);
    border-radius: var(--radius-md);
    text-align: center;
    margin-top: var(--spacing-xxl);
}

.blog-cta h2 {
    border-left: none;
    padding-left: 0;
    margin-bottom: var(--spacing-lg);
}

.blog-cta-buttons {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.blog-post-footer {
    background-color: var(--light-gray);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-xl);
    border-top: 2px solid var(--soft-blue);
}

.blog-author h4 {
    color: var(--primary-black);
    margin-bottom: var(--spacing-sm);
}

.blog-author p {
    color: var(--slate);
    margin-bottom: 0;
    line-height: 1.6;
}

@keyframes slide-up {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===================================
   SERVICE CIRCLE DIAGRAM
   =================================== */

.circle-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--spacing-xl) 0;
    position: relative;
    width: 100%;
    min-height: 400px;
}

.circle-segment {
    position: absolute;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background-color: var(--soft-blue);
    color: var(--dark-text);
    border: 2px solid var(--teal-accent);
}

.circle-segment:hover {
    background-color: var(--teal-accent);
    color: var(--white);
    transform: scale(1.1);
}

.circle-segment.active {
    background-color: var(--teal-accent);
    color: var(--white);
    box-shadow: 0 0 30px rgba(74, 144, 164, 0.4);
}

/* Service option buttons */
.service-option-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--soft-blue);
    color: var(--slate);
    border: 2px solid var(--teal-accent);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.service-option-btn:hover {
    background-color: var(--teal-accent);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 164, 0.2);
}

.service-option-btn.active {
    background-color: var(--teal-accent);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(74, 144, 164, 0.3);
}

/* ===================================
   JOURNEY CIRCLE - INTERACTIVE DESIGN
   =================================== */

.journey-circle-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto var(--spacing-xxl);
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.journey-center {
    position: absolute;
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, var(--teal-accent) 0%, #6BA3C0 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 8px 30px rgba(74, 144, 164, 0.3);
    color: var(--white);
    text-align: center;
    padding: var(--spacing-lg);
}

.journey-center h3 {
    margin: 0 0 8px;
    font-size: 1.4rem;
    color: var(--white);
}

.journey-center p {
    margin: 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
}

/* Design Portal Modal - Looks like login, reveals coming soon */
.design-portal-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    animation: fade-in 0.3s ease;
    padding: var(--spacing-lg);
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}

.design-portal-modal.active {
    display: flex;
}

.design-portal-content {
    position: relative;
    max-width: 420px;
    width: 100%;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    animation: slide-up 0.4s ease;
    overflow: hidden;
}

.design-portal-header {
    background: linear-gradient(135deg, var(--teal-accent) 0%, #2C7A99 100%);
    padding: var(--spacing-xl) var(--spacing-lg);
    text-align: center;
    color: white;
}

.design-portal-header h2 {
    margin: 0 0 8px 0;
    font-size: 1.6rem;
    font-weight: 700;
}

.design-portal-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.design-portal-body {
    padding: var(--spacing-xl);
}

.design-portal-body .coming-soon-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
    color: #333;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
}

.design-portal-body h3 {
    color: var(--teal-accent);
    margin: 0 0 var(--spacing-sm) 0;
    font-size: 1.3rem;
}

.design-portal-body .portal-message {
    color: #666;
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    font-size: 0.95rem;
}

.design-portal-features {
    background: var(--soft-blue);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.design-portal-features h4 {
    margin: 0 0 var(--spacing-sm) 0;
    color: var(--primary-black);
    font-size: 0.9rem;
}

.design-portal-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.design-portal-features li {
    padding: 6px 0;
    color: #555;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.design-portal-features li::before {
    content: '✓';
    color: var(--teal-accent);
    font-weight: bold;
}

.design-portal-notify {
    display: flex;
    gap: 10px;
    margin-bottom: var(--spacing-md);
}

.design-portal-notify input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    transition: var(--transition);
}

.design-portal-notify input:focus {
    outline: none;
    border-color: var(--teal-accent);
}

.design-portal-notify button {
    padding: 12px 20px;
    background: var(--teal-accent);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.design-portal-notify button:hover {
    background: #2C7A99;
}

.design-portal-alt {
    text-align: center;
    color: #888;
    font-size: 0.85rem;
}

.design-portal-alt a {
    color: var(--teal-accent);
    text-decoration: none;
    font-weight: 600;
}

.design-portal-alt a:hover {
    text-decoration: underline;
}

.design-portal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    font-weight: bold;
    background: rgba(255,255,255,0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.design-portal-close:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

/* Coming Soon Modal - kept for backwards compatibility */
.coming-soon-modal {
    display: none;
    position: fixed;
    z-index: 998;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fade-in 0.3s ease;
    padding: var(--spacing-lg);
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}

.coming-soon-modal.active {
    display: flex;
}

.coming-soon-modal-content {
    position: relative;
    max-width: 500px;
    background: linear-gradient(135deg, var(--soft-blue) 0%, #F0F8FF 100%);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slide-up 0.4s ease;
    padding: var(--spacing-xl);
    text-align: center;
    border: 2px solid var(--teal-accent);
}

.coming-soon-modal-content h2 {
    color: var(--teal-accent);
    margin-bottom: var(--spacing-md);
    font-size: 1.8rem;
}

.coming-soon-modal-content p {
    color: var(--primary-black);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
    font-size: 0.95rem;
}

.coming-soon-modal-content .feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.coming-soon-modal-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.coming-soon-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--teal-accent);
    font-size: 1.8rem;
    cursor: pointer;
    font-weight: bold;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.coming-soon-modal-close:hover {
    color: var(--primary-black);
    transform: scale(1.2);
}

.journey-stage {
    position: absolute;
    width: 140px;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 5;
}

.journey-stage-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    transition: var(--transition);
    background: linear-gradient(135deg, #E3F2FD 0%, #B3E5FC 100%);
    border-radius: 50%;
    position: relative;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
    border: 3px solid #89CFF0;
}

.journey-stage-icon img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    transition: var(--transition);
}

.journey-stage-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--slate);
    text-align: center;
    background: var(--white);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 2px solid transparent;
}

.journey-stage:hover .journey-stage-label {
    background: var(--teal-accent);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(74, 144, 164, 0.2);
}

.journey-stage:hover .journey-stage-icon {
    transform: scale(1.1);
}

.journey-stage.active .journey-stage-label {
    background: var(--teal-accent);
    color: var(--white);
}

.journey-stage.selected .journey-stage-label {
    background: var(--teal-accent);
    color: var(--white);
    border: 2px solid #2C7A99;
}

.journey-stage.selected .journey-stage-icon {
    position: relative;
}

.journey-stage.selected .journey-stage-icon::after {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 32px;
    height: 32px;
    background-color: #7CB342;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 18px;
    border: 3px solid var(--white);
    box-shadow: 0 2px 8px rgba(124, 179, 66, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Stage Checkboxes */
.stage-checkbox {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.stage-checkbox:hover {
    opacity: 0;
}

.stage-checkbox:checked {
    opacity: 0;
}

/* Request Quote Button */
.btn-request-quote {
    padding: 16px 48px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-request-quote.disabled {
    background: #B0BEC5;
    color: #78909C;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-request-quote:not(.disabled) {
    background: var(--teal-accent);
    color: var(--white);
    cursor: pointer;
}

.btn-request-quote:not(.disabled):hover {
    background: #2C7A99;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 144, 164, 0.3);
}

.btn-request-quote:not(.disabled):active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(74, 144, 164, 0.2);
}

@keyframes rotateClockwise {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Positioning each stage in a circle (6 stages) - evenly spaced 60 degrees apart */
.journey-stage:nth-child(2) { /* Planning - Top (0°) */
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.journey-stage:nth-child(3) { /* Design - Top Right (60°) */
    top: 130px;
    right: 35px;
}

.journey-stage:nth-child(4) { /* Estimate - Bottom Right (120°) */
    bottom: 130px;
    right: 35px;
}

.journey-stage:nth-child(5) { /* Consent - Bottom (180°) */
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.journey-stage:nth-child(6) { /* Construction - Bottom Left (240°) */
    bottom: 130px;
    left: 35px;
}

.journey-stage:nth-child(7) { /* Sign-off - Top Left (300°) */
    top: 130px;
    left: 35px;
}

/* Connecting line (visual circle path) */
.journey-circle-container::before {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    border: 5px dashed var(--teal-accent);
    border-radius: 50%;
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.45;
    animation: rotateClockwise 50s linear infinite;
}

/* Blog Modal Responsive Styles */
@media (max-width: 900px) {
    .blog-modal-content {
        margin: var(--spacing-lg) auto;
        max-width: 95%;
    }

    .blog-post-detail {
        padding: var(--spacing-lg);
    }

    .blog-section h2 {
        font-size: 1.4rem;
    }

    .blog-steps {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media (max-width: 768px) {
    .blog-modal {
        padding: var(--spacing-sm);
    }

    .blog-modal-content {
        margin: var(--spacing-lg) var(--spacing-sm);
        border-radius: var(--radius-md);
    }

    .blog-post-detail {
        padding: var(--spacing-md);
    }

    .blog-post-header h1 {
        font-size: 1.5rem;
    }

    .blog-post-meta {
        gap: var(--spacing-sm);
        font-size: 0.85rem;
    }

    .meta-item {
        padding: 3px 8px;
        font-size: 0.8rem;
    }

    .blog-section h2 {
        font-size: 1.3rem;
        padding-left: var(--spacing-sm);
    }

    .blog-steps {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .blog-cta-buttons {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .blog-cta-buttons .btn {
        width: 100%;
    }

    .blog-modal-close {
        top: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .blog-modal {
        padding: 0;
    }

    .blog-modal-content {
        margin: 0;
        max-width: 100%;
        border-radius: 0;
        max-height: 100vh;
        overflow-y: auto;
    }

    .blog-post-detail {
        padding: var(--spacing-md);
    }

    .blog-post-header {
        padding-bottom: var(--spacing-md);
        margin-bottom: var(--spacing-lg);
    }

    .blog-post-header h1 {
        font-size: 1.3rem;
    }

    .blog-post-intro {
        font-size: 1rem;
    }

    .blog-section h2 {
        font-size: 1.15rem;
    }

    .blog-list li {
        padding-left: var(--spacing-md);
    }

    .step {
        padding: var(--spacing-md);
    }

    .blog-cta {
        padding: var(--spacing-lg);
    }

    .blog-post-footer {
        padding: var(--spacing-md);
    }
}

/* Tablet adjustments */
@media (max-width: 1024px) {
    .journey-circle-container {
        height: 600px;
    }

    .journey-stage {
        width: 120px;
        height: 120px;
    }

    .journey-stage-icon {
        width: 90px;
        height: 90px;
    }

    .journey-center {
        width: 160px;
        height: 160px;
    }

    .journey-stage:nth-child(3) {
        right: 40px;
    }

    .journey-stage:nth-child(4) {
        right: 40px;
    }

    .journey-stage:nth-child(6) {
        left: 40px;
    }

    .journey-stage:nth-child(7) {
        left: 40px;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .journey-circle-container {
        height: auto;
        min-height: 0;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
        padding: var(--spacing-lg) 0;
        position: static;
    }

    .journey-center {
        grid-column: 1 / -1;
        position: static;
        transform: none !important;
        width: 100%;
        max-width: 400px;
        margin: 0 auto var(--spacing-lg);
    }

    .journey-stage {
        position: static !important;
        transform: none !important;
        width: auto;
        height: auto;
    }

    .journey-stage-icon {
        width: 80px;
        height: 80px;
    }

    .journey-stage-label {
        margin-top: var(--spacing-xs);
    }

    .journey-circle-container::before {
        display: none;
    }
}

/* ===================================
   FOOTER
   =================================== */

footer {
    background-color: var(--primary-black);
    color: var(--white);
    padding: var(--spacing-xxl) 0;
    margin-top: var(--spacing-xxl);
    margin-right: -250px;
    padding-right: calc(250px + var(--spacing-xl));
    border-top: 4px solid var(--white);
    border-right: 4px solid var(--white);
    position: relative;
}

footer .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    padding-right: var(--spacing-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: var(--spacing-xxl);
    align-items: start;
}

.footer-brand {
    padding-right: var(--spacing-xl);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.footer-contact-inline {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-contact-inline a {
    color: var(--baby-blue);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-contact-inline a:hover {
    color: var(--white);
}

.footer-links-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--teal-accent);
}

footer ul {
    list-style: none;
}

footer li {
    margin-bottom: var(--spacing-sm);
}

footer a {
    color: var(--baby-blue);
    transition: color 0.3s ease, padding-left 0.3s ease;
}

footer a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: var(--spacing-xl);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .footer-brand {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-right: 0;
        padding-bottom: var(--spacing-xl);
    }
    
    .footer-links-group {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-links-group {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   ANIMATIONS & UTILITIES
   =================================== */

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slide-in-right 0.6s ease-out;
}

.animate-slide-in-up {
    animation: slide-in-up 0.6s ease-out;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.hidden { display: none; }

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

/* ===================================
   RESPONSIVE DESIGN - TABLET
   =================================== */

@media (max-width: 1024px) {
    main {
        margin-right: 0;
    }
    
    nav.sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: var(--spacing-md);
        display: none;
    }
    
    nav.sidebar.active {
        display: block;
    }
    
    .hamburger {
        display: flex;
    }
    
    section.hero {
        margin-right: 0;
        padding-right: 0;
    }
    
    section.alt-bg {
        margin-right: 0;
        padding-right: 0;
    }
    
    footer {
        margin-right: 0;
        padding-right: 0;
        border-right: none;
    }
    
    footer .container {
        padding-right: var(--spacing-lg);
    }
    
    .footer-bottom {
        margin-right: 0;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    section.hero {
        min-height: 400px;
    }
    
    section.hero h1 {
        font-size: 2.5rem;
    }
    
    section.hero .subheadline {
        font-size: 1.1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .circle-diagram {
        min-height: 300px;
    }
    
    .circle-segment {
        width: 100px;
        height: 100px;
        font-size: 0.85rem;
    }
}

/* ===================================
   RESPONSIVE DESIGN - MOBILE
   =================================== */

@media (max-width: 768px) {
    :root {
        font-size: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    section {
        padding: var(--spacing-lg) 0;
    }
    
    section.hero {
        min-height: 300px;
        padding: var(--spacing-lg) 0;
    }
    
    section.hero h1 {
        font-size: 1.8rem;
    }
    
    section.hero .subheadline {
        font-size: 1rem;
    }
    
    section.hero .cta-container {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    section.hero .cta-container button {
        width: 100%;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: var(--spacing-md);
    }
    
    nav.sidebar {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    nav.sidebar.active {
        max-height: 100vh;
        overflow-y: auto;
    }
    
    form {
        max-width: 100%;
    }
    
    .circle-diagram {
        min-height: 250px;
    }
    
    .circle-segment {
        width: 80px;
        height: 80px;
        font-size: 0.7rem;
    }
    
    footer .container {
        grid-template-columns: 1fr;
    }
    
    .project-info,
    .blog-card-content {
        padding: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    section.hero {
        min-height: 250px;
    }
    
    section.hero h1 {
        font-size: 1.5rem;
    }
    
    .value-card {
        padding: var(--spacing-md);
    }
    
    button, .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.95rem;
    }
}

/* ===================================
   SERVICE SELECTION POPUP
   =================================== */

.service-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.service-popup.active {
    display: flex;
}

.service-popup-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideUp 0.3s ease;
}

.popup-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--slate);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.popup-close:hover {
    color: var(--teal-accent);
}

.service-popup-content h3 {
    color: var(--teal-accent);
    margin-bottom: var(--spacing-md);
    margin-top: 0;
}

.service-popup-content p {
    color: var(--slate);
    font-size: 1rem;
}

.service-popup-content .btn {
    margin: var(--spacing-sm) 0;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
