/* ================= GLOBAL STYLES ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* ================= NAVBAR ================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    color: white;
    padding: 15px 50px;
}

.navbar ul {
    display: flex;
    list-style: none;
}

.navbar li {
    margin-left: 20px;
}

.navbar li {
    font-size: 1.3rem;
}

.navbar a {
    color: white;
    text-decoration: none;
}

/* ================= LOGO CONTAINER ================= */
.logo {
    display: flex;          /* puts image + text side by side */
    align-items: center;    /* vertically aligns them */
    gap: 10px;              /* space between image and text */
}

/* ================= LOGO IMAGE ================= */
.logo img {
    width: 40px;    /* control size here */
    height: 20px;   /* keep it square */
    object-fit: cover; /* prevents stretching */
}

.logo span {
    font-size: 1.3rem;
}

/* ================= HERO SECTION ================= */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
      url('https://www.avalonflooring.com/cdn/shop/products/Niagra-scaled_2560x1920.jpg?v=1664930949')no-repeat center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
}

.btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #f4a261;
    color: white;
    text-decoration: none;
}

/* ================= SERVICES ================= */ 
.services {
    padding: 60px 20px;
    text-align: center;
}

.service-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.service-box {
    width: 400px;
    height: 220px;
    padding: 30px;
    color: white;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background-size: cover;
    background-position: center;
    border-radius: 10px;
}

/* Individual backgrounds with overlay */
.hardwood {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("https://www.harperfloors.com/cdn/shop/products/ACACIANATURALSM434_SolidHardwood_Harperfloors.com.jpg?v=1642721523");
}

.laminate {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("https://www.eurostyleflooring.ca/wp-content/uploads/eurostyle-atlantic-appalachian-hickory-001.jpg");
}

.vinyl {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("https://s.turbifycdn.com/aah/yhst-18994263876730/msi-surfaces-prescott-xl-boswell-45.jpg");
}

.carpet {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("https://www.floorcity.com/cdn/shop/files/ksattrperstile-image-1-768x768.jpg?v=1747870473&width=700");
}

/* ================= ABOUT ================= */
.about {
    background: white;
    color: black;
    padding: 60px 20px;
    text-align: left;
    margin-bottom: 0%;
}
  
.about-container {
  display: flex;
  align-items: left;
  gap: 40px;
}

.about-text{
  flex: 1;
}

.about-text ul{
  font-size: 1.1rem;
}

.about-image img {
  width: 50%;
  border-radius: 10px;
  margin-left: 40%;
  margin-top: -10%;
}

/* ================= STATEMENT ================= */
.statement {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 10%;
    gap: 40px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    color: white;
}

/* ================= LEFT SIDE ================= */
.statement-image {
    flex: 1;
}

.statement-image img {
    width: 100%;
    height: 350px;
    border-radius: 10px; /* optional */
}

/* ================= RIGHT SIDE ================= */
.statement-text {
    flex: 1;
    margin-left: 15%;
}

.statement-text h2 {
    margin-bottom: 20px;
}

.statement-text ul {
    margin-bottom: 20px;
    margin-left: 3%;
  font-size: 1.1rem;
}

/* ================= GALLERY ================= */
.gallery {
    padding: 60px 20px;
    text-align: center;
}

/* Grid layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

/* Each item (now a link) */
.gallery-item {
    display: block;
    overflow: hidden; /* keeps images inside box */
    border-radius: 8px;
}

/* Images */
.gallery-item img {
    width: 100%;
    height: 200px; /* 🔥 control size here */
    object-fit: cover; /* prevents stretching */
    transition: 0.3s;
}

/* Hover effect (optional but looks great) */
.gallery-item img:hover {
    transform: scale(1.05);
}

/* ================= WHY SECTION ================= */
.why-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 10%;
    gap: 40px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    color: white;
}

/* ================= LEFT SIDE ================= */
.why-text {
    flex: 1;
  margin-left: 5%
}

.why-text h2 {
    margin-bottom: 20px;
}

.why-text ul {
    margin-bottom: 20px;
    padding-left: 20px;
  font-size: 1.2rem;
}

/* ================= RIGHT SIDE ================= */
.why-image {
    flex: 1;
}

.why-image img {
    width: 100%;
    height: 400px;
    border-radius: 10px; /* optional */
  margin-right: 10%;
}

/* ================= CONTACT ================= */
.contact-section {
    display: flex;              /* puts items side-by-side */
    justify-content: space-between; /* spreads them left & right */
    align-items: flex-start;
    padding: 60px 10%;
    gap: 50px;
}

/* ================= LEFT SIDE ================= */
.info {
    flex: 1;        /* takes up equal space */
    max-width: 500px;
    margin-left: 0%;
}

.hours {
  margin-right: 10%;
}

/* ================= ICON CONTAINER ================= */
.info-item a {
    display: inline-block;
}

/* ================= ICON SIZE ================= */
.info-item img {
    width: 30px;   /* adjust size */
    height: 30px;
    cursor: pointer;
    transition: 0.3s;
}

/* ================= HOVER EFFECT ================= */
.info-item img:hover {
    transform: scale(1.2);
}

.socials {
    display: flex;
    gap: 15px;
}

/* ================= RIGHT SIDE ================= */
.form { flex: 1; max-width: 500px; margin-right: 7%; }

/* ================= FORM STYLING ================= */
.form form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-right: 5%;
}

/* ================= INPUT + TEXTAREA DESIGN ================= */
.form input,
.form textarea {
    padding: 14px 16px;
    width: 100%;
    box-sizing: border-box;

    border: 1px solid #ddd;
    border-radius: 8px;              /* 🔥 rounded corners */
    background: #f5f5f5;             /* light gray background */

    font-size: 14px;
    font-family: Arial, sans-serif;
    color: #333;

    outline: none;
    transition: all 0.2s ease;
}

/* Placeholder styling */
.form input::placeholder,
.form textarea::placeholder {
    color: #888;
}

/* Focus effect (when user clicks) */
.form input:focus,
.form textarea:focus {
    border-color: #999;
    background: #fff;
}

/* ================= TEXTAREA ================= */
.form textarea {
    grid-column: 1 / -1;
    min-height: 120px;
    resize: vertical;
}

/* ================= BUTTON ================= */
.form button {
    grid-column: 1 / -1;

    padding: 12px 20px;
    background: black;
    color: white;

    border: none;
    border-radius: 8px;   /* 🔥 rounded button */
    font-size: 14px;
    cursor: pointer;

    transition: 0.2s ease;
}

/* Button hover */
.form button:hover {
    background: #333;
}

/* ================= FOOTER ================= */
footer {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    color: white;
    text-align: center;
    padding: 15px;
}