/* =========================================================
   OCTAGRAM CONSTRUCTION — Modern Design System
   ========================================================= */

:root {
    --bg: #1c1917;
    --surface: #26221f;
    --surface-2: #2d2824;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);

    --accent: #c9a876;
    --accent-2: #d4b382;
    --accent-soft: rgba(201, 168, 118, 0.12);

    --text: #ecebe6;
    --text-muted: #9aa0ac;
    --text-dim: #6b7280;

    --light: #f5f3ef;
    --light-2: #eceae3;

    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 30px 60px rgba(0, 0, 0, 0.25);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --dur: 0.6s;

    --container: 1240px;
    --primary: var(--accent);
    --dark: var(--bg);
}

/* ---------- Base reset ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: 'Inter', 'Heebo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1f2c;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; transition: color .3s var(--ease); }
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Nunito', Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.15;
    color: #1c1917;
    margin: 0 0 .5em;
}

h1 { font-size: clamp(2.4rem, 4.5vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3.2vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.85rem); }
h4 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

::selection { background: var(--accent); color: #1c1917; }

/* ---------- Utilities ---------- */
.container,
.container-xxl,
.container-fluid {
    width: 100%;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}
.container,
.container-xxl { max-width: var(--container); }
.container-fluid { max-width: 100%; }
@media (min-width: 1400px) { .container-xxl { max-width: 1320px; } }

.section { padding: clamp(60px, 9vw, 120px) 0; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}
.kicker::before {
    content: "";
    width: 32px;
    height: 1px;
    background: var(--accent);
}

.display-1, .display-2, .display-3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.02em;
}
.display-3 { font-size: clamp(2.5rem, 6vw, 5rem); }

.lead {
    font-size: 1.125rem;
    color: #525866;
    line-height: 1.7;
}

.text-muted-2 { color: var(--text-muted); }
.text-accent { color: var(--accent) !important; }
.text-primary { color: var(--accent) !important; }
.bg-light { background: var(--light) !important; }
.bg-dark { background: var(--bg) !important; color: var(--text); }
.bg-white { background: #fff !important; }

.fw-medium { font-weight: 500 !important; }
.fw-semi-bold { font-weight: 600 !important; }

/* ---------- Bootstrap-compatible grid helpers ---------- */
.row { display: flex; flex-wrap: wrap; margin-left: -12px; margin-right: -12px; row-gap: 0; }
.row > [class*="col-"] { padding-left: 12px; padding-right: 12px; }
.row.g-2 { --gap: 8px; }
.row.g-3 { --gap: 16px; }
.row.g-4 { --gap: 24px; }
.row.g-5 { --gap: 40px; }
.row.g-2, .row.g-3, .row.g-4, .row.g-5 {
    margin-left: calc(-1 * var(--gap) / 2);
    margin-right: calc(-1 * var(--gap) / 2);
    row-gap: var(--gap);
}
.row.g-2 > [class*="col-"],
.row.g-3 > [class*="col-"],
.row.g-4 > [class*="col-"],
.row.g-5 > [class*="col-"] {
    padding-left: calc(var(--gap) / 2);
    padding-right: calc(var(--gap) / 2);
}

[class*="col-"] { flex: 0 0 auto; width: 100%; }
@media (min-width: 576px) {
  .col-sm-6 { width: 50%; }
  .col-sm-10 { width: 83.333%; }
}
@media (min-width: 768px) {
  .col-md-4 { width: 33.333%; }
  .col-md-6 { width: 50%; }
}
@media (min-width: 992px) {
  .col-lg-3 { width: 25%; }
  .col-lg-4 { width: 33.333%; }
  .col-lg-5 { width: 41.667%; }
  .col-lg-6 { width: 50%; }
  .col-lg-7 { width: 58.333%; }
  .col-lg-8 { width: 66.667%; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: all .4s var(--ease);
    position: relative;
    overflow: hidden;
    background: transparent;
    color: inherit;
}
.btn::after {
    content: "";
    position: absolute; inset: 0;
    background: currentColor;
    opacity: 0;
    transition: opacity .4s var(--ease);
    pointer-events: none;
}
.btn-primary {
    background: var(--accent);
    color: #1c1917 !important;
    border-color: var(--accent);
}
.btn-primary:hover {
    background: transparent;
    color: var(--accent) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 168, 118, 0.25);
}
.btn-outline {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}
.btn-outline:hover {
    background: #fff;
    color: #1c1917;
    border-color: #fff;
}
.btn-dark {
    background: #1c1917;
    color: #fff !important;
    border-color: #1c1917;
}
.btn-dark:hover { background: var(--accent); border-color: var(--accent); color: #1c1917 !important; }

.btn-lg { padding: 18px 38px; font-size: 15px; }
.btn-sm { padding: 10px 20px; font-size: 12px; }

.btn-link {
    padding: 0;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 500;
    border: none;
    background: transparent;
}

.btn-square, .btn-sm-square, .btn-lg-square {
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
}
.btn-square { width: 38px; height: 38px; }
.btn-sm-square { width: 32px; height: 32px; }
.btn-lg-square { width: 48px; height: 48px; }

.back-to-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 99;
    display: none;
    background: var(--accent);
    color: #1c1917 !important;
    border: none;
    opacity: 0;
    transition: all .4s var(--ease);
}
.back-to-top.show { display: inline-flex; opacity: 1; }
.back-to-top:hover { transform: translateY(-4px); }

/* ---------- Spinner ---------- */
#spinner {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
}
#spinner.show {
    visibility: visible;
    opacity: 1;
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    /* Safety: auto-hide after 3s even if JS fails to run */
    animation: spinner-safety 0s linear 3s forwards;
}
@keyframes spinner-safety { to { opacity: 0; visibility: hidden; } }
#spinner .spinner-border {
    width: 2.5rem; height: 2.5rem;
    border: 3px solid var(--line-strong);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Navbar ---------- */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(10, 14, 20, 0.55);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background .4s var(--ease), padding .4s var(--ease);
}
.site-nav.scrolled {
    background: rgba(10, 14, 20, 0.92);
    border-bottom-color: rgba(255,255,255,0.08);
}
.site-nav__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 32px;
}
.site-nav__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    flex-shrink: 0;
}
.site-nav__brand img { height: 34px; width: auto; }
.site-nav__brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #fff;
    line-height: 1;
}
.site-nav__brand-text small {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    letter-spacing: 0.25em;
    color: var(--accent);
    margin-top: 4px;
    text-transform: uppercase;
    font-weight: 500;
}
.site-nav__menu {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 auto 0 auto;
    list-style: none;
    padding: 0;
}
.site-nav__link {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    position: relative;
    white-space: nowrap;
}
.site-nav__link:hover, .site-nav__link.active { color: var(--accent); }
.site-nav__link .chev { margin-left: 6px; font-size: 10px; opacity: .7; }

.site-nav__item { position: relative; }
.site-nav__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: #12161f;
    border: 1px solid var(--line);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all .3s var(--ease);
    z-index: 1001;
    list-style: none;
    margin: 0;
}
.site-nav__item:hover .site-nav__dropdown,
.site-nav__item:focus-within .site-nav__dropdown,
.site-nav__item.open > .site-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.site-nav__dropdown a {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-left: 2px solid transparent;
}
.site-nav__dropdown a:hover {
    background: rgba(255,255,255,0.03);
    color: var(--accent);
    border-left-color: var(--accent);
}

.site-nav__cta {
    margin-left: auto;
    flex-shrink: 0;
}
.site-nav__cta .btn { padding: 12px 22px; font-size: 12px; }

.site-nav__toggle {
    display: none;
    width: 42px; height: 42px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    margin-left: auto;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
}
.site-nav__toggle span {
    display: block;
    width: 18px; height: 2px;
    background: #fff;
    transition: .3s;
}

@media (max-width: 1100px) {
    .site-nav__cta { display: none; }
}
@media (max-width: 991px) {
    .site-nav__toggle { display: inline-flex; }
    .site-nav__menu {
        position: fixed;
        top: 70px; left: 0; right: 0;
        background: #1c1917;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 20px 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height .5s var(--ease);
        border-top: 1px solid var(--line);
    }
    .site-nav.open .site-nav__menu { max-height: 100vh; overflow-y: auto; }
    .site-nav__link { padding: 14px 28px; font-size: 14px; }
    .site-nav__dropdown {
        position: static;
        opacity: 1; visibility: visible;
        transform: none;
        background: rgba(255,255,255,0.03);
        border: none;
        padding: 0;
        display: none;
    }
    .site-nav__item.open .site-nav__dropdown { display: block; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: #fff;
    padding-top: 100px;
    overflow: hidden;
}
.hero__media {
    position: absolute; inset: 0;
    z-index: 0;
}
.hero__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}
.hero__overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(120deg, rgba(10,14,20,0.85) 0%, rgba(10,14,20,0.45) 60%, rgba(10,14,20,0.75) 100%),
        linear-gradient(to top, rgba(10,14,20,0.8), transparent 40%);
    z-index: 1;
}
.hero__content {
    position: relative;
    z-index: 2;
    max-width: var(--container);
    margin: 0 auto;
    padding: 40px 24px;
    width: 100%;
}
.hero__content .kicker { color: var(--accent); }
.hero__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: #fff;
    max-width: 900px;
    margin-bottom: 24px;
}
.hero__title em {
    color: var(--accent);
    font-style: italic;
    font-weight: 400;
}
.hero__text {
    max-width: 640px;
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.8);
    margin-bottom: 36px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__scroll {
    position: absolute;
    bottom: 30px; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.6);
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 10px;
}
.hero__scroll::after {
    content: "";
    width: 1px; height: 44px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100% { opacity: .4; } 50% { opacity: 1; } }

/* ---------- Page header (interior) ---------- */
.page-header {
    position: relative;
    padding: 200px 0 120px;
    color: #fff;
    background: #1c1917;
    overflow: hidden;
}
.page-header__bg {
    position: absolute; inset: 0;
    z-index: 0;
    opacity: 0.4;
}
.page-header__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-header::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(10,14,20,0.6) 0%, rgba(10,14,20,0.9) 100%);
    z-index: 1;
}
.page-header .container-xxl,
.page-header .container { position: relative; z-index: 2; }
.page-header h1 {
    color: #fff;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 16px;
}
.breadcrumb {
    list-style: none;
    display: inline-flex;
    gap: 12px;
    padding: 0; margin: 0;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
}
.breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 12px;
    color: var(--accent);
}
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Section title ---------- */
.section-title {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent) !important;
    padding: 0 0 0 42px;
    position: relative;
    background: transparent !important;
    margin-bottom: 16px;
}
.section-title::before {
    content: "";
    position: absolute;
    top: 50%; left: 0;
    width: 30px; height: 1px;
    background: var(--accent);
}
.section-title.text-center { padding: 0 42px; }
.section-title.text-center::before { left: 0; }
.section-title.text-center::after {
    content: "";
    position: absolute;
    top: 50%; right: 0;
    width: 30px; height: 1px;
    background: var(--accent);
}

/* ---------- About / intro block ---------- */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
@media (max-width: 991px) { .intro-grid { grid-template-columns: 1fr; gap: 40px; } }

.intro-media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}
.intro-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.5s var(--ease);
}
.intro-media:hover img { transform: scale(1.04); }
.intro-media::before {
    content: "";
    position: absolute;
    bottom: -30px; right: -30px;
    width: 60%; height: 60%;
    border: 1px solid var(--accent);
    z-index: -1;
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
    margin: 24px 0 36px;
    padding: 0;
    list-style: none;
}
.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #3a4050;
}
.feature-list li::before {
    content: "";
    width: 22px; height: 1px;
    background: var(--accent);
    flex-shrink: 0;
}

/* ---------- Service cards ---------- */
.service-card {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    display: block;
    color: #fff;
    background: #1c1917;
}
.service-card img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease), filter .8s var(--ease);
    filter: brightness(0.7);
}
.service-card::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(10,14,20,0) 40%, rgba(10,14,20,0.92) 100%);
    transition: all .5s var(--ease);
}
.service-card:hover img {
    transform: scale(1.08);
    filter: brightness(0.55);
}
.service-card__body {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 32px 28px;
    z-index: 2;
    transition: transform .5s var(--ease);
}
.service-card__num {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 12px;
    font-weight: 500;
    letter-spacing: 0.15em;
}
.service-card h3 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 10px;
}
.service-card p {
    color: rgba(255,255,255,0.78);
    font-size: 14.5px;
    line-height: 1.6;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .6s var(--ease), opacity .5s var(--ease);
    margin-bottom: 0;
}
.service-card:hover p { max-height: 200px; opacity: 1; margin-bottom: 18px; }
.service-card__arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0;
    transform: translateX(-8px);
    transition: all .5s var(--ease);
}
.service-card:hover .service-card__arrow { opacity: 1; transform: translateX(0); }

/* ---------- Stats ---------- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.stats-row .stat { background: #fff; padding: 40px 24px; text-align: center; }
.stats-row.dark .stat { background: #1c1917; color: #fff; }
.stats-row.dark { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.08); }
.stat__num {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--accent);
    font-weight: 600;
    line-height: 1;
    margin-bottom: 10px;
}
.stat__label {
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}
@media (max-width: 767px) { .stats-row { grid-template-columns: 1fr 1fr; } }

/* ---------- Projects / gallery ---------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 991px) { .projects-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .projects-grid { grid-template-columns: 1fr; } }

.project-card {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    display: block;
    background: #1c1917;
}
.project-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}
.project-card:hover img { transform: scale(1.08); }
.project-card__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(28, 25, 23, 0.92), rgba(28, 25, 23, 0) 55%);
    display: flex;
    align-items: flex-end;
    padding: 28px;
    opacity: 1;
    transition: .5s var(--ease);
}
.project-card__content { color: #fff; transform: translateY(20px); transition: transform .5s var(--ease); }
.project-card:hover .project-card__content { transform: translateY(0); }
.project-card__tag {
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
    display: block;
}
.project-card h3, .project-card h4 { color: #fff; font-size: 1.4rem; margin: 0 0 8px; }
.project-card p { color: rgba(255,255,255,0.75); font-size: 14px; margin: 0; max-height: 0; overflow: hidden; opacity: 0; transition: .5s var(--ease); }
.project-card:hover p { max-height: 120px; opacity: 1; margin-top: 4px; }

/* ---------- CTA band ---------- */
.cta-band {
    position: relative;
    padding: clamp(80px, 12vw, 140px) 0;
    color: #fff;
    overflow: hidden;
    background: #1c1917;
}
.cta-band__bg {
    position: absolute; inset: 0;
    z-index: 0;
    opacity: 0.35;
}
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(10,14,20,0.85), rgba(10,14,20,0.6));
    z-index: 1;
}
.cta-band .container { position: relative; z-index: 2; text-align: center; }
.cta-band h2 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 14px;
}
.cta-band p { color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto 32px; font-size: 1.1rem; }

/* ---------- Testimonials ---------- */
.testimonial {
    padding: 40px;
    background: #fff;
    border: 1px solid var(--line-strong);
    border-color: rgba(0,0,0,0.08);
    position: relative;
    margin: 12px;
}
.testimonial::before {
    content: "\201C";
    position: absolute;
    top: 16px; right: 28px;
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    color: var(--accent);
    line-height: 1;
    opacity: 0.4;
}
.testimonial p { color: #3a4050; font-size: 1.05rem; line-height: 1.7; font-style: italic; }
.testimonial__author { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.testimonial__author img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.testimonial__name { font-weight: 600; color: #1c1917; font-size: 15px; }
.testimonial__role { font-size: 12px; color: var(--text-muted); letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- Footer ---------- */
.site-footer {
    background: #1c1917;
    color: rgba(255,255,255,0.75);
    padding: 90px 0 0;
    font-size: 14.5px;
    line-height: 1.7;
}
.site-footer h4 {
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-footer__brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 16px;
}
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: var(--accent); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a::before { content: "→"; margin-right: 10px; color: var(--accent); opacity: 0.6; transition: .3s; }
.footer-links a:hover::before { margin-right: 14px; opacity: 1; }

.footer-contact p {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}
.footer-contact i { color: var(--accent); margin-top: 4px; }

.footer-socials { display: flex; gap: 10px; margin-top: 24px; }
.footer-socials a {
    width: 40px; height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 50%;
    color: rgba(255,255,255,0.8);
    transition: .3s var(--ease);
}
.footer-socials a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #1c1917;
    transform: translateY(-2px);
}

.newsletter {
    display: flex;
    gap: 0;
    margin-top: 14px;
    border: 1px solid rgba(255,255,255,0.15);
}
.newsletter input {
    flex: 1;
    padding: 14px 16px;
    background: transparent;
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}
.newsletter input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter button {
    background: var(--accent);
    color: #1c1917;
    border: none;
    padding: 0 22px;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: .3s;
}
.newsletter button:hover { background: var(--accent-2); }

.footer-bottom {
    margin-top: 70px;
    padding: 26px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-bottom a { color: rgba(255,255,255,0.75); }
.footer-bottom-menu { display: flex; gap: 24px; }

/* ---------- Contact form ---------- */
.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #dcdee3;
    border-radius: 0;
    font-family: inherit;
    font-size: 15px;
    background: #fff;
    transition: .3s;
    outline: none;
}
.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea.form-control { min-height: 140px; resize: vertical; }
.form-label {
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
    font-weight: 600;
}

/* ---------- Info cards ---------- */
.info-card {
    padding: 32px 28px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    transition: .4s var(--ease);
}
/* Stretch to equal height only when it's the only card in a grid column */
[class*="col-"] > .info-card:only-child { height: 100%; }
.info-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.info-card__icon {
    width: 56px; height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 22px;
    margin-bottom: 20px;
}
.info-card h4 { font-size: 1.2rem; margin-bottom: 10px; }
.info-card p { color: #525866; font-size: 14.5px; margin: 0; }

/* ---------- Reveal animations ---------- */
/* Reveal animations: only hide when JS confirms it will handle the reveal.
   Falls back to always-visible if JS fails to execute. */
.js-ready [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js-ready [data-reveal].in-view { opacity: 1; transform: translateY(0); }
.js-ready [data-reveal][data-reveal-delay="1"] { transition-delay: .1s; }
.js-ready [data-reveal][data-reveal-delay="2"] { transition-delay: .2s; }
.js-ready [data-reveal][data-reveal-delay="3"] { transition-delay: .3s; }
.js-ready [data-reveal][data-reveal-delay="4"] { transition-delay: .4s; }
.js-ready [data-reveal][data-reveal-delay="5"] { transition-delay: .5s; }

/* ---------- Misc helpers ---------- */
.text-center { text-align: center; }
.text-start { text-align: left; }
.text-end { text-align: right; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: .5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mt-2 { margin-top: .5rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.me-2 { margin-right: .5rem !important; }
.me-3 { margin-right: 1rem !important; }
.pt-2 { padding-top: .5rem !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.d-flex { display: flex !important; }
.align-items-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.flex-wrap { flex-wrap: wrap !important; }
.gap-2 { gap: .5rem !important; }
.gap-3 { gap: 1rem !important; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Hide legacy original-template nav if a page still has it */
nav.navbar.navbar-expand-lg { display: none !important; }
.container-fluid.bg-dark.footer { display: none !important; }

/* =========================================================
   RESPONSIVE — tablet & phone refinements
   ========================================================= */

/* Hero: use small-viewport units to dodge iOS dynamic toolbars */
@supports (height: 100svh) {
    .hero { min-height: 100svh; }
}

/* Tablet (<= 991px) */
@media (max-width: 991px) {
    .page-header { padding: 160px 0 80px; }
    .hero { padding-top: 90px; }
    .hero__content { padding: 30px 24px; }
    .section-title.text-center { padding: 0 34px; }
    .intro-grid { gap: 32px; }
    .stats-row .stat { padding: 32px 20px; }
    .projects-grid { gap: 18px; }
    .site-footer { padding-top: 70px; }
    .footer-bottom { margin-top: 50px; }
}

/* Phone (<= 767px) */
@media (max-width: 767px) {
    .container,
    .container-xxl,
    .container-fluid { padding-left: 18px; padding-right: 18px; }

    .site-nav__inner { padding: 12px 18px; gap: 16px; }
    .site-nav__brand img { height: 30px; }
    .site-nav__brand-text { font-size: 17px; }
    .site-nav__brand-text small { font-size: 8px; letter-spacing: 0.22em; }
    .site-nav__menu { top: 62px; }

    .hero { padding-top: 80px; min-height: 88vh; }
    @supports (height: 100svh) { .hero { min-height: 88svh; } }
    .hero__content { padding: 24px 18px; }
    .hero__text { font-size: 1rem; margin-bottom: 28px; }
    .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
    .hero__scroll { display: none; }

    .page-header { padding: 130px 0 64px; }
    .breadcrumb { font-size: 12px; gap: 10px; }

    .section { padding: 60px 0; }
    .intro-grid { gap: 28px; }
    .intro-media { aspect-ratio: 4 / 3; }

    .feature-list { grid-template-columns: 1fr; gap: 10px; margin: 20px 0 28px; }

    .service-card { aspect-ratio: 3 / 4; }
    .service-card__body { padding: 24px 22px; }
    .service-card h3 { font-size: 1.35rem; }
    /* Reveal descriptive copy by default on touch (no hover) */
    .service-card p { max-height: 200px; opacity: 1; margin-bottom: 14px; }
    .service-card__arrow { opacity: 1; transform: none; }

    .project-card__overlay { padding: 20px; }
    .project-card h4 { font-size: 1.2rem; }
    .project-card p { max-height: 120px; opacity: 1; margin-top: 4px; }

    .stats-row .stat { padding: 26px 14px; }
    .stat__label { font-size: 11px; letter-spacing: 0.15em; }

    .cta-band { padding: 70px 0; }
    .cta-band p { font-size: 1rem; }

    .testimonial { padding: 28px; margin: 0; }
    .testimonial::before { font-size: 3.5rem; top: 10px; right: 18px; }

    .info-card { padding: 26px 22px; }
    .info-card__icon { width: 48px; height: 48px; font-size: 19px; margin-bottom: 16px; }

    .form-control { padding: 12px 14px; font-size: 14.5px; }
    .btn { padding: 13px 22px; font-size: 13px; }
    .btn-lg { padding: 15px 28px; font-size: 14px; }

    .footer-bottom { justify-content: center; text-align: center; }
    .footer-bottom > div { flex: 1 1 100%; }
    .footer-bottom-menu { justify-content: center; gap: 18px; }

    .back-to-top { right: 18px; bottom: 18px; }
}

/* Small phone (<= 479px) */
@media (max-width: 479px) {
    .container,
    .container-xxl,
    .container-fluid { padding-left: 14px; padding-right: 14px; }

    .site-nav__inner { padding: 10px 14px; }
    .site-nav__brand-text small { display: none; }

    .hero__title { font-size: clamp(2.1rem, 9vw, 3rem); }
    .hero__actions { width: 100%; }
    .hero__actions .btn { width: 100%; }

    .page-header { padding: 115px 0 54px; }
    .page-header h1 { font-size: clamp(2rem, 8vw, 2.6rem); }

    .section-title { padding-left: 36px; font-size: 11px; letter-spacing: 0.2em; }
    .section-title.text-center { padding: 0 30px; }

    .stats-row { grid-template-columns: 1fr 1fr; }
    .stats-row .stat { padding: 22px 10px; }

    .testimonial { padding: 22px; }
    .newsletter input { padding: 12px 14px; font-size: 13px; }
    .newsletter button { padding: 0 16px; font-size: 11px; }
}

/* Avoid awkward 1-col row on narrow-ish tablets for service grid */
@media (min-width: 576px) and (max-width: 991px) {
    .col-md-6 { width: 50%; }
}

/* Touch devices: skip hover-only reveals that look broken on tap */
@media (hover: none) {
    .project-card__content { transform: none; }
    .project-card p { max-height: 160px; opacity: 1; margin-top: 6px; }
    .service-card p { max-height: 200px; opacity: 1; margin-bottom: 14px; }
    .service-card__arrow { opacity: 1; transform: none; }
    .site-nav__item:hover .site-nav__dropdown { opacity: 0; visibility: hidden; }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .hero__media img { animation: none; }
}
