/*
Theme Name: Castaldi Custom Co.
Theme URI: https://castaldicustom.com
Author: Castaldi Custom Co.
Description: Custom WordPress theme for Castaldi Custom Co. - Premium Architectural Millwork & Cabinetry.
Version: 2.0.0
Text Domain: castaldi
*/

:root {
  --graphite-black: #FFFFFF;
  --steel-gray: #5E5E5E;
  --copper-red: #B74F41;
  --copper-red-dark: #9A3F34;
  --construction-gold: #F2C94C;
  --blueprint-blue: #4CC8EE;
  --white: #FFFFFF;
  --off-white: #F8F7F4;
  --cream: #FAF9F6;
  --light-gray: #EBEBEB;
  --medium-gray: #9A9A9A;
  --border-gray: #E0DEDA;
  --text-body: #4A4A4A;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --section-padding: 100px 0;
  --container-width: 1200px;
  --gap: 2rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text-body); background: var(--white); line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: var(--graphite-black); }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.625rem); }
h4 { font-size: 1.125rem; }
p { font-size: 1.0625rem; color: var(--text-body); max-width: 680px; line-height: 1.8; }

.section-label { font-family: var(--font-heading); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--copper-red); display: inline-flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.section-label::before { content: ''; display: block; width: 40px; height: 2px; background: var(--copper-red); }
.text-center { text-align: center; }
.text-center .section-label { justify-content: center; }
.text-center p { margin-left: auto; margin-right: auto; }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 2rem; }
.section { padding: var(--section-padding); }
.section--cream { background: var(--cream); }
.section--off-white { background: var(--off-white); }
.section--dark { background: var(--graphite-black); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark p { color: rgba(255,255,255,0.7); }
.section--dark .section-label { color: var(--construction-gold); }
.section--dark .section-label::before { background: var(--construction-gold); }
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 992px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } :root { --section-padding: 60px 0; } }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-heading); font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; padding: 1rem 2.25rem; border: none; cursor: pointer; transition: all 0.35s ease; }
.btn--primary { background: var(--copper-red); color: var(--white); }
.btn--primary:hover { background: var(--copper-red-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(183,79,65,0.3); }
.btn--outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.6); }
.btn--outline-white:hover { background: var(--white); color: var(--graphite-black); border-color: var(--white); }
.btn--outline-dark { background: transparent; color: var(--graphite-black); border: 2px solid var(--graphite-black); }
.btn--outline-dark:hover { background: var(--graphite-black); color: var(--white); }
.btn--gold { background: var(--construction-gold); color: var(--graphite-black); }
.btn--gold:hover { background: #e0b83e; transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
.btn:hover svg { transform: translateX(4px); }

/* HEADER */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 1.25rem 0; transition: all 0.4s ease; background: transparent; }
.site-header.scrolled { background: rgba(28,28,28,0.97); backdrop-filter: blur(12px); padding: 0.75rem 0; box-shadow: 0 2px 20px rgba(0,0,0,0.1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.site-logo { display: flex; align-items: center; gap: 0.75rem; }
.site-logo img { height: 42px; width: auto; }
.logo-text { font-family: var(--font-heading); font-weight: 800; font-size: 1.125rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--white); line-height: 1.1; }
.logo-text span { display: block; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.25em; color: var(--construction-gold); margin-top: 2px; }
.main-nav { display: flex; align-items: center; gap: 2.5rem; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-family: var(--font-heading); font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.8); position: relative; padding: 0.25rem 0; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--construction-gold); transition: width 0.3s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { font-family: var(--font-heading); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; padding: 0.75rem 1.75rem; background: var(--copper-red); color: var(--white); transition: all 0.3s ease; }
.nav-cta:hover { background: var(--copper-red-dark); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--white); transition: all 0.3s ease; }
@media (max-width: 992px) {
  .menu-toggle { display: flex; }
  .main-nav { position: fixed; top: 0; right: -100%; width: 80%; max-width: 400px; height: 100vh; background: var(--graphite-black); flex-direction: column; justify-content: center; align-items: flex-start; padding: 3rem; gap: 2rem; transition: right 0.4s ease; z-index: 1001; }
  .main-nav.open { right: 0; }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .nav-links a { font-size: 1.25rem; }
}

/* HERO */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; background: linear-gradient(160deg, #1C1C1C 0%, #2a2522 40%, #33261f 70%, #1C1C1C 100%); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(28,28,28,0.88) 0%, rgba(28,28,28,0.65) 50%, rgba(28,28,28,0.5) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 700px; padding-top: 120px; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1.25rem; background: rgba(242,201,76,0.12); border: 1px solid rgba(242,201,76,0.3); font-family: var(--font-heading); font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--construction-gold); margin-bottom: 2rem; }
.hero h1 { color: var(--white); margin-bottom: 1.5rem; }
.hero h1 em { font-style: normal; color: var(--construction-gold); }
.hero-description { color: rgba(255,255,255,0.75); font-size: 1.125rem; margin-bottom: 2.5rem; max-width: 540px; line-height: 1.8; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 3rem; margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,0.1); }
.hero-stat strong { display: block; font-family: var(--font-heading); font-size: 2.5rem; font-weight: 800; color: var(--white); line-height: 1; }
.hero-stat span { font-size: 0.75rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }
@media (max-width: 768px) { .hero-stats { gap: 2rem; flex-wrap: wrap; } .hero-stat strong { font-size: 2rem; } }

/* INTRO / ABOUT */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.intro-content h2 { margin-bottom: 1.25rem; }
.intro-content p { margin-bottom: 1.25rem; }
.intro-image { position: relative; overflow: hidden; }
.intro-image img { width: 100%; height: 480px; object-fit: cover; }
.intro-image-badge { position: absolute; bottom: 2rem; left: 2rem; background: var(--copper-red); color: var(--white); padding: 1.25rem 1.75rem; }
.intro-image-badge strong { display: block; font-family: var(--font-heading); font-size: 2rem; font-weight: 800; }
.intro-image-badge span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; }
@media (max-width: 992px) { .intro-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* PURPOSE STRIP */
.purpose-strip { background: var(--off-white); padding: 50px 0; border-top: 1px solid var(--border-gray); border-bottom: 1px solid var(--border-gray); }
.purpose-strip .container { text-align: center; }
.purpose-strip .section-label { justify-content: center; margin-bottom: 0.75rem; }
.purpose-strip h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); max-width: 700px; margin: 0 auto; }

/* SERVICES */
.services-header { text-align: center; max-width: 680px; margin: 0 auto 4rem; }
.services-header p { margin: 1rem auto 0; }
.service-card { background: var(--white); border: 1px solid var(--border-gray); padding: 2.5rem 2rem; transition: all 0.4s ease; position: relative; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--copper-red); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.06); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: rgba(183,79,65,0.07); color: var(--copper-red); margin-bottom: 1.5rem; }
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.0625rem; margin-bottom: 0.75rem; text-transform: uppercase; }
.service-card p { font-size: 0.9375rem; line-height: 1.7; max-width: 100%; }

/* INDUSTRIES */
.industry-card { position: relative; overflow: hidden; aspect-ratio: 4/3; cursor: pointer; }
.industry-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.industry-card:hover img { transform: scale(1.05); }
.industry-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,28,28,0.9) 0%, rgba(28,28,28,0.15) 60%, transparent 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem; }
.industry-card h3 { color: var(--white); font-size: 1.125rem; margin-bottom: 0.35rem; }
.industry-card p { color: rgba(255,255,255,0.7); font-size: 0.8125rem; max-width: 100%; }

/* PROJECTS */
.project-card { position: relative; overflow: hidden; background: var(--graphite-black); }
.project-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; transition: all 0.5s ease; opacity: 0.9; }
.project-card:hover img { transform: scale(1.03); opacity: 0.4; }
.project-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 2rem; transform: translateY(20px); opacity: 0; transition: all 0.4s ease; }
.project-card:hover .project-info { transform: translateY(0); opacity: 1; }
.project-info h3 { color: var(--white); font-size: 1.125rem; margin-bottom: 0.25rem; }
.project-info span { font-size: 0.75rem; color: var(--construction-gold); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }

/* CLIENTS */
.clients-bar { padding: 60px 0; background: var(--white); border-top: 1px solid var(--border-gray); border-bottom: 1px solid var(--border-gray); }
.clients-bar h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--steel-gray); font-weight: 700; margin-bottom: 2.5rem; }
.client-logos { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 3rem 4rem; }
.client-logos img { height: 40px; width: auto; object-fit: contain; filter: grayscale(100%); opacity: 0.5; transition: all 0.3s ease; }
.client-logos img:hover { filter: grayscale(0%); opacity: 1; }

/* STATS */
.stats-bar { background: var(--copper-red); padding: 3.5rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-item strong { display: block; font-family: var(--font-heading); font-size: clamp(2rem,4vw,3rem); font-weight: 800; color: var(--white); line-height: 1; margin-bottom: 0.5rem; }
.stat-item span { font-size: 0.75rem; color: rgba(255,255,255,0.8); text-transform: uppercase; letter-spacing: 0.15em; font-weight: 600; }
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* TESTIMONIALS */
.testimonial-card { background: var(--white); padding: 2.5rem; border: 1px solid var(--border-gray); position: relative; }
.testimonial-card::before { content: '\201C'; font-family: Georgia, serif; font-size: 5rem; color: var(--copper-red); opacity: 0.12; position: absolute; top: 0.5rem; left: 1.5rem; line-height: 1; }
.testimonial-card blockquote { font-size: 1rem; font-style: italic; color: var(--text-body); line-height: 1.8; margin-bottom: 1.5rem; position: relative; z-index: 1; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-author-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--off-white); display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 800; color: var(--copper-red); font-size: 0.8125rem; }
.testimonial-author-info strong { display: block; font-family: var(--font-heading); font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; }
.testimonial-author-info span { font-size: 0.8125rem; color: var(--medium-gray); }

/* CTA */
.cta-section { position: relative; padding: 80px 0; background: var(--graphite-black); overflow: hidden; }
.cta-section::before { content: ''; position: absolute; top: -50%; right: -10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(242,201,76,0.06) 0%, transparent 70%); pointer-events: none; }
.cta-content { text-align: center; max-width: 650px; margin: 0 auto; position: relative; z-index: 1; }
.cta-content h2 { color: var(--white); margin-bottom: 1rem; }
.cta-content p { color: rgba(255,255,255,0.6); margin: 0 auto 2.5rem; font-size: 1.0625rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-info-block { display: flex; gap: 1rem; margin-bottom: 2rem; }
.contact-info-icon { width: 44px; height: 44px; min-width: 44px; background: rgba(183,79,65,0.07); display: flex; align-items: center; justify-content: center; color: var(--copper-red); }
.contact-info-icon svg { width: 20px; height: 20px; }
.contact-info-block h4 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.25rem; }
.contact-info-block p { font-size: 0.9375rem; max-width: 100%; }
.contact-info-block a { color: var(--copper-red); }
.contact-info-block a:hover { color: var(--copper-red-dark); }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-family: var(--font-heading); font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--graphite-black); }
.form-group input, .form-group textarea, .form-group select { font-family: var(--font-body); font-size: 0.9375rem; padding: 0.875rem 1rem; border: 1px solid var(--border-gray); background: var(--white); color: var(--graphite-black); transition: border-color 0.3s ease; outline: none; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--copper-red); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 992px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 576px) { .form-row { grid-template-columns: 1fr; } }

/* FOOTER */
.site-footer { background: var(--graphite-black); color: rgba(255,255,255,0.6); padding-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand p { color: rgba(255,255,255,0.45); font-size: 0.9375rem; margin-top: 1rem; max-width: 300px; }
.footer-heading { font-family: var(--font-heading); font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--white); margin-bottom: 1.25rem; }
.footer-links a { display: block; font-size: 0.9375rem; color: rgba(255,255,255,0.45); margin-bottom: 0.625rem; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--construction-gold); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.875rem; font-size: 0.9375rem; }
.footer-contact-item svg { width: 16px; height: 16px; min-width: 16px; color: var(--copper-red); margin-top: 3px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 0; font-size: 0.8125rem; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(255,255,255,0.35); }
.footer-bottom-links a:hover { color: var(--white); }
@media (max-width: 992px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 576px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; } }

/* PAGE HEADER */
.page-header { background: var(--graphite-black); padding: 160px 0 80px; position: relative; overflow: hidden; }
.page-header::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(to right, var(--copper-red), var(--construction-gold)); }
.page-header h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-header p { color: rgba(255,255,255,0.55); font-size: 1.0625rem; }
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: rgba(255,255,255,0.35); margin-bottom: 1.5rem; }
.breadcrumb a { color: rgba(255,255,255,0.35); }
.breadcrumb a:hover { color: var(--construction-gold); }

/* PROCESS STEPS */
.process-step { text-align: center; padding: 2rem; }
.process-number { width: 56px; height: 56px; border: 2px solid var(--construction-gold); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; font-family: var(--font-heading); font-weight: 800; font-size: 1.125rem; color: var(--construction-gold); }
.process-step h4 { color: var(--white); font-size: 0.9375rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.process-step p { color: rgba(255,255,255,0.5); font-size: 0.875rem; max-width: 100%; margin: 0 auto; }

/* VALUES */
.value-item { padding: 1.5rem; border-left: 3px solid var(--copper-red); background: var(--off-white); }
.value-item h4 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.35rem; }
.value-item p { font-size: 0.875rem; line-height: 1.6; max-width: 100%; }

/* ANIMATIONS */
.fade-in { opacity: 0; transform: translateY(25px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right { opacity: 0; transform: translateX(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in-right.visible { opacity: 1; transform: translateX(0); }
.stagger-children .fade-in:nth-child(1) { transition-delay: 0.1s; }
.stagger-children .fade-in:nth-child(2) { transition-delay: 0.2s; }
.stagger-children .fade-in:nth-child(3) { transition-delay: 0.3s; }
.stagger-children .fade-in:nth-child(4) { transition-delay: 0.4s; }

/* WP CORE */
.wp-block-image img { max-width: 100%; height: auto; }
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }
