/* =========================================================
   HAEHWA CORP
   Corporate Website Style
   ========================================================= */


/* =========================
   RESET
   ========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #222222;
    line-height: 1.7;
    background: #ffffff;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

button {
    font-family: inherit;
}

.container {
    width: 1180px;
    max-width: 90%;
    margin: 0 auto;
}


/* =========================
   BRAND COLORS
   ========================= */

:root {
    --haehwa-blue: #043894;
    --haehwa-dark: #032b70;
    --haehwa-deep: #021f52;
    --haehwa-light: #edf4ff;

    --text-dark: #1d1d1d;
    --text-gray: #666666;
    --text-light: #7b8490;

    --border: #e4e8ee;
    --light-bg: #f6f8fb;
}


/* =========================
   ANCHOR POSITION
   ========================= */

#home,
#about,
#business,
#approach,
#products,
#contact {
    scroll-margin-top: 92px;
}


/* =========================================================
   HEADER
   ========================================================= */

header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 92px;

    background: rgba(255, 255, 255, 0.98);

    border-bottom: 1px solid #e8edf3;

    z-index: 1000;
}

.nav {
    height: 92px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =========================
   HEADER LOGO
   ========================= */

.logo {
    display: flex;
    align-items: center;

    text-decoration: none;

    flex-shrink: 0;
}

.logo img {
    width: 72px;
    height: 60px;

    object-fit: contain;

    flex-shrink: 0;
}

.logo::after {
    content: "HAEHWA CORP";

    margin-left: -6px;

    color: var(--haehwa-blue);

    font-size: 19px;
    font-weight: 700;

    line-height: 1;

    letter-spacing: 1.3px;

    white-space: nowrap;
}


/* =========================
   NAVIGATION
   ========================= */

nav {
    display: flex;
    align-items: center;

    gap: 38px;
}

nav a {
    position: relative;

    color: #333333;

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 0.8px;

    transition: color 0.25s ease;
}

nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: var(--haehwa-blue);

    transition: width 0.25s ease;
}

nav a:hover {
    color: var(--haehwa-blue);
}

nav a:hover::after {
    width: 100%;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    min-height: 780px;

    padding-top: 92px;

    display: flex;
    align-items: center;

    position: relative;

    color: #ffffff;

    background:
        linear-gradient(
            90deg,
            rgba(3, 35, 88, 0.91) 0%,
            rgba(4, 56, 148, 0.64) 52%,
            rgba(4, 56, 148, 0.20) 100%
        ),
        url("images/ocean.jpg");

    background-size: cover;
    background-position: center;
}

.hero-content {
    width: 760px;
    max-width: 100%;
}

.hero-label {
    display: inline-block;

    margin-bottom: 20px;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2.2px;

    color: rgba(255, 255, 255, 0.78);
}

.hero h1 {
    margin-bottom: 32px;

    font-size: 58px;
    font-weight: 700;

    line-height: 1.18;

    letter-spacing: -1.5px;
}

.hero p {
    max-width: 720px;

    margin-bottom: 18px;

    color: rgba(255, 255, 255, 0.94);

    font-size: 17px;

    line-height: 1.8;
}

.button {
    display: inline-block;

    margin-top: 28px;

    padding: 13px 30px;

    border: 1px solid rgba(255, 255, 255, 0.8);

    background: #ffffff;

    color: var(--haehwa-blue);

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    letter-spacing: 0.4px;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.button:hover {
    background: var(--haehwa-blue);

    color: #ffffff;

    border-color: var(--haehwa-blue);
}


/* =========================================================
   SECTION COMMON
   ========================================================= */

.section {
    padding: 110px 0;
}

.section-title {
    margin-bottom: 60px;

    text-align: center;
}

.section-title span {
    display: block;

    margin-bottom: 12px;

    color: var(--haehwa-blue);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 2px;
}

.section h2 {
    margin-bottom: 30px;

    color: var(--haehwa-dark);

    font-size: 38px;

    line-height: 1.3;

    letter-spacing: -0.8px;
}

.section p {
    color: var(--text-gray);

    font-size: 16px;

    line-height: 1.9;
}


/* =========================================================
   ABOUT
   ========================================================= */

#about {
    background: #ffffff;
}

.about-layout {
    display: grid;

    grid-template-columns: 1.12fr 0.88fr;

    align-items: center;

    gap: 70px;
}

.about-image {
    overflow: hidden;

    background: var(--light-bg);
}

.about-image img {
    width: 100%;
    height: 440px;

    object-fit: cover;
}

.about-content {
    text-align: left;
}

.about-content p {
    margin-bottom: 22px;
}

.about-content p:first-child {
    color: var(--text-dark);

    font-size: 17px;
}


/* =========================================================
   BUSINESS
   ========================================================= */

.gray {
    background: var(--light-bg);
}

.cards {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 28px;
}

.card {
    position: relative;

    min-height: 330px;

    padding: 48px 36px 42px;

    background: #ffffff;

    border: 1px solid var(--border);
    border-top: 3px solid var(--haehwa-blue);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);

    box-shadow: 0 15px 35px rgba(0, 40, 100, 0.08);
}

.card-number {
    display: block;

    margin-bottom: 30px;

    color: #a7b9d5;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1px;
}

.card h3 {
    margin-bottom: 9px;

    color: var(--haehwa-blue);

    font-size: 22px;
}

.card h4 {
    margin-bottom: 20px;

    color: #353b44;

    font-size: 14px;
    font-weight: 600;

    line-height: 1.6;
}

.card p {
    font-size: 15px;

    line-height: 1.8;
}


/* =========================================================
   APPROACH
   ========================================================= */

.approach {
    background: #ffffff;
}

.approach-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);
}

.approach-item {
    position: relative;

    padding: 10px 45px 20px;

    border-right: 1px solid var(--border);
}

.approach-item:first-child {
    padding-left: 0;
}

.approach-item:last-child {
    padding-right: 0;

    border-right: none;
}

.approach-number {
    margin-bottom: 30px;

    color: #c2ccda;

    font-size: 42px;
    font-weight: 700;

    line-height: 1;
}

.approach-name {
    display: block;

    margin-bottom: 14px;

    color: var(--haehwa-blue);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2px;
}

.approach-item h3 {
    min-height: 66px;

    margin-bottom: 20px;

    color: var(--haehwa-dark);

    font-size: 21px;

    line-height: 1.45;
}

.approach-item p {
    font-size: 15px;

    line-height: 1.85;
}


/* =========================================================
   PRODUCTS
   ========================================================= */

.products-section {
    background: var(--light-bg);
}

.products-intro {
    max-width: 760px;

    margin: -10px auto 50px;

    text-align: center;
}

.categories {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 24px;
}

.category-card {
    position: relative;

    height: 340px;

    overflow: hidden;

    background: #dfe6ee;
}

.category-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.45s ease;
}

.category-card::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(1, 24, 61, 0.02) 25%,
            rgba(2, 31, 82, 0.74) 100%
        );
}

.category-card:hover img {
    transform: scale(1.025);
}

.category-overlay {
    position: absolute;

    left: 32px;
    right: 32px;
    bottom: 27px;

    z-index: 2;

    color: #ffffff;
}

.category-overlay span {
    display: block;

    margin-bottom: 5px;

    color: rgba(255, 255, 255, 0.72);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.5px;
}

.category-overlay h3 {
    color: #ffffff;

    font-size: 21px;
    font-weight: 700;

    letter-spacing: 1px;
}


/* =========================================================
   GLOBAL BUSINESS
   ========================================================= */

.global-business {
    display: grid;

    grid-template-columns: 1.15fr 0.85fr;

    min-height: 580px;

    background: #ffffff;
}

.global-business-image {
    overflow: hidden;
}

.global-business-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.global-business-content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 80px 8vw;

    background: #ffffff;
}

.global-business-content > span {
    display: block;

    margin-bottom: 17px;

    color: var(--haehwa-blue);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2px;
}

.global-business-content h2 {
    margin-bottom: 28px;

    color: var(--haehwa-dark);

    font-size: 36px;

    line-height: 1.35;

    letter-spacing: -0.7px;
}

.global-business-content p {
    max-width: 500px;

    margin-bottom: 17px;

    color: var(--text-gray);

    font-size: 15px;

    line-height: 1.85;
}


/* =========================================================
   GLOBAL NETWORK
   ========================================================= */

.global-network {
    position: relative;

    min-height: 500px;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            90deg,
            rgba(2, 31, 82, 0.84) 0%,
            rgba(3, 43, 112, 0.57) 48%,
            rgba(4, 56, 148, 0.08) 100%
        ),
        url("images/global-network.jpg");

    background-size: cover;
    background-position: center;
}

.global-network-content {
    width: 1180px;
    max-width: 90%;

    margin: 0 auto;

    color: #ffffff;
}

.global-network-content span {
    display: block;

    margin-bottom: 18px;

    color: rgba(255, 255, 255, 0.78);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2px;
}

.global-network-content h2 {
    margin-bottom: 25px;

    color: #ffffff;

    font-size: 42px;

    line-height: 1.3;

    letter-spacing: -0.8px;
}

.global-network-content p {
    max-width: 570px;

    color: rgba(255, 255, 255, 0.9);

    font-size: 16px;

    line-height: 1.85;
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact {
    padding: 100px 0 96px;

    background: var(--haehwa-blue);

    color: #ffffff;

    text-align: center;
}

.contact .section-title {
    margin-bottom: 34px;
}

.contact .section-title span {
    color: rgba(255, 255, 255, 0.7);
}

.contact h2 {
    margin-bottom: 0;

    color: #ffffff;
}

.contact-text {
    max-width: 760px;

    margin: 0 auto 44px;
}

.contact p {
    margin-bottom: 7px;

    color: rgba(255, 255, 255, 0.9);
}


/* =========================
   CONTACT EMAIL
   ========================= */

.contact-email-area {
    text-align: center;
}

.contact-email-label {
    display: block;

    margin-bottom: 8px;

    color: rgba(255, 255, 255, 0.6);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 2px;
}

.contact-email-address {
    margin-bottom: 25px;

    color: #ffffff;

    font-size: 24px;
    font-weight: 600;

    letter-spacing: 0.2px;
}


/* =========================
   CONTACT BUTTONS
   ========================= */

.contact-actions {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 12px;
}

.contact-button {
    width: 170px;
    height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.62);

    background: transparent;

    color: #ffffff;

    text-decoration: none;

    font-size: 12px;
    font-weight: 700;

    line-height: 1;

    letter-spacing: 0.8px;

    cursor: pointer;

    appearance: none;

    box-sizing: border-box;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.contact-button:hover {
    background: #ffffff;

    color: var(--haehwa-blue);

    border-color: #ffffff;
}


/* =========================
   COPY MESSAGE
   ========================= */

.copy-message {
    height: 20px;

    margin-top: 14px;

    color: rgba(255, 255, 255, 0.78);

    font-size: 12px;

    opacity: 0;

    visibility: hidden;

    transition: opacity 0.2s ease;
}

.copy-message.show {
    opacity: 1;

    visibility: visible;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    padding: 30px 0;

    background: var(--haehwa-deep);

    color: rgba(255, 255, 255, 0.72);

    font-size: 12px;
}

.footer-content {
    display: flex;

    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;

    align-items: center;

    gap: 0;

    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    letter-spacing: 1.2px;

    white-space: nowrap;
}

.footer-brand img {
    width: 44px;
    height: 36px;

    object-fit: contain;

    filter: brightness(0) invert(1);

    opacity: 1;

    margin-right: 2px;
}

.footer-content > p {
    color: rgba(255, 255, 255, 0.62);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    header {
        height: auto;
    }

    .nav {
        min-height: 94px;
        height: auto;

        flex-direction: column;

        justify-content: center;

        gap: 13px;

        padding: 11px 0 14px;
    }

    .logo img {
        width: 68px;
        height: 54px;
    }

    .logo::after {
        margin-left: -6px;

        font-size: 18px;
    }

    nav {
        gap: 20px;

        flex-wrap: wrap;

        justify-content: center;
    }

    #home,
    #about,
    #business,
    #approach,
    #products,
    #contact {
        scroll-margin-top: 150px;
    }

    .hero {
        min-height: 720px;

        padding-top: 150px;

        background-position: center;
    }

    .hero h1 {
        font-size: 44px;
    }

    .about-layout {
        grid-template-columns: 1fr;

        gap: 42px;
    }

    .about-image img {
        height: 400px;
    }

    .about-content {
        max-width: 760px;

        margin: 0 auto;

        text-align: center;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .card {
        min-height: auto;
    }

    .approach-grid {
        grid-template-columns: 1fr;
    }

    .approach-item,
    .approach-item:first-child,
    .approach-item:last-child {
        padding: 35px 0;

        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .approach-item:last-child {
        border-bottom: none;
    }

    .approach-item h3 {
        min-height: auto;
    }

    .categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-card {
        height: 300px;
    }

    .global-business {
        grid-template-columns: 1fr;
    }

    .global-business-image {
        height: 440px;
    }

    .global-business-content {
        padding: 70px 8%;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .container {
        max-width: 88%;
    }

    .nav {
        padding-top: 10px;
    }

    .logo img {
        width: 62px;
        height: 50px;
    }

    .logo::after {
        margin-left: -5px;

        font-size: 16px;

        letter-spacing: 1.1px;
    }

    nav {
        gap: 13px;
    }

    nav a {
        font-size: 11px;
    }

    .hero {
        min-height: 690px;

        background:
            linear-gradient(
                90deg,
                rgba(3, 35, 88, 0.90),
                rgba(4, 56, 148, 0.65)
            ),
            url("images/ocean.jpg");

        background-size: cover;
        background-position: center;
    }

    .hero-label {
        font-size: 9px;

        letter-spacing: 1.6px;
    }

    .hero h1 {
        margin-bottom: 26px;

        font-size: 34px;

        letter-spacing: -0.8px;
    }

    .hero p {
        font-size: 15px;
    }

    .section {
        padding: 78px 0;
    }

    .section-title {
        margin-bottom: 42px;
    }

    .section h2 {
        font-size: 30px;
    }

    .about-image img {
        height: 300px;
    }

    .about-content {
        text-align: left;
    }

    .card {
        padding: 38px 28px;
    }

    .approach-number {
        font-size: 36px;
    }

    .categories {
        grid-template-columns: 1fr;
    }

    .category-card {
        height: 280px;
    }

    .category-overlay {
        left: 24px;
        right: 24px;
        bottom: 22px;
    }

    .global-business-image {
        height: 320px;
    }

    .global-business-content {
        padding: 60px 7%;
    }

    .global-business-content h2 {
        font-size: 30px;
    }

    .global-network {
        min-height: 430px;

        background-position: center;
    }

    .global-network-content {
        max-width: 86%;
    }

    .global-network-content h2 {
        font-size: 32px;
    }

    .contact {
        padding: 80px 0 74px;
    }

    .contact-email-address {
        font-size: 19px;
    }

    .contact-actions {
        flex-direction: column;

        gap: 10px;
    }

    .contact-button {
        width: 280px;
        max-width: 100%;
        height: 46px;
    }

    .footer-content {
        flex-direction: column;

        justify-content: center;

        gap: 16px;

        text-align: center;
    }

    .footer-brand {
        font-size: 14px;
    }

    .footer-brand img {
        width: 42px;
        height: 34px;

        margin-right: 2px;
    }
}
