/* ===== GLOBAL STYLES ===== */
html {
    scroll-behavior: smooth;
}

:root {
    --nav-height: 60px;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #d4b69d;
    padding-top: var(--nav-height);
}

h1, h2, h3 {
    color: #1a1a1a;
}

a {
    color: #8f6442;
}

a:hover {
    color: #cb9769;
}

/* ===== NAVIGATION ===== */
nav {
    background: linear-gradient(135deg, #f5d2b4 0%, #cb9769 45%, #b78457 100%);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
    border-bottom: 2px solid #8f6442;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 10;
}

nav ul {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 1rem;
    flex-wrap: wrap;
}

nav a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 6px 10px;
    border-radius: 6px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

nav a:hover {
    color: #1a1a1a;
    background-color: rgba(255, 250, 243, 0.55);
}

/* ===== HERO SECTION ===== */
.hero {
    background: url("assets/images/Home_page_bar.jpg") center/cover no-repeat;
    background-position: center 20%;
    color: #fff7ee;
    text-align: center;
    position: relative;
    min-height: 600px;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 170px 20px 0;
}

.hero h1 {
    font-size: clamp(1.4rem, 4vw, 3rem);
    margin: 0 0 0.5rem;
}

.hero p {
    font-size: clamp(0.95rem, 2.5vw, 1.5rem);
    margin: 0 0 1.5rem;
}

/* ===== SECTIONS ===== */
section {
    padding: 40px 20px;
    margin: 0 auto;
    max-width: 1000px;
}

section h2 {
    margin-top: 0;
}

.section-alt {
    background: #cb9769;
}

/* ===== ABOUT SECTION ===== */
.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.about-text {
    flex: 1 1 300px;
}

.about-image {
    flex: 1 1 250px;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
}

/* ===== FEATURE CARDS ===== */
.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.feature-card {
    perspective: 1000px;
    cursor: pointer;
    background: linear-gradient(140deg, #f5d2b4 0%, #cb9769 50%, #b78457 100%);
    border: 1px solid #8f6442;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(31, 20, 12, 0.28);
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 240px;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.feature-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.card-front {
    background: linear-gradient(140deg, #f8dfc7 0%, #cb9769 55%, #a7744d 100%);
}

.card-back {
    background: linear-gradient(140deg, #efc7a4 0%, #b78457 100%);
    transform: rotateY(180deg);
}

.card-front::before,
.card-back::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0.34) 0%, rgba(255,255,255,0) 40%);
    pointer-events: none;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background: #cb9769;
    color: #111;
}

.btn-primary:hover {
    background: #b78457;
}

.btn-secondary {
    background: #1a1a1a;
    color: #cb9769;
}

.btn-secondary:hover {
    background: #000;
}

button {
    margin-top: 10px;
    background: #1a1a1a;
    color: #cb9769;
    border: 1px solid #cb9769;
    cursor: pointer;
    border-radius: 4px;
}

button:hover {
    background-color: #cb9769;
    color: #111;
}

/* ===== FORMS ===== */
form {
    max-width: 600px;
    margin: 0 auto;
}

label {
    display: block;
    margin-top: 10px;
    font-weight: 600;
}

input,
textarea,
select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #c8b39f;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #cb9769;
    box-shadow: 0 0 5px rgba(203,151,105,0.35);
    outline: none;
}

/* ===== BLOCKQUOTE ===== */
blockquote {
    font-style: italic;
    border-left: 4px solid #cb9769;
    margin: 20px auto;
    max-width: 600px;
    padding-left: 16px;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 20px;
    background-color: #efe6dc;
    margin-top: 40px;
}

/* ===== GRIDS ===== */
.contact-grid,
.articles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* ===== FLUID TYPOGRAPHY ===== */
h1 {
    font-size: clamp(1.4rem, 4vw, 3rem);
}

h2 {
    font-size: clamp(1.2rem, 3vw, 2rem);
}

h3 {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
}

p {
    font-size: clamp(0.95rem, 2.2vw, 1.1rem);
}

/* ===== RESPONSIVE DESIGN ===== */

/* TABLET */
@media (max-width: 768px) {

    :root {
        --nav-height: 50px;
    }

    nav ul {
        justify-content: center;
        gap: 0.75rem;
        padding: 0.5rem;
    }

    nav a {
        font-size: 0.85rem;
    }

    .hero {
        min-height: 250px;
    }

    .hero-content {
        padding: 70px 15px 0;
    }

    section {
        padding: 30px 15px;
        max-width: 100%;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-inner {
        height: 200px;
    }

    .contact-grid,
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    input,
    textarea,
    select {
        font-size: 16px;
        padding: 10px;
    }
}

/* MOBILE */
@media (max-width: 480px) {

    :root {
        --nav-height: 45px;
    }

    nav a {
        font-size: 0.75rem;
        padding: 0.3rem 0.4rem;
    }

    .hero {
        min-height: 60vh;
    }

    .hero-content {
        padding: 90px 10px 20px;
    }

    section {
        padding: 20px 10px;
    }

    .btn {
        width: 100%;
        display: block;
        text-align: center;
    }

    .card-inner {
        min-height: 180px;
        height: auto;
    }

    label {
        font-size: 0.95rem;
    }

    ul, ol {
        padding-left: 1.5rem;
    }

    footer {
        font-size: 0.85rem;
        padding: 15px 10px;
    }
}

/* SMALL MOBILE */
@media (max-width: 360px) {

    nav a {
        font-size: 0.65rem;
        padding: 0.2rem 0.15rem;
    }

    nav ul {
        gap: 0.2rem;
    }

    .hero h1 {
        font-size: 1.3rem;
    }

    .hero p {
        font-size: 0.85rem;
    }

    .btn {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
}