:root {
    --ah-red: #b8323a;
    --ah-red-dark: #8e2229;
    --ah-ink: #141414;
    --ah-text: #3a3632;
    --ah-muted: #7a726a;
    --ah-stone: #f6f2ec;
    --ah-sand: #e9e1d5;
    --ah-line: #ddd4c7;
    --ah-white: #fff;
    --ah-phone: #1e6fd9;
    --ah-whatsapp: #25d366;
    --ah-linkedin: #0a66c2;
    --ah-serif: 'Cormorant Garamond', Georgia, serif;
    --ah-sans: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
    --ah-wide: 1200px;
    --ah-narrow: 820px;
}

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

body {
    margin: 0;
    font-family: var(--ah-sans);
    font-size: 17px;
    line-height: 1.75;
    color: var(--ah-text);
    background: var(--ah-white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ah-red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ah-red-dark); }

h1, h2, h3, h4 {
    font-family: var(--ah-serif);
    color: var(--ah-ink);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 .6em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1.2em; }

.ah-container { width: 100%; max-width: var(--ah-wide); margin: 0 auto; padding: 0 24px; }


.ah-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 4px; color: var(--ah-ink); font-weight: 700; font-size: 16px; line-height: 1;
    transition: color .2s, transform .2s;
}
.ah-btn svg { width: 22px; height: 22px; flex: none; }
.ah-btn:hover { color: var(--ah-red); transform: translateY(-1px); }
.ah-btn--phone svg { color: var(--ah-phone); }
.ah-btn--whatsapp svg { color: var(--ah-whatsapp); }

.ah-social {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; transition: transform .2s;
}
.ah-social svg { width: 24px; height: 24px; }
.ah-social:hover { transform: translateY(-2px); }
.ah-social--linkedin svg { color: var(--ah-linkedin); }
.ah-header__actions { gap: 18px; }

.ah-footer .ah-btn, .ah-footer .ah-btn svg { color: #fff; }
.ah-footer .ah-btn:hover { color: #e26d74; }

.ah-slider { width: 100%; line-height: 0; }
.ah-slider .metaslider { max-width: none !important; width: 100% !important; margin: 0 !important; }
.ah-slider img { width: 100%; }

.ah-header { background: var(--ah-white); border-bottom: 1px solid var(--ah-line); position: relative; z-index: 20; }
.ah-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.ah-header__brand { display: flex; align-items: center; gap: 22px; min-width: 0; }
.ah-header__slogan { font-family: var(--ah-serif); font-style: italic; font-size: 1.3rem; line-height: 1.3; color: var(--ah-red); max-width: 260px; padding-left: 22px; border-left: 1px solid var(--ah-line); }
.ah-header__right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.ah-header__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.site-logo img, .custom-logo { width: auto; height: 90px; }

.ah-menu, .ah-menu ul { list-style: none; margin: 0; padding: 0; }
.ah-menu { display: flex; gap: 30px; }
.ah-menu > li { position: relative; }
.ah-menu a { color: var(--ah-ink); font-weight: 500; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; padding: 6px 0; display: block; }
.ah-menu a:hover, .ah-menu .current-menu-item > a { color: var(--ah-red); }
.ah-menu ul { position: absolute; top: 100%; left: -16px; min-width: 220px; background: #fff; border: 1px solid var(--ah-line); padding: 8px 16px; opacity: 0; visibility: hidden; transition: opacity .2s; }
.ah-menu li:hover > ul { opacity: 1; visibility: visible; }
.ah-menu ul a { text-transform: none; letter-spacing: 0; }

.ah-nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.ah-nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ah-ink); margin: 6px 0; }

.ah-main { min-height: 50vh; }

.ah-content > * { max-width: var(--ah-narrow); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.ah-content > .alignwide { max-width: var(--ah-wide); }
.ah-content > .alignfull { max-width: none; padding-left: 0; padding-right: 0; }
.ah-content { padding-bottom: 40px; }
.ah-content--home { padding-bottom: 0; }

.ah-eyebrow, .ah-content .ah-eyebrow {
    font-family: var(--ah-sans); font-size: 13px; font-weight: 600;
    letter-spacing: .22em; text-transform: uppercase; color: var(--ah-red);
    margin-bottom: .8em;
}

.ah-hero {
    background: var(--ah-stone);
    padding: clamp(60px, 9vw, 120px) 24px !important;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.ah-hero::after {
    content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
    width: 80px; height: 3px; background: var(--ah-red);
}
.ah-hero > * { max-width: var(--ah-narrow); margin-left: auto; margin-right: auto; }
.ah-hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: .4em; }
.ah-hero .ah-hero__lead { font-size: 1.2rem; color: var(--ah-text); max-width: 680px; }

.ah-section { padding: clamp(50px, 7vw, 90px) 24px !important; }
.ah-section > * { max-width: var(--ah-narrow); margin-left: auto; margin-right: auto; }
.ah-section--stone { background: var(--ah-stone); }
.ah-section--dark { background: var(--ah-ink); color: #d8d0c4; }
.ah-section--dark h2, .ah-section--dark h3 { color: #fff; }
.ah-section--dark .ah-eyebrow { color: #e26d74; }

.ah-lead { font-family: var(--ah-serif); font-size: 1.55rem; line-height: 1.5; color: var(--ah-ink); }

.ah-quote {
    border-left: 3px solid var(--ah-red); padding: 6px 0 6px 26px !important; margin: 2em auto !important;
    font-family: var(--ah-serif); font-size: 1.45rem; line-height: 1.5; font-style: italic; color: var(--ah-ink);
}

.ah-stats { display: flex; flex-wrap: wrap; gap: 20px; max-width: var(--ah-wide) !important; margin: 0 auto; }
.ah-stat { flex: 1 1 200px; text-align: center; padding: 28px 18px; border: 1px solid var(--ah-line); background: #fff; }
.ah-stat strong { display: block; font-family: var(--ah-serif); font-size: 2.8rem; line-height: 1; color: var(--ah-red); margin-bottom: 10px; }
.ah-stat span { font-size: 14px; color: var(--ah-muted); text-transform: uppercase; letter-spacing: .08em; }

.ah-values { display: flex; flex-wrap: wrap; gap: 20px; max-width: var(--ah-wide) !important; margin: 30px auto 0; }
.ah-value { flex: 1 1 240px; padding: 28px; border: 1px solid rgba(255,255,255,.14); }
.ah-value h3 { font-size: 1.35rem; margin-bottom: .4em; }
.ah-value p { margin: 0; font-size: 15px; }
.ah-value__num { display: block; font-family: var(--ah-serif); color: #e26d74; font-size: 1.1rem; margin-bottom: 8px; }

.ah-projects { display: flex; flex-wrap: wrap; gap: 14px; max-width: var(--ah-wide) !important; margin: 30px auto; padding: 0; list-style: none; }
.ah-project {
    flex: 1 1 260px; display: flex; align-items: center; gap: 14px;
    padding: 18px 20px; background: #fff; border: 1px solid var(--ah-line); border-left: 3px solid var(--ah-red);
    font-family: var(--ah-serif); font-size: 1.25rem; font-weight: 600; color: var(--ah-ink); line-height: 1.3;
}

.ah-cta { text-align: center; }
.ah-cta .ah-btn { font-size: 16px; padding: 12px 22px; margin: 4px; }

.ah-section-title { margin-bottom: .5em; }

.ah-portfolio { padding: clamp(50px, 7vw, 90px) 0; }
.ah-portfolio--archive { padding-top: 20px; }
.ah-portfolio > .ah-container > .ah-eyebrow, .ah-portfolio > .ah-container > .ah-section-title { text-align: center; }

.ah-cards { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 30px; }
.ah-card { flex: 1 1 300px; max-width: calc((100% - 56px) / 3); background: #fff; border: 1px solid var(--ah-line); display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.ah-card:hover { box-shadow: 0 14px 34px rgba(20, 20, 20, .09); transform: translateY(-3px); }
.ah-card__img { display: block; aspect-ratio: 16 / 11; overflow: hidden; background: var(--ah-sand); }
.ah-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ah-card:hover .ah-card__img img { transform: scale(1.04); }
.ah-card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--ah-sand), var(--ah-stone)); }
.ah-card__body { padding: 22px 24px 26px; }
.ah-card__title { font-size: 1.45rem; margin-bottom: .4em; }
.ah-card__title a { color: var(--ah-ink); }
.ah-card__title a:hover { color: var(--ah-red); }
.ah-card__excerpt { font-size: 15px; color: var(--ah-muted); margin: 0; line-height: 1.6; }

.ah-portfolio__more { text-align: center; margin-top: 44px; }
.ah-link-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 30px; border: 2px solid var(--ah-ink); color: var(--ah-ink);
    font-weight: 600; font-size: 15px; letter-spacing: .08em; text-transform: uppercase;
    transition: background .2s, color .2s, border-color .2s;
}
.ah-link-btn svg { width: 18px; height: 18px; transition: transform .2s; }
.ah-link-btn:hover { background: var(--ah-red); border-color: var(--ah-red); color: #fff; }
.ah-link-btn:hover svg { transform: translateX(4px); }

.ah-page-head { padding: clamp(40px, 6vw, 70px) 0 30px; text-align: center; background: var(--ah-stone); margin-bottom: 40px; }
.ah-page-head__desc { max-width: var(--ah-narrow); margin: 0 auto; color: var(--ah-muted); }
.ah-single__thumb { max-width: 1000px; margin-bottom: 40px; }
.ah-single__thumb img { width: 100%; }

.ah-content .wp-block-image img { height: auto; }
.ah-content .wp-block-gallery { max-width: var(--ah-wide); }

.ah-pagination { margin-top: 40px; text-align: center; }
.ah-pagination .page-numbers { display: inline-block; min-width: 42px; padding: 8px 12px; margin: 0 3px; border: 1px solid var(--ah-line); color: var(--ah-ink); }
.ah-pagination .page-numbers.current, .ah-pagination .page-numbers:hover { background: var(--ah-red); border-color: var(--ah-red); color: #fff; }

.ah-footer { background: var(--ah-ink); color: #bdb5aa; margin-top: 0; }
.ah-footer__top { padding-top: 64px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); text-align: center; }
.ah-footer__big { font-family: var(--ah-serif); font-weight: 600; font-style: italic; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.15; color: #fff; margin: 0 auto; max-width: 900px; }
.ah-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 30px; padding-top: 36px; padding-bottom: 36px; }
.ah-footer__contact { gap: 18px !important; }
.ah-footer__name { font-family: var(--ah-serif); font-size: 1.7rem; font-weight: 600; color: #fff; margin: 0 0 .2em; }
.ah-footer__city { font-size: 14px; margin: 0; }
.ah-footer__menu { list-style: none; margin: 0; padding: 0; }
.ah-footer__menu a { color: #d8d0c4; font-size: 15px; }
.ah-footer__menu a:hover { color: #fff; }
.ah-footer__contact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ah-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 13px; color: #8a8278; }

.editor-styles-wrapper { font-family: var(--ah-sans); font-size: 17px; line-height: 1.75; color: var(--ah-text); }
.editor-styles-wrapper .ah-hero, .editor-styles-wrapper .ah-section { max-width: none !important; }

@media (max-width: 980px) {
    .ah-card { max-width: calc((100% - 28px) / 2); }
}

@media (max-width: 820px) {
    .ah-header__inner { flex-wrap: wrap; justify-content: center; }
    .ah-header__brand { flex-direction: column; gap: 6px; text-align: center; }
    .ah-header__slogan { border-left: 0; padding-left: 0; max-width: none; font-size: 1.1rem; }
    .ah-header__right { flex-direction: row; align-items: center; justify-content: center; width: 100%; }
    .site-logo img, .custom-logo { height: 70px; }
    .ah-nav-toggle { display: block; }
    .ah-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--ah-line); padding: 10px 24px 20px; }
    .ah-nav.is-open { display: block; }
    .ah-menu { flex-direction: column; gap: 0; }
    .ah-menu a { padding: 12px 0; border-bottom: 1px solid var(--ah-line); }
    .ah-menu ul { position: static; opacity: 1; visibility: visible; border: 0; padding: 0 0 0 16px; }
}

@media (max-width: 620px) {
    body { font-size: 16px; }
    .ah-card { max-width: 100%; }
    .ah-btn { font-size: 15px; }
    .ah-footer__contact { gap: 12px !important; flex-wrap: nowrap !important; }
    .ah-footer .ah-btn { font-size: 14px; gap: 5px; padding: 6px 0; }
    .ah-footer .ah-btn svg { width: 18px; height: 18px; }
    .ah-footer .ah-social { width: 24px; height: 24px; }
    .ah-footer .ah-social svg { width: 20px; height: 20px; }
    .ah-footer__inner { flex-direction: column; }
    .ah-lead { font-size: 1.3rem; }
    .ah-quote { font-size: 1.25rem; }
}
