/*
Theme Name: Golden Stone
Theme URI: https://goldenstone-id.com
Author: Golden Stone
Author URI: https://goldenstone-id.com
Description: A clean, modern WordPress theme for Golden Stone - Trusted Business Consultant. B2B business consulting firm with professional corporate aesthetic.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: goldenstone
Tags: business, corporate, consulting, one-column, custom-menu, featured-images, translation-ready
*/

/* ========================================
   CSS RESET & BASE
   ======================================== */

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

:root {
    --gold: #bb9d56;
    --gold-dark: #9a8245;
    --gold-light: #d4be7e;
    --black: #1a1a1a;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray-medium: #e0e0e0;
    --gray-text: #666666;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius: 8px;
    --container: 1200px;
}

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--black);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--black);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    margin-bottom: 1rem;
    color: var(--gray-text);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
}

.section--gray {
    background: var(--gray-light);
}

.section--dark {
    background: var(--black);
    color: var(--white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
    color: var(--white);
}

.section--dark p {
    color: rgba(255, 255, 255, 0.7);
}

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

.text-gold {
    color: var(--gold);
}

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.section-title {
    margin-bottom: 1.5rem;
}

.section-description {
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-block;
    padding: 14px 36px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

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

.btn--primary:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(187, 157, 86, 0.4);
}

.btn--outline {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
}

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

.btn--outline-white {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

.btn--large {
    padding: 18px 48px;
    font-size: 1rem;
}

/* ========================================
   HEADER / NAVIGATION
   ======================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition);
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    border-bottom: 1px solid var(--gray-medium);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    max-width: var(--container);
    margin: 0 auto;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    letter-spacing: 1px;
}

.site-logo span {
    color: var(--gold);
}

/* Primary Navigation */
.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.primary-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--black);
    position: relative;
    padding: 0.25rem 0;
}

.primary-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition);
}

.primary-nav a:hover::after,
.primary-nav .current-menu-item a::after,
.primary-nav .current_page_item a::after {
    width: 100%;
}

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--black);
    transition: all var(--transition);
}

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

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

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

/* ========================================
   HERO SECTIONS
   ======================================== */

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 120px 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero--page {
    min-height: 60vh;
}

.hero--small {
    min-height: 40vh;
}

.hero__content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero__label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 2rem;
}

.hero__title {
    margin-bottom: 1.5rem;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
}

.hero__subtitle {
    font-size: 1.2rem;
    color: var(--gray-text);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   FULL-WIDTH IMAGE SECTION
   ======================================== */

.fullwidth-image {
    width: 100%;
    height: 500px;
    background: var(--gray-light);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.fullwidth-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.3);
}

/* ========================================
   ABOUT PREVIEW SECTION
   ======================================== */

.about-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-preview__image {
    aspect-ratio: 4/3;
    background: var(--gray-light);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.about-preview__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-preview__image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gold) 0%, transparent 60%);
    opacity: 0.1;
    z-index: 1;
}

.about-preview__content .section-label {
    margin-bottom: 1rem;
}

.about-preview__content h2 {
    margin-bottom: 1.5rem;
}

.about-preview__content p {
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* ========================================
   SERVICES CARDS
   ======================================== */

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

.service-card {
    background: var(--white);
    padding: 3rem 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card__icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(187, 157, 86, 0.1);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    color: var(--gold);
    font-size: 1.5rem;
}

.service-card__title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-card__text {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-card__link {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-card__link:hover {
    gap: 0.75rem;
}

.service-card__link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition);
}

.service-card__link:hover svg {
    transform: translateX(3px);
}

/* Services detail (services page) */
.services-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.service-detail-card {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border-left: 4px solid transparent;
}

.service-detail-card:hover {
    border-left-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.service-detail-card__number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(187, 157, 86, 0.2);
    margin-bottom: 1rem;
    line-height: 1;
}

.service-detail-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-detail-card p {
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ========================================
   PORTFOLIO / WORKS GRID
   ======================================== */

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

.work-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--gray-light);
    cursor: pointer;
}

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

.work-item__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.85) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.work-item:hover .work-item__overlay {
    opacity: 1;
}

.work-item:hover img {
    transform: scale(1.05);
}

.work-item__overlay h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.work-item__overlay span {
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Placeholder for works without images */
.work-item--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--gray-medium) 100%);
}

.work-item--placeholder .work-item__overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.7) 0%, transparent 80%);
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
    padding: 100px 0;
    text-align: center;
    background: var(--black);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(187, 157, 86, 0.05) 0%, transparent 50%);
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
    position: relative;
}

.cta-section .btn {
    position: relative;
}

/* ========================================
   CONTACT PAGE
   ======================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    padding-top: 1rem;
}

.contact-info__item {
    margin-bottom: 2.5rem;
}

.contact-info__item h4 {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
    font-family: var(--font-body);
}

.contact-info__item p {
    font-size: 1.05rem;
    color: var(--black);
    line-height: 1.8;
}

.contact-info__item a {
    color: var(--black);
    border-bottom: 1px solid var(--gold);
    padding-bottom: 2px;
}

.contact-info__item a:hover {
    color: var(--gold);
}

/* Contact Form 7 Styling */
.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-form .wpcf7-form label,
.contact-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.contact-form .wpcf7-form input[type="text"],
.contact-form .wpcf7-form input[type="email"],
.contact-form .wpcf7-form input[type="tel"],
.contact-form .wpcf7-form textarea,
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--gray-medium);
    border-radius: 4px;
    background: var(--gray-light);
    transition: all var(--transition);
    margin-bottom: 1.5rem;
    outline: none;
}

.contact-form .wpcf7-form input:focus,
.contact-form .wpcf7-form textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(187, 157, 86, 0.1);
}

.contact-form .wpcf7-form textarea,
.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .wpcf7-form input[type="submit"],
.contact-form input[type="submit"] {
    display: inline-block;
    padding: 14px 36px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: var(--gold);
    color: var(--white);
    border: 2px solid var(--gold);
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition);
}

.contact-form .wpcf7-form input[type="submit"]:hover,
.contact-form input[type="submit"]:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(187, 157, 86, 0.4);
}

.wpcf7-response-output {
    border-color: var(--gold) !important;
    border-radius: 4px !important;
    padding: 1rem !important;
    margin-top: 1rem !important;
}

.wpcf7 form .wpcf7-response-output {
    margin: 1rem 0 0 !important;
}

.wpcf7-form p {
    margin-bottom: 0;
    color: var(--black);
}

/* ========================================
   BLOG / POSTS
   ======================================== */

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

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

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.post-card__image {
    aspect-ratio: 16/10;
    background: var(--gray-light);
    overflow: hidden;
}

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

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

.post-card__content {
    padding: 2rem;
}

.post-card__meta {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.post-card__title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.post-card__title a:hover {
    color: var(--gold);
}

.post-card__excerpt {
    font-size: 0.95rem;
    color: var(--gray-text);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card__link {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.post-card__link:hover {
    gap: 0.75rem;
}

/* Single Post */
.single-post-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 80px 2rem;
}

.single-post-content .post-header {
    text-align: center;
    margin-bottom: 3rem;
}

.single-post-content .post-meta {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.single-post-content .post-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

.single-post-content .post-featured-image {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 3rem;
    background: var(--gray-light);
}

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

/* Post Content Typography */
.post-body {
    font-size: 1.05rem;
    line-height: 1.9;
}

.post-body p {
    margin-bottom: 1.5rem;
    color: var(--black);
}

.post-body h2 {
    font-size: 1.8rem;
    margin: 3rem 0 1.5rem;
}

.post-body h3 {
    font-size: 1.4rem;
    margin: 2.5rem 0 1rem;
}

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

.post-body ul {
    list-style: disc;
}

.post-body ol {
    list-style: decimal;
}

.post-body li {
    margin-bottom: 0.5rem;
    color: var(--black);
}

.post-body blockquote {
    border-left: 4px solid var(--gold);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: var(--gray-light);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.post-body blockquote p {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--black);
    margin-bottom: 0;
}

.post-body img {
    border-radius: var(--radius);
    margin: 2rem 0;
}

.post-body a {
    color: var(--gold);
    border-bottom: 1px solid var(--gold);
}

.post-body a:hover {
    color: var(--gold-dark);
}

/* Post Navigation */
.post-nav {
    display: flex;
    justify-content: space-between;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--gray-medium);
}

.post-nav a {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
}

.post-nav a:hover {
    color: var(--gold-dark);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 3rem 0;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    color: var(--black);
    transition: all var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--gold);
    color: var(--white);
}

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

.site-footer {
    background: var(--black);
    color: rgba(255, 255, 255, 0.6);
    padding: 60px 0 30px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .site-logo {
    color: var(--white);
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-nav h4,
.footer-social h4 {
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.footer-nav ul li {
    margin-bottom: 0.75rem;
}

.footer-nav ul li a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    transition: color var(--transition);
}

.footer-nav ul li a:hover {
    color: var(--gold);
}

.footer-social-links {
    display: flex;
    gap: 1rem;
}

.footer-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.5);
    transition: all var(--transition);
}

.footer-social-links a:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.footer-social-links svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--gold);
}

.footer-bottom a:hover {
    color: var(--gold-light);
}

/* ========================================
   404 PAGE
   ======================================== */

.error-404 {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 2rem;
}

.error-404__number {
    font-family: var(--font-heading);
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 700;
    color: var(--gray-light);
    line-height: 1;
    margin-bottom: 1rem;
}

.error-404 h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-404 p {
    max-width: 500px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

/* ========================================
   SCROLL REVEAL ANIMATIONS
   ======================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Staggered animation delays for children */
.stagger-children .reveal:nth-child(1) { transition-delay: 0s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.15s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.3s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.45s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.6s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.75s; }

/* Hero specific animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.hero__label {
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero__title {
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero__subtitle {
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero__buttons {
    animation: fadeInUp 0.8s ease 0.8s both;
}

/* ========================================
   PAGE TEMPLATE: ABOUT
   ======================================== */

.about-description {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-description h2 {
    position: sticky;
    top: 120px;
}

.about-description__text p {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    color: var(--black);
}

.about-what-we-do {
    text-align: center;
}

.about-what-we-do__content {
    max-width: 800px;
    margin: 0 auto;
}

.about-what-we-do__content p {
    font-size: 1.15rem;
    line-height: 1.9;
}

/* ========================================
   WORDPRESS DEFAULTS
   ======================================== */

.alignleft {
    float: left;
    margin: 0 1.5rem 1.5rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1.5rem 1.5rem;
}

.aligncenter {
    display: block;
    margin: 0 auto 1.5rem;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5rem;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: var(--gray-text);
    text-align: center;
    padding-top: 0.5rem;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Page Content (editable from wp-admin) */
.page-content {
    font-size: 1.05rem;
    line-height: 1.9;
}

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

.page-content .lead {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.7;
}

.page-content h4 {
    font-size: 1.6rem;
    margin: 2.5rem 0 1rem;
    color: var(--gold);
}

.page-content h5 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--gray-text);
}

.page-content h6 {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 2rem 0 0.5rem;
    color: var(--gold);
}

.page-content ul,
.page-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.page-content ul {
    list-style: none;
    padding-left: 0;
}

.page-content ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    border-bottom: 1px solid #eee;
}

.page-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 2rem 0;
}

.page-content a {
    color: var(--gold);
    text-decoration: underline;
}

.page-content a:hover {
    color: var(--gold-dark);
}

/* First section (below fixed nav) */
.section--first {
    padding-top: 140px;
}

/* ========================================
   ARTICLE CARDS (Portfolio / Blog Articles)
   ======================================== */

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

.article-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.article-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.article-card__image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--gray-light);
}

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

.article-card:hover .article-card__image img {
    transform: scale(1.05);
}

.article-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e0d0 100%);
}

.article-card__placeholder span {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--gold);
    opacity: 0.5;
}

.article-card__content {
    padding: 1.5rem;
}

.article-card__date {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 0.75rem;
}

.article-card__title {
    font-size: 1.15rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card__excerpt {
    font-size: 0.9rem;
    color: var(--gray-text);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.article-card__readmore {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.article-card:hover .article-card__readmore {
    gap: 0.75rem;
}

.article-card__readmore svg {
    width: 14px;
    height: 14px;
}

/* Single Article */
.article-single__featured {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 3rem;
    aspect-ratio: 16/9;
}

.article-single__featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-single__content {
    font-size: 1.05rem;
    line-height: 1.9;
}

.article-single__content p {
    margin-bottom: 1.5rem;
}

.article-single__content h2 {
    font-size: 1.8rem;
    margin: 3rem 0 1.5rem;
}

.article-single__content h3 {
    font-size: 1.4rem;
    margin: 2.5rem 0 1rem;
}

.container--narrow {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Article Layout (content + gallery sidebar) */
.article-layout--with-gallery {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    align-items: start;
}

.article-layout__content {
    min-width: 0;
}

.article-layout__gallery {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-gallery__item {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--gray-light);
}

.article-gallery__item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.article-gallery__item:hover img {
    transform: scale(1.05);
}

/* Article Navigation */
.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #eee;
}

.article-nav__item {
    flex: 1;
    text-decoration: none;
    color: inherit;
    padding: 1.5rem;
    border-radius: var(--radius);
    transition: background 0.3s ease;
}

.article-nav__item:hover {
    background: var(--gray-light);
}

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

.article-nav__label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 0.5rem;
}

.article-nav__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    display: block;
}

/* Page Hero Small */
.page-hero--small {
    padding: 140px 0 60px;
    text-align: center;
}

.page-hero__date {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 1rem;
    display: block;
}

.page-hero__subtitle {
    font-size: 1.1rem;
    color: var(--gray-text);
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Pagination */
.pagination {
    margin-top: 3rem;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid #eee;
    color: var(--black);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

/* ========================================
   RESPONSIVE: TABLET
   ======================================== */

@media (max-width: 1024px) {
    .section {
        padding: 80px 0;
    }

    .about-preview {
        gap: 3rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-detail-grid {
        gap: 2rem;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* ========================================
   RESPONSIVE: MOBILE
   ======================================== */

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .container {
        padding: 0 1.25rem;
    }

    /* Mobile Navigation */
    .menu-toggle {
        display: flex;
    }

    .primary-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--white);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right 0.4s ease;
        z-index: 1000;
    }

    .primary-nav.active {
        right: 0;
    }

    .primary-nav ul {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .primary-nav a {
        font-size: 1.5rem;
    }

    /* Hero */
    .hero {
        min-height: 80vh;
        padding: 100px 1.25rem;
    }

    .hero--page {
        min-height: 50vh;
    }

    .hero--small {
        min-height: 35vh;
    }

    .hero__title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    /* Layouts */
    .about-preview {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-description {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-description h2 {
        position: static;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-detail-grid {
        grid-template-columns: 1fr;
    }

    .works-grid {
        grid-template-columns: 1fr;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-layout--with-gallery {
        grid-template-columns: 1fr;
    }

    .article-layout__gallery {
        position: static;
        flex-direction: row;
        overflow-x: auto;
    }

    .article-gallery__item {
        min-width: 250px;
    }

    .article-nav {
        flex-direction: column;
    }

    .article-nav__next {
        text-align: left;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-form {
        padding: 2rem;
    }

    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* CTA */
    .cta-section {
        padding: 60px 0;
    }

    .fullwidth-image {
        height: 300px;
        background-attachment: scroll;
    }
}

@media (max-width: 480px) {
    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn--large {
        padding: 14px 36px;
        width: 100%;
    }

    .service-card {
        padding: 2rem;
    }

    .service-detail-card {
        padding: 2rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
}
