
/* HAMAN FORGE — Brand Identity */

:root {
    --black: #171917;
    --charcoal: #222421;
    --ivory: #E8E5DB;
    --bronze: #B38B55;
    --gray: #A5A7A0;
    --white: #F5F3EE;
}

/* Global Settings */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: var(--ivory);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

section {
    scroll-margin-top: 90px;
}

/* Navigation */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 7%;
    background: var(--black);
    border-bottom: 1px solid #ffffff20;
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 22px;
}

.monogram {
    font-family: Georgia, serif;
    font-size: 48px;
    color: var(--bronze);
    letter-spacing: -8px;
    padding-right: 24px;
    border-right: 1px solid #ffffff40;
    line-height: 1;
}

.brand-name {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: 5px;
}

.brand-name small {
    display: block;
    font-size: 10px;
    letter-spacing: 5px;
    text-align: center;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 14px;
}

.navigation a:hover {
    color: var(--bronze);
}

.nav-contact {
    border: 1px solid var(--bronze);
    padding: 10px 28px;
}

.menu-toggle {
    display: none;
}

/* Hero Section */

.hero {
    min-height: 540px;
    display: flex;
    align-items: center;
    padding: 70px 7%;
    background:
        linear-gradient(
            90deg,
            rgba(15, 16, 15, 0.98),
            rgba(15, 16, 15, 0.65) 50%,
            rgba(15, 16, 15, 0.15)
        ),
        url("assets/images/hero.jpg")
        center / cover no-repeat,
        #30332F;
}

.hero-content {
    max-width: 650px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.eyebrow::before {
    content: "";
    width: 40px;
    height: 2px;
    background: var(--bronze);
    flex-shrink: 0;
}

.hero h1 {
    font-size: clamp(64px, 7vw, 110px);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -4px;
    margin-bottom: 28px;
}

.hero h1 span {
    color: var(--bronze);
}

.hero-description {
    font-size: 20px;
    max-width: 520px;
    margin-bottom: 30px;
}

.button {
    display: inline-block;
    background: var(--bronze);
    color: var(--white);
    padding: 16px 30px;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    transition: background 0.2s;
}

.button:hover {
    background: #967653;
}

/* Capabilities and Philosophy */

.capabilities,
.philosophy {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    padding: 55px 7%;
}

.capabilities {
    background: var(--ivory);
    color: var(--black);
}

.section-intro h2,
.projects h2,
.contact h2 {
    font-size: clamp(32px, 3vw, 48px);
    font-weight: 400;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.service-grid,
.principle-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.service,
.principle {
    border-left: 1px solid #96765360;
    padding-left: 25px;
}

.service-number {
    color: #967653;
    font-size: 30px;
    font-family: Georgia, serif;
}

.service h3,
.principle h3 {
    font-size: 20px;
    line-height: 1.3;
    margin: 10px 0;
}

.service p,
.principle p {
    font-size: 15px;
    line-height: 1.6;
}

.philosophy {
    background: var(--charcoal);
}

.principle-letter {
    font-family: Georgia, serif;
    font-size: 55px;
    color: var(--bronze);
    line-height: 1;
}

/* Projects */

.projects {
    padding: 70px 7%;
    background: var(--ivory);
    color: var(--black);
}

.projects p:not(.eyebrow) {
    margin-top: 20px;
    max-width: 600px;
}

/* Contact */

.contact {
    padding: 90px 7%;
    background:
        linear-gradient(
            90deg,
            rgba(20, 21, 20, 0.95),
            rgba(20, 21, 20, 0.55)
        ),
        url("assets/images/contact.jpg")
        center / cover no-repeat,
        #30332F;
}

.contact p:not(.eyebrow) {
    max-width: 550px;
    margin-top: 20px;
    font-size: 18px;
}

.contact .location {
    color: var(--bronze);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px !important;
}

/* Footer */

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 30px 7%;
    border-top: 1px solid #ffffff20;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--gray);
}

/* Tablet Layout */

@media (max-width: 1100px) {

    .navigation {
        gap: 18px;
    }

    .brand-name {
        font-size: 16px;
        letter-spacing: 3px;
    }

    .capabilities,
    .philosophy {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Mobile Layout */

@media (max-width: 768px) {

    .header {
        padding: 18px 6%;
    }

    .brand {
        gap: 14px;
    }

    .monogram {
        font-size: 38px;
        padding-right: 18px;
    }

    .brand-name {
        font-size: 15px;
        letter-spacing: 3px;
    }

    .brand-name small {
        font-size: 8px;
        letter-spacing: 3px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: none;
        border: none;
        padding: 10px;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 26px;
        height: 2px;
        background: var(--ivory);
    }

    .navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--black);
        padding: 25px 6%;
        flex-direction: column;
        align-items: stretch;
    }

    .navigation.active {
        display: flex;
    }

    .hero {
        min-height: 480px;
        padding: 50px 6%;
        background-position: 65% center;
    }

    .hero h1 {
        font-size: clamp(54px, 11vw, 78px);
        letter-spacing: -2px;
    }

    .hero-description {
        font-size: 17px;
    }

    .eyebrow {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .capabilities,
    .philosophy,
    .projects,
    .contact {
        padding: 40px 6%;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service {
        border-left: none;
        border-bottom: 1px solid #96765350;
        padding: 0 0 20px;
    }

    .principle-grid {
        gap: 12px;
    }

    .principle {
        padding-left: 10px;
    }

    .principle-letter {
        font-size: 42px;
    }

    .principle h3 {
        font-size: 13px;
        overflow-wrap: anywhere;
    }

    .principle p {
        font-size: 13px;
    }

    .footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 25px 6%;
    }
}
/* Architectural CAD Animation */

.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #171917;
}

#cad-animation {
    position: absolute;
    top: 0;
    right: 0;
    width: 65%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#cad-animation canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero {
        min-height: 740px;
        align-items: flex-start;
    }

    #cad-animation {
        top: auto;
        bottom: 0;
        width: 100%;
        height: 45%;
    }
}

/* IMMERSIVE MOBILE EXPERIENCE */

@media (max-width: 768px) {

    .hero {
        padding: 0;
        gap: 0;
        overflow: hidden;
    }

    #cad-animation {
        position: relative;
        width: 100%;
        height: 90vh;
        height: 90svh;
        overflow: hidden;
        flex-shrink: 0;
    }

    .hero-content {
        padding: 40px 6% 50px;
    }

    .hero h1 {
        font-size: clamp(54px, 14vw, 76px);
    }

    body {
        overflow-x: hidden;
    }
}

/* FINAL MOBILE HERO LAYOUT */

@media (max-width: 768px) {

    .hero {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        min-height: auto;
        padding: 0;
        gap: 0;
        overflow: hidden;
    }

    #cad-animation {
        position: relative;
        inset: auto;
        order: -1;
        width: 100%;
        height: 90vh;
        height: 90svh;
        flex-shrink: 0;
        overflow: hidden;
    }

    .hero-content {
        position: relative;
        order: 1;
        width: 100%;
        max-width: none;
        padding: 40px 6% 50px;
    }

    .hero .button {
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* CAPABILITIES SECTION */

.capabilities {
    background: #171917;
    padding: 100px 7%;
    border-top: 1px solid rgba(179, 139, 85, 0.25);
}

.section-label {
    display: block;
    color: #B38B55;
    font-size: 11px;
    letter-spacing: 3px;
    margin-bottom: 24px;
}

.section-intro {
    max-width: 650px;
    margin-bottom: 50px;
}

.section-intro h2 {
    color: #E8E5DB;
    font-size: clamp(36px, 4vw, 60px);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 20px;
}

.section-intro p {
    color: #A5A59D;
    font-size: 16px;
    line-height: 1.8;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid #41433D;
    border-left: 1px solid #41433D;
}

.capability-card {
    padding: 35px 28px;
    min-height: 260px;
    border-right: 1px solid #41433D;
    border-bottom: 1px solid #41433D;
    transition: background 0.25s ease;
}

.capability-card:hover {
    background: rgba(179, 139, 85, 0.06);
}

.capability-number {
    display: block;
    color: #B38B55;
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 35px;
}

.capability-card h3 {
    color: #E8E5DB;
    font-size: 19px;
    font-weight: 500;
    margin-bottom: 15px;
}

.capability-card p {
    color: #A5A59D;
    font-size: 14px;
    line-height: 1.7;
}

/* TABLET */

@media (max-width: 1100px) {
    .capabilities-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* MOBILE */

@media (max-width: 768px) {
    .capabilities {
        padding: 65px 6%;
    }

    .section-intro {
        margin-bottom: 35px;
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
    }

    .capability-card {
        min-height: auto;
        padding: 28px;
    }

    .capability-number {
        font-size: 30px;
        margin-bottom: 20px;
    }
}
/* PHILOSOPHY SECTION */

.philosophy {
    background: #E8E5DB;
    color: #171917;
    padding: 100px 7%;
}

.philosophy .section-label {
    color: #927043;
}

.philosophy .section-intro h2 {
    color: #171917;
}

.philosophy .section-intro p {
    color: #55564F;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid #B8B4A9;
    border-bottom: 1px solid #B8B4A9;
}

.principle {
    padding: 35px;
    border-right: 1px solid #B8B4A9;
}

.principle:first-child {
    padding-left: 0;
}

.principle:last-child {
    border-right: none;
}

.principle-letter {
    display: block;
    font-size: clamp(100px, 12vw, 180px);
    font-weight: 300;
    line-height: 1;
    color: #A17D49;
    margin-bottom: 30px;
}

.principle h3 {
    font-size: 25px;
    font-weight: 500;
    margin-bottom: 15px;
}

.principle p {
    color: #55564F;
    font-size: 15px;
    line-height: 1.8;
    max-width: 320px;
}

/* MOBILE PHILOSOPHY */

@media (max-width: 768px) {

    .philosophy {
        padding: 65px 6%;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
        border-bottom: none;
    }

    .principle,
    .principle:first-child {
        display: grid;
        grid-template-columns: 65px 1fr;
        align-items: center;
        gap: 20px;
        padding: 30px 0;
        border-right: none;
        border-bottom: 1px solid #B8B4A9;
    }

    .principle-letter {
        font-size: 75px;
        margin-bottom: 0;
        text-align: center;
    }

    .principle h3 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .principle p {
        font-size: 14px;
    }
}
/* PHILOSOPHY DESKTOP CORRECTION */

@media (min-width: 769px) {

    .philosophy {
        display: block;
    }

    .philosophy .section-intro {
        max-width: 800px;
        margin-bottom: 50px;
    }

    .philosophy-grid {
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        border-left: 1px solid #B8B4A9;
    }

    .principle,
    .principle:first-child,
    .principle:last-child {
        padding: 40px;
        border-right: 1px solid #B8B4A9;
    }

    .principle-letter {
        font-size: clamp(100px, 10vw, 150px);
    }

    .principle p {
        max-width: 360px;
    }
}
/* SELECTED PROJECTS */

.projects {
    display: block;
    background: #171917;
    padding: 100px 7%;
    color: #E8E5DB;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.portfolio-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid #41433D;
}

.portfolio-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #222420;
}

.portfolio-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.65);
    transition: transform 0.5s ease;
}

@media (hover: hover) {
    .portfolio-card:hover img {
        transform: scale(1.04);
    }
}

.portfolio-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 25px;
}

.portfolio-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    color: #B38B55;
    font-size: 10px;
    letter-spacing: 1px;
    margin-bottom: 22px;
}

.portfolio-content h3 {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.3;
    min-height: 60px;
    margin-bottom: 25px;
}

.portfolio-units {
    font-size: 36px;
    font-weight: 300;
    color: #B38B55;
}

.portfolio-details {
    color: #A5A59D;
    font-size: 12px;
    margin-top: 8px;
    margin-bottom: 25px;
}

.portfolio-content p {
    color: #A5A59D;
    font-size: 14px;
    line-height: 1.8;
    border-top: 1px solid #41433D;
    padding-top: 20px;
}

.portfolio-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 60px;
    padding: 35px 0;
    border-top: 1px solid #41433D;
    border-bottom: 1px solid #41433D;
}

.portfolio-summary > div {
    text-align: center;
    border-right: 1px solid #41433D;
}

.portfolio-summary > div:last-child {
    border-right: none;
}

.portfolio-summary strong {
    display: block;
    color: #B38B55;
    font-size: clamp(36px, 5vw, 65px);
    font-weight: 300;
}

.portfolio-summary span {
    display: block;
    color: #A5A59D;
    font-size: 13px;
    margin-top: 10px;
}

/* TABLET */

@media (max-width: 1100px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* MOBILE */

@media (max-width: 768px) {

    .projects {
        padding: 65px 6%;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .portfolio-content {
        padding: 22px;
    }

    .portfolio-content h3 {
        min-height: auto;
    }

    .portfolio-summary {
        margin-top: 40px;
    }

    .portfolio-summary strong {
        font-size: 38px;
    }

    .portfolio-summary span {
        font-size: 11px;
    }
}
/* ========================================
   CONTACT SECTION
======================================== */

.contact {
    padding: 100px 7%;
    background: linear-gradient(110deg, #171917, #20221F);
    color: #E8E5DB;
}

.contact-intro {
    max-width: 720px;
}

.contact-intro h2 {
    font-size: clamp(42px, 5vw, 76px);
    font-weight: 400;
    letter-spacing: -2px;
    margin: 24px 0;
}

.contact-intro p {
    max-width: 560px;
    color: #B9BAB2;
    font-size: 18px;
    line-height: 1.7;
}

.contact-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-top: 30px;
    padding: 20px 28px;
    background: transparent;
    border: 1px solid #B38B55;
    color: #B38B55;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s ease;
}

.contact-toggle:hover {
    background: #B38B55;
    color: #171917;
}

.contact-toggle span {
    font-size: 22px;
    font-weight: 400;
}

/* INQUIRY FORM */

.inquiry-panel {
    max-width: 900px;
    margin-top: 45px;
    padding: 40px;
    border: 1px solid #41433D;
    background: #171917;
}

.inquiry-panel[hidden] {
    display: none;
}

.inquiry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 28px;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 17px;
    background: #222420;
    border: 1px solid #41433D;
    border-radius: 0;
    color: #E8E5DB;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
    border-color: #B38B55;
}

.inquiry-form input::placeholder,
.inquiry-form textarea::placeholder {
    color: #96998F;
}

.inquiry-form textarea {
    margin-top: 18px;
    resize: vertical;
}

.inquiry-submit {
    margin-top: 20px;
    padding: 18px 30px;
    background: #B38B55;
    border: none;
    color: #171917;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
}

.inquiry-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* CONTACT DETAILS */

.contact-details {
    display: flex;
    flex-wrap: wrap;
    gap: 80px;
    margin-top: 65px;
    padding-top: 35px;
    border-top: 1px solid #41433D;
}

.contact-details > div {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-details > div > span {
    font-size: 10px;
    letter-spacing: 2.5px;
    color: #B38B55;
}

.contact-details a,
.contact-details p {
    margin: 0;
    color: #E8E5DB;
    font-size: 16px;
    text-decoration: none;
}

.contact-details a:hover {
    color: #B38B55;
}

/* ========================================
   FOOTER
======================================== */

.footer {
    display: block;
    padding: 45px 7% 25px;
    background: #111310;
    border-top: 1px solid #30322D;
    color: #E8E5DB;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    color: #E8E5DB;
}

.footer-monogram {
    font-size: 34px;
    font-weight: 500;
    color: #B38B55;
    letter-spacing: -3px;
}

.footer-brand-name {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-brand-name strong {
    font-size: 13px;
    letter-spacing: 4px;
    font-weight: 500;
}

.footer-brand-name span {
    font-size: 9px;
    letter-spacing: 3px;
    color: #B38B55;
}

.footer-top p {
    font-size: 12px;
    color: #96998F;
}

.footer-bottom {
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid #30322D;
    color: #96998F;
    font-size: 11px;
}

/* MOBILE CONTACT AND FOOTER */

@media (max-width: 768px) {

    .contact {
        padding: 65px 6%;
    }

    .contact-intro h2 {
        font-size: 44px;
    }

    .contact-intro p {
        font-size: 16px;
    }

    .contact-toggle {
        width: 100%;
        box-sizing: border-box;
        gap: 15px;
    }

    .inquiry-panel {
        padding: 22px;
    }

    .inquiry-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .inquiry-submit {
        width: 100%;
    }

    .contact-details {
        flex-direction: column;
        gap: 30px;
        margin-top: 45px;
    }

    .footer {
        padding: 35px 6% 25px;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
    }
}
/* CONTACT AND FOOTER REFINEMENT */

.contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 45px;
    padding-top: 28px;
    align-items: start;
}

.contact-details > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.contact-details > div > span {
    font-size: 11px;
    letter-spacing: 1px;
    line-height: 1.4;
}

.contact .contact-details a,
.contact .contact-details p {
    margin: 0;
    padding: 0;
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: 0;
}

.contact {
    padding-bottom: 55px;
}

.footer {
    padding: 35px 7% 25px;
    letter-spacing: 0;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.footer-monogram {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;
    letter-spacing: -5px;
}

.footer-brand-name strong {
    font-size: 15px;
    letter-spacing: 4px;
}

.footer-brand-name span {
    font-size: 10px;
    letter-spacing: 3px;
}

.footer-top p {
    margin: 0;
    font-size: 14px;
    letter-spacing: 0;
    color: #B9BAB2;
}

.footer-bottom {
    margin-top: 25px;
    padding-top: 22px;
    font-size: 13px;
    letter-spacing: 0;
}

.footer-bottom small {
    font-size: 13px;
    letter-spacing: 0;
}

@media (max-width: 768px) {
    .contact-details {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .contact-details a,
    .contact-details p {
        font-size: 13px;
        overflow-wrap: anywhere;
    }

    .contact {
        padding-bottom: 30px;
    }

    .footer {
        padding: 30px 6% 25px;
    }
}
/* INQUIRY SUCCESS MESSAGE */

.inquiry-success {
    padding: 30px 0;
}

.inquiry-success h3 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 400;
    letter-spacing: -1px;
    color: #E8E5DB;
    margin: 24px 0 16px;
}

.inquiry-success p {
    color: #B9BAB2;
    font-size: 16px;
    line-height: 1.7;
    max-width: 540px;
}

.success-signature {
    margin-top: 35px;
    padding-top: 24px;
    border-top: 1px solid #41433D;
    color: #B38B55;
    font-size: 10px;
    letter-spacing: 3px;
}